All Implemented Interfaces:
EnvironmentData, HealthCenterData, NotificationBroadcaster, NotificationEmitter

public class EnvironmentDataImpl extends HealthCenterDataImpl implements EnvironmentData
  • Constructor Details

    • EnvironmentDataImpl

      public EnvironmentDataImpl(com.ibm.java.diagnostics.common.datamodel.data.Data data)
  • Method Details

    • getSubsystemLabel

      protected String getSubsystemLabel()
      Specified by:
      getSubsystemLabel in class HealthCenterDataImpl
    • getRecommendationLabel

      protected String getRecommendationLabel()
      Specified by:
      getRecommendationLabel in class HealthCenterDataImpl
    • getJavaFullVersion

      public String getJavaFullVersion()
      Description copied from interface: EnvironmentData
      Gets a String representation of the full Java version for the application being monitored.
      Specified by:
      getJavaFullVersion in interface EnvironmentData
      Returns:
      the full Java version.
    • getHealthCenterAgentLibraryDate

      public Calendar getHealthCenterAgentLibraryDate()
      Description copied from interface: EnvironmentData
      Gets the date of the Health Center agent library.
      Specified by:
      getHealthCenterAgentLibraryDate in interface EnvironmentData
      Returns:
      the date representation of the Health Center agent library.
    • getHealthCenterAgentVersion

      public String getHealthCenterAgentVersion()
      Description copied from interface: EnvironmentData
      Gets the Health Center agent version.
      Specified by:
      getHealthCenterAgentVersion in interface EnvironmentData
      Returns:
      the agent version.
    • getJavaHome

      public String getJavaHome()
      Description copied from interface: EnvironmentData
      Gets the value of the JAVA_HOME evironment variable for the monitored application.
      Specified by:
      getJavaHome in interface EnvironmentData
      Returns:
      the value of JAVA_HOME, or null if not set.
    • getJavaVendor

      public String getJavaVendor()
      Description copied from interface: EnvironmentData
      Gets the vendor of the Java virtual machine being monitored.
      Specified by:
      getJavaVendor in interface EnvironmentData
      Returns:
      the Java vendor.
    • getJavaVersion

      public String getJavaVersion()
      Description copied from interface: EnvironmentData
      Gets the version of the Java virtual machine being monitored.
      Specified by:
      getJavaVersion in interface EnvironmentData
      Returns:
      the version of the Java virtual machine.
    • getJavaVirtualMachineName

      public String getJavaVirtualMachineName()
      Description copied from interface: EnvironmentData
      Gets the name of the Java virtual machine being monitored.
      Specified by:
      getJavaVirtualMachineName in interface EnvironmentData
      Returns:
      the Java virtual machine name.
    • getProcessId

      public int getProcessId()
      Description copied from interface: EnvironmentData
      Gets the ID of the Java process being monitored.
      Specified by:
      getProcessId in interface EnvironmentData
      Returns:
      the ID of the monitored process.
    • getHostName

      public String getHostName()
      Description copied from interface: EnvironmentData
      Gets the host name of the system that is running the monitored application.
      Specified by:
      getHostName in interface EnvironmentData
      Returns:
      the host name of the monitored system.
    • getOperatingSystemVersion

      public String getOperatingSystemVersion()
      Description copied from interface: EnvironmentData
      Gets the operating system version of the machine that is running the monitored application.
      Specified by:
      getOperatingSystemVersion in interface EnvironmentData
      Returns:
      the operating system version.
    • getOperatingSystemName

      public String getOperatingSystemName()
      Description copied from interface: EnvironmentData
      Gets the operating system of the machine that is running the monitored application.
      Specified by:
      getOperatingSystemName in interface EnvironmentData
      Returns:
      the operating system.
    • getProcessorCount

      public int getProcessorCount()
      Description copied from interface: EnvironmentData
      Gets the number of processors on the machine that is running the monitored application.
      Specified by:
      getProcessorCount in interface EnvironmentData
      Returns:
      the number of processors.
    • getSystemArchitecture

      public String getSystemArchitecture()
      Description copied from interface: EnvironmentData
      Gets the architecture of the system that is running the monitored application.
      Specified by:
      getSystemArchitecture in interface EnvironmentData
      Returns:
      the architecture of the monitored system.
    • getSystemProperties

      public Properties getSystemProperties()
      Description copied from interface: EnvironmentData
      Gets a list of system properties from the system that is running the monitored application.
      Specified by:
      getSystemProperties in interface EnvironmentData
      Returns:
      a list containing the system properties.
    • getEnvironmentVariables

      public Properties getEnvironmentVariables()
      Description copied from interface: EnvironmentData
      Gets a list of environment variables from the system that is running the monitored application.
      Specified by:
      getEnvironmentVariables in interface EnvironmentData
      Returns:
      a list containing the environment variables.
    • getBootClasspath

      public String[] getBootClasspath()
      Description copied from interface: EnvironmentData
      Gets the contents of the boot classpath of the monitored application.
      Specified by:
      getBootClasspath in interface EnvironmentData
      Returns:
      a String array containing values that are set on the boot classpath.
    • getClasspath

      public String[] getClasspath()
      Description copied from interface: EnvironmentData
      Gets the contents of the classpath of the monitored application.
      Specified by:
      getClasspath in interface EnvironmentData
      Returns:
      a String array containing values that are set on the classpath.
    • getDumpOptions

      public String[] getDumpOptions()
      Description copied from interface: EnvironmentData
      Gets any dump options that were set by the monitored application.
      Specified by:
      getDumpOptions in interface EnvironmentData
      Returns:
      a String array containing the dump options.
    • getJavaCommandLine

      public String[] getJavaCommandLine()
      Description copied from interface: EnvironmentData
      Gets the command line of the Java application that is being monitored.
      Specified by:
      getJavaCommandLine in interface EnvironmentData
      Returns:
      a String array containing values from the command line.
    • getJavaParameters

      public String[] getJavaParameters()
      Description copied from interface: EnvironmentData
      Gets the parameters that are in effect in the running JVM.
      Specified by:
      getJavaParameters in interface EnvironmentData
      Returns:
      a String array containing any Java parameters.
    • startNotifying

      public void startNotifying()
      Description copied from interface: HealthCenterData
      Starts a thread which checks for changes in the data every 2000 milliseconds and sends notifications if an update has occurred. To handle these notifications, a NotificationListener needs to be added to the object the thread is being started from.
      Specified by:
      startNotifying in interface HealthCenterData
    • startNotifying

      public void startNotifying(long delay)
      Description copied from interface: HealthCenterData
      Starts a thread which checks for changes in the data and sends notifications if an update has occurred. To handle these notifications, a NotificationListener needs to be added to the object the thread is being started from.
      Specified by:
      startNotifying in interface HealthCenterData
      Parameters:
      delay - The number of milliseconds between each update. The default is 2000 milliseconds and anything below this will not be accepted.