Class HealthCenterImpl
java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterImpl
- All Implemented Interfaces:
HealthCenter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.ibm.java.diagnostics.healthcenter.impl.marshalling.MarshallerImpl -
Constructor Summary
ConstructorsConstructorDescriptionHealthCenterImpl(com.ibm.java.diagnostics.healthcenter.impl.marshalling.MarshallerImpl marshallerInstance, HealthCenterPreferences hcp) -
Method Summary
Modifier and TypeMethodDescriptionvoidClears any time thresholds that were set on the Health Center data.voidEnds the monitoring of the application, although the agent remains running to allow future connections.longGets the number of bytes read so far by the Health Center.Gets the classes data that is associated with this Health Center connection.Gets the CPU data that is associated with this Health Center connection.Gets the time of the first piece of monitored data.Gets the environment data that is associated with this Health Center connection.Gets the garbage collection data that is associated with this Health Center connection.Gets the I/O data that is associated with this Health Center connection.Gets the time when data was last received (variable).Gets the time of the latest piece of monitored data.Gets the locking data that is associated with this Health Center connection.Gets the method trace data that is associated with this Health Center connection.Gets the native memory data that is associated with this Health Center connection.Gets a HealthCenterPreferences object, on which preferences can be set.Gets the profiling data that is associated with this Health Center connection.Gets the threads data that is associated with this Health Center connection.Gets the VMControl object that is associated with this Health Center connection.booleanWhether the connection is currently connected.voidClears all current Health Center data.voidSaves the current Health Center data to disk.voidsetEventOnlyMode(boolean value) runs in event only mode so that no data is stored (including backing file data) This just publishes eventsvoidsetFineGrainTimeThresholds(int lowerThreshold, int upperThreshold) Sets lower and upper cut-off thresholds for the Health Center data.voidsetTimeThreshold(int lowerThreshold) Sets a lower cut-off threshold for the Health Center data.voidsetTimeThresholds(int lowerThreshold, int upperThreshold) Sets lower and upper cut-off thresholds for the Health Center data.
-
Field Details
-
marshaller
protected com.ibm.java.diagnostics.healthcenter.impl.marshalling.MarshallerImpl marshaller
-
-
Constructor Details
-
HealthCenterImpl
public HealthCenterImpl(com.ibm.java.diagnostics.healthcenter.impl.marshalling.MarshallerImpl marshallerInstance, HealthCenterPreferences hcp)
-
-
Method Details
-
getIOData
Description copied from interface:HealthCenterGets the I/O data that is associated with this Health Center connection.- Specified by:
getIODatain interfaceHealthCenter- Returns:
- an IOData object that allows access to the I/O data.
-
getLockingData
Description copied from interface:HealthCenterGets the locking data that is associated with this Health Center connection.- Specified by:
getLockingDatain interfaceHealthCenter- Returns:
- a LockingData object that allows access to the locking data.
-
getCpuData
Description copied from interface:HealthCenterGets the CPU data that is associated with this Health Center connection.- Specified by:
getCpuDatain interfaceHealthCenter- Returns:
- a CpuData object that allows access to the CPU data.
-
getClassesData
Description copied from interface:HealthCenterGets the classes data that is associated with this Health Center connection.- Specified by:
getClassesDatain interfaceHealthCenter- Returns:
- a ClassesData object that allows access to the classes data.
-
getGCData
Description copied from interface:HealthCenterGets the garbage collection data that is associated with this Health Center connection.- Specified by:
getGCDatain interfaceHealthCenter- Returns:
- a GCData object that allows access to the GC data.
-
getNativeMemoryData
Description copied from interface:HealthCenterGets the native memory data that is associated with this Health Center connection.- Specified by:
getNativeMemoryDatain interfaceHealthCenter- Returns:
- a NativeMemoryData object that allows access to the native memory data.
-
getEnvironmentData
Description copied from interface:HealthCenterGets the environment data that is associated with this Health Center connection.- Specified by:
getEnvironmentDatain interfaceHealthCenter- Returns:
- an EnvironmentData object that allows access to the environment data.
-
getThreadsData
Description copied from interface:HealthCenterGets the threads data that is associated with this Health Center connection.- Specified by:
getThreadsDatain interfaceHealthCenter- Returns:
- a ThreadsData object that allows access to the threads data.
-
getVMControl
Description copied from interface:HealthCenterGets the VMControl object that is associated with this Health Center connection.- Specified by:
getVMControlin interfaceHealthCenter- Returns:
- a VMControl object, which you can use to trigger events that operate on the monitored application. NOTE: This method only has an effect when connected to a live application.
-
getProfilingData
Description copied from interface:HealthCenterGets the profiling data that is associated with this Health Center connection.- Specified by:
getProfilingDatain interfaceHealthCenter- Returns:
- a ProfilingData object that allows access to the profiling data.
-
setTimeThreshold
public void setTimeThreshold(int lowerThreshold) Description copied from interface:HealthCenterSets a lower cut-off threshold for the Health Center data. Any data from before this time is not returned on any calls that return data from Health Center.- Specified by:
setTimeThresholdin interfaceHealthCenter- Parameters:
lowerThreshold- the threshold, in minutes from application start.
-
setTimeThresholds
public void setTimeThresholds(int lowerThreshold, int upperThreshold) Description copied from interface:HealthCenterSets lower and upper cut-off thresholds for the Health Center data. Any calls that return data from the Health Center return only data that is inside this time window.- Specified by:
setTimeThresholdsin interfaceHealthCenter- Parameters:
lowerThreshold- the lower threshold, in minutes from application start.upperThreshold- the upper threshold, in minutes from application start.
-
setFineGrainTimeThresholds
public void setFineGrainTimeThresholds(int lowerThreshold, int upperThreshold) Description copied from interface:HealthCenterSets lower and upper cut-off thresholds for the Health Center data. Any calls that return data from the Health Center return only data that is inside this time window.- Specified by:
setFineGrainTimeThresholdsin interfaceHealthCenter- Parameters:
lowerThreshold- the lower threshold, in milliseconds from application start.upperThreshold- the upper threshold, in milliseconds from application start.
-
clearTimeThresholds
public void clearTimeThresholds()Description copied from interface:HealthCenterClears any time thresholds that were set on the Health Center data.- Specified by:
clearTimeThresholdsin interfaceHealthCenter
-
getPreferences
Description copied from interface:HealthCenterGets a HealthCenterPreferences object, on which preferences can be set.- Specified by:
getPreferencesin interfaceHealthCenter- Returns:
- the HealthCenterPreferences object for this Health Center connection.
-
saveData
Description copied from interface:HealthCenterSaves the current Health Center data to disk. Filenames have the following format:healthcenter_yyyymmddhhmm_index.hcd.- Specified by:
saveDatain interfaceHealthCenter- Parameters:
fileName- A filename or directory to save the data to. If a directory is specified, the default value ofhealthcenteris used for the filename.- Throws:
IOException- if the directory does not exist
-
getMethodTraceData
Description copied from interface:HealthCenterGets the method trace data that is associated with this Health Center connection.- Specified by:
getMethodTraceDatain interfaceHealthCenter- Returns:
- a MethodTraceData object that allows access to the method trace data.
-
getAmountOfDataReceived
public long getAmountOfDataReceived()Description copied from interface:HealthCenterGets the number of bytes read so far by the Health Center.- Specified by:
getAmountOfDataReceivedin interfaceHealthCenter- Returns:
- the amount of data received, in bytes.
-
getLastUpdated
Description copied from interface:HealthCenterGets the time when data was last received (variable).- Specified by:
getLastUpdatedin interfaceHealthCenter- Returns:
- the time that the last data was received.
-
isConnectionAlive
public boolean isConnectionAlive()Description copied from interface:HealthCenterWhether the connection is currently connected. For files, this value is slightly ambiguous but will be alwaystrue, unless the file is deleted halfway through reading.- Specified by:
isConnectionAlivein interfaceHealthCenter- Returns:
- a boolean indicating whether the connection is alive.
-
endMonitoring
public void endMonitoring()Description copied from interface:HealthCenterEnds the monitoring of the application, although the agent remains running to allow future connections.- Specified by:
endMonitoringin interfaceHealthCenter
-
resetData
public void resetData()Description copied from interface:HealthCenterClears all current Health Center data.- Specified by:
resetDatain interfaceHealthCenter
-
getEarliestMonitoredDataTime
Description copied from interface:HealthCenterGets the time of the first piece of monitored data.- Specified by:
getEarliestMonitoredDataTimein interfaceHealthCenter- Returns:
- the time of the first piece of monitored data.
-
getLatestMonitoredDataTime
Description copied from interface:HealthCenterGets the time of the latest piece of monitored data.- Specified by:
getLatestMonitoredDataTimein interfaceHealthCenter- Returns:
- the time of the latest piece of monitored data.
-
setEventOnlyMode
public void setEventOnlyMode(boolean value) Description copied from interface:HealthCenterruns in event only mode so that no data is stored (including backing file data) This just publishes events- Specified by:
setEventOnlyModein interfaceHealthCenter- Parameters:
value- true or false to turn on or off
-