public interface HealthCenter
Modifier and Type | Method and Description |
---|---|
void |
clearTimeThresholds()
Clears any time thresholds that were set on the Health Center data.
|
void |
endMonitoring()
Ends the monitoring of the application, although the agent
remains running to allow future connections.
|
long |
getAmountOfDataReceived()
Gets the number of bytes read so far by the Health Center.
|
ClassesData |
getClassesData()
Gets the classes data that is associated with this Health Center connection.
|
CpuData |
getCpuData()
Gets the CPU data that is associated with this Health Center connection.
|
java.util.Date |
getEarliestMonitoredDataTime()
Gets the time of the first piece of monitored data.
|
EnvironmentData |
getEnvironmentData()
Gets the environment data that is associated with this Health Center connection.
|
GCData |
getGCData()
Gets the garbage collection data that is associated with this Health Center connection.
|
IOData |
getIOData()
Gets the I/O data that is associated with this Health Center connection.
|
java.util.Date |
getLastUpdated()
Gets the time when data was last received (variable).
|
java.util.Date |
getLatestMonitoredDataTime()
Gets the time of the latest piece of monitored data.
|
LockingData |
getLockingData()
Gets the locking data that is associated with this Health Center connection.
|
MethodTraceData |
getMethodTraceData()
Gets the method trace data that is associated with this Health Center
connection.
|
NativeMemoryData |
getNativeMemoryData()
Gets the native memory data that is associated with this Health Center
connection.
|
HealthCenterPreferences |
getPreferences()
Gets a HealthCenterPreferences object, on which preferences can be set.
|
ProfilingData |
getProfilingData()
Gets the profiling data that is associated with this Health Center connection.
|
ThreadsData |
getThreadsData()
Gets the threads data that is associated with this Health Center connection.
|
VMControl |
getVMControl()
Gets the VMControl object that is associated with this Health Center connection.
|
boolean |
isConnectionAlive()
Whether the connection is currently connected.
|
void |
resetData()
Clears all current Health Center data.
|
void |
saveData(java.io.File name)
Saves the current Health Center data to disk.
|
void |
setFineGrainTimeThresholds(int lowerThreshold,
int upperThreshold)
Sets lower and upper cut-off thresholds for the Health Center data.
|
void |
setTimeThreshold(int lowerThreshold)
Sets a lower cut-off threshold for the Health Center data.
|
void |
setTimeThresholds(int lowerThreshold,
int upperThreshold)
Sets lower and upper cut-off thresholds for the Health Center data.
|
void setTimeThreshold(int lowerThreshold)
lowerThreshold
- the threshold, in minutes from application start.void setTimeThresholds(int lowerThreshold, int upperThreshold)
lowerThreshold
- the lower threshold, in minutes from application start.upperThreshold
- the upper threshold, in minutes from application start.void setFineGrainTimeThresholds(int lowerThreshold, int upperThreshold)
lowerThreshold
- the lower threshold, in milliseconds from application start.upperThreshold
- the upper threshold, in milliseconds from application start.void clearTimeThresholds()
IOData getIOData()
ClassesData getClassesData()
CpuData getCpuData()
GCData getGCData()
MethodTraceData getMethodTraceData()
NativeMemoryData getNativeMemoryData()
EnvironmentData getEnvironmentData()
ThreadsData getThreadsData()
VMControl getVMControl()
ProfilingData getProfilingData()
LockingData getLockingData()
HealthCenterPreferences getPreferences()
void saveData(java.io.File name) throws java.io.IOException
healthcenter_yyyymmddhhmm_index.hcd
.name
- A filename or directory to save the data to. If a directory is specified,
the default value of healthcenter
is used for the filename.java.io.IOException
- if the directory does not existvoid resetData()
long getAmountOfDataReceived()
boolean isConnectionAlive()
true
, unless the file is deleted halfway
through reading.java.util.Date getLastUpdated()
java.util.Date getEarliestMonitoredDataTime()
java.util.Date getLatestMonitoredDataTime()
void endMonitoring()