Class HealthCenterImpl

java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterImpl
All Implemented Interfaces:
HealthCenter

public class HealthCenterImpl extends Object implements HealthCenter
  • 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

      public IOData getIOData()
      Description copied from interface: HealthCenter
      Gets the I/O data that is associated with this Health Center connection.
      Specified by:
      getIOData in interface HealthCenter
      Returns:
      an IOData object that allows access to the I/O data.
    • getLockingData

      public LockingData getLockingData()
      Description copied from interface: HealthCenter
      Gets the locking data that is associated with this Health Center connection.
      Specified by:
      getLockingData in interface HealthCenter
      Returns:
      a LockingData object that allows access to the locking data.
    • getCpuData

      public CpuData getCpuData()
      Description copied from interface: HealthCenter
      Gets the CPU data that is associated with this Health Center connection.
      Specified by:
      getCpuData in interface HealthCenter
      Returns:
      a CpuData object that allows access to the CPU data.
    • getClassesData

      public ClassesData getClassesData()
      Description copied from interface: HealthCenter
      Gets the classes data that is associated with this Health Center connection.
      Specified by:
      getClassesData in interface HealthCenter
      Returns:
      a ClassesData object that allows access to the classes data.
    • getGCData

      public GCData getGCData()
      Description copied from interface: HealthCenter
      Gets the garbage collection data that is associated with this Health Center connection.
      Specified by:
      getGCData in interface HealthCenter
      Returns:
      a GCData object that allows access to the GC data.
    • getNativeMemoryData

      public NativeMemoryData getNativeMemoryData()
      Description copied from interface: HealthCenter
      Gets the native memory data that is associated with this Health Center connection.
      Specified by:
      getNativeMemoryData in interface HealthCenter
      Returns:
      a NativeMemoryData object that allows access to the native memory data.
    • getEnvironmentData

      public EnvironmentData getEnvironmentData()
      Description copied from interface: HealthCenter
      Gets the environment data that is associated with this Health Center connection.
      Specified by:
      getEnvironmentData in interface HealthCenter
      Returns:
      an EnvironmentData object that allows access to the environment data.
    • getThreadsData

      public ThreadsData getThreadsData()
      Description copied from interface: HealthCenter
      Gets the threads data that is associated with this Health Center connection.
      Specified by:
      getThreadsData in interface HealthCenter
      Returns:
      a ThreadsData object that allows access to the threads data.
    • getVMControl

      public VMControl getVMControl()
      Description copied from interface: HealthCenter
      Gets the VMControl object that is associated with this Health Center connection.
      Specified by:
      getVMControl in interface HealthCenter
      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

      public ProfilingData getProfilingData()
      Description copied from interface: HealthCenter
      Gets the profiling data that is associated with this Health Center connection.
      Specified by:
      getProfilingData in interface HealthCenter
      Returns:
      a ProfilingData object that allows access to the profiling data.
    • setTimeThreshold

      public void setTimeThreshold(int lowerThreshold)
      Description copied from interface: HealthCenter
      Sets 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:
      setTimeThreshold in interface HealthCenter
      Parameters:
      lowerThreshold - the threshold, in minutes from application start.
    • setTimeThresholds

      public void setTimeThresholds(int lowerThreshold, int upperThreshold)
      Description copied from interface: HealthCenter
      Sets 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:
      setTimeThresholds in interface HealthCenter
      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: HealthCenter
      Sets 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:
      setFineGrainTimeThresholds in interface HealthCenter
      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: HealthCenter
      Clears any time thresholds that were set on the Health Center data.
      Specified by:
      clearTimeThresholds in interface HealthCenter
    • getPreferences

      public HealthCenterPreferences getPreferences()
      Description copied from interface: HealthCenter
      Gets a HealthCenterPreferences object, on which preferences can be set.
      Specified by:
      getPreferences in interface HealthCenter
      Returns:
      the HealthCenterPreferences object for this Health Center connection.
    • saveData

      public void saveData(File fileName) throws IOException
      Description copied from interface: HealthCenter
      Saves the current Health Center data to disk. Filenames have the following format: healthcenter_yyyymmddhhmm_index.hcd.
      Specified by:
      saveData in interface HealthCenter
      Parameters:
      fileName - A filename or directory to save the data to. If a directory is specified, the default value of healthcenter is used for the filename.
      Throws:
      IOException - if the directory does not exist
    • getMethodTraceData

      public MethodTraceData getMethodTraceData()
      Description copied from interface: HealthCenter
      Gets the method trace data that is associated with this Health Center connection.
      Specified by:
      getMethodTraceData in interface HealthCenter
      Returns:
      a MethodTraceData object that allows access to the method trace data.
    • getAmountOfDataReceived

      public long getAmountOfDataReceived()
      Description copied from interface: HealthCenter
      Gets the number of bytes read so far by the Health Center.
      Specified by:
      getAmountOfDataReceived in interface HealthCenter
      Returns:
      the amount of data received, in bytes.
    • getLastUpdated

      public Date getLastUpdated()
      Description copied from interface: HealthCenter
      Gets the time when data was last received (variable).
      Specified by:
      getLastUpdated in interface HealthCenter
      Returns:
      the time that the last data was received.
    • isConnectionAlive

      public boolean isConnectionAlive()
      Description copied from interface: HealthCenter
      Whether the connection is currently connected. For files, this value is slightly ambiguous but will be always true, unless the file is deleted halfway through reading.
      Specified by:
      isConnectionAlive in interface HealthCenter
      Returns:
      a boolean indicating whether the connection is alive.
    • endMonitoring

      public void endMonitoring()
      Description copied from interface: HealthCenter
      Ends the monitoring of the application, although the agent remains running to allow future connections.
      Specified by:
      endMonitoring in interface HealthCenter
    • resetData

      public void resetData()
      Description copied from interface: HealthCenter
      Clears all current Health Center data.
      Specified by:
      resetData in interface HealthCenter
    • getEarliestMonitoredDataTime

      public Date getEarliestMonitoredDataTime()
      Description copied from interface: HealthCenter
      Gets the time of the first piece of monitored data.
      Specified by:
      getEarliestMonitoredDataTime in interface HealthCenter
      Returns:
      the time of the first piece of monitored data.
    • getLatestMonitoredDataTime

      public Date getLatestMonitoredDataTime()
      Description copied from interface: HealthCenter
      Gets the time of the latest piece of monitored data.
      Specified by:
      getLatestMonitoredDataTime in interface HealthCenter
      Returns:
      the time of the latest piece of monitored data.
    • setEventOnlyMode

      public void setEventOnlyMode(boolean value)
      Description copied from interface: HealthCenter
      runs in event only mode so that no data is stored (including backing file data) This just publishes events
      Specified by:
      setEventOnlyMode in interface HealthCenter
      Parameters:
      value - true or false to turn on or off