Class EnvironmentDataImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterDataImpl
com.ibm.java.diagnostics.healthcenter.api.environment.impl.EnvironmentDataImpl
- All Implemented Interfaces:
EnvironmentData,HealthCenterData,NotificationBroadcaster,NotificationEmitter
-
Field Summary
Fields inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterDataImpl
DEFAULT_NOTIFICATION, UNSETFields inherited from interface com.ibm.java.diagnostics.healthcenter.api.environment.EnvironmentData
ENVIRONMENTDATA -
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentDataImpl(com.ibm.java.diagnostics.common.datamodel.data.Data data) -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the contents of the boot classpath of the monitored application.String[]Gets the contents of the classpath of the monitored application.String[]Gets any dump options that were set by the monitored application.Gets a list of environment variables from the system that is running the monitored application.Gets the date of the Health Center agent library.Gets the Health Center agent version.Gets the host name of the system that is running the monitored application.String[]Gets the command line of the Java application that is being monitored.Gets a String representation of the full Java version for the application being monitored.Gets the value of the JAVA_HOME evironment variable for the monitored application.String[]Gets the parameters that are in effect in the running JVM.Gets the vendor of the Java virtual machine being monitored.Gets the version of the Java virtual machine being monitored.Gets the name of the Java virtual machine being monitored.Gets the operating system of the machine that is running the monitored application.Gets the operating system version of the machine that is running the monitored application.intGets the ID of the Java process being monitored.intGets the number of processors on the machine that is running the monitored application.protected Stringprotected StringGets the architecture of the system that is running the monitored application.Gets a list of system properties from the system that is running the monitored application.voidStarts a thread which checks for changes in the data every 2000 milliseconds and sends notifications if an update has occurred.voidstartNotifying(long delay) Starts a thread which checks for changes in the data and sends notifications if an update has occurred.Methods inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.HealthCenterDataImpl
convertSummaryToDouble, convertSummaryToInt, convertSummaryToLong, extractRate, findAllRecommendations, findRecommendations, getAllRecommendations, getCriticalRecommendations, getEventData, getHealthyRecommendations, getInformationalRecommendations, getJvmData, getMaxData, getMeanData, getMinData, getWarningRecommendations, setJvmData, stripPercentSymbolMethods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ibm.java.diagnostics.healthcenter.api.HealthCenterData
getAllRecommendations, getCriticalRecommendations, getHealthyRecommendations, getInformationalRecommendations, getWarningRecommendationsMethods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Constructor Details
-
EnvironmentDataImpl
public EnvironmentDataImpl(com.ibm.java.diagnostics.common.datamodel.data.Data data)
-
-
Method Details
-
getSubsystemLabel
- Specified by:
getSubsystemLabelin classHealthCenterDataImpl
-
getRecommendationLabel
- Specified by:
getRecommendationLabelin classHealthCenterDataImpl
-
getJavaFullVersion
Description copied from interface:EnvironmentDataGets a String representation of the full Java version for the application being monitored.- Specified by:
getJavaFullVersionin interfaceEnvironmentData- Returns:
- the full Java version.
-
getHealthCenterAgentLibraryDate
Description copied from interface:EnvironmentDataGets the date of the Health Center agent library.- Specified by:
getHealthCenterAgentLibraryDatein interfaceEnvironmentData- Returns:
- the date representation of the Health Center agent library.
-
getHealthCenterAgentVersion
Description copied from interface:EnvironmentDataGets the Health Center agent version.- Specified by:
getHealthCenterAgentVersionin interfaceEnvironmentData- Returns:
- the agent version.
-
getJavaHome
Description copied from interface:EnvironmentDataGets the value of the JAVA_HOME evironment variable for the monitored application.- Specified by:
getJavaHomein interfaceEnvironmentData- Returns:
- the value of JAVA_HOME, or
nullif not set.
-
getJavaVendor
Description copied from interface:EnvironmentDataGets the vendor of the Java virtual machine being monitored.- Specified by:
getJavaVendorin interfaceEnvironmentData- Returns:
- the Java vendor.
-
getJavaVersion
Description copied from interface:EnvironmentDataGets the version of the Java virtual machine being monitored.- Specified by:
getJavaVersionin interfaceEnvironmentData- Returns:
- the version of the Java virtual machine.
-
getJavaVirtualMachineName
Description copied from interface:EnvironmentDataGets the name of the Java virtual machine being monitored.- Specified by:
getJavaVirtualMachineNamein interfaceEnvironmentData- Returns:
- the Java virtual machine name.
-
getProcessId
public int getProcessId()Description copied from interface:EnvironmentDataGets the ID of the Java process being monitored.- Specified by:
getProcessIdin interfaceEnvironmentData- Returns:
- the ID of the monitored process.
-
getHostName
Description copied from interface:EnvironmentDataGets the host name of the system that is running the monitored application.- Specified by:
getHostNamein interfaceEnvironmentData- Returns:
- the host name of the monitored system.
-
getOperatingSystemVersion
Description copied from interface:EnvironmentDataGets the operating system version of the machine that is running the monitored application.- Specified by:
getOperatingSystemVersionin interfaceEnvironmentData- Returns:
- the operating system version.
-
getOperatingSystemName
Description copied from interface:EnvironmentDataGets the operating system of the machine that is running the monitored application.- Specified by:
getOperatingSystemNamein interfaceEnvironmentData- Returns:
- the operating system.
-
getProcessorCount
public int getProcessorCount()Description copied from interface:EnvironmentDataGets the number of processors on the machine that is running the monitored application.- Specified by:
getProcessorCountin interfaceEnvironmentData- Returns:
- the number of processors.
-
getSystemArchitecture
Description copied from interface:EnvironmentDataGets the architecture of the system that is running the monitored application.- Specified by:
getSystemArchitecturein interfaceEnvironmentData- Returns:
- the architecture of the monitored system.
-
getSystemProperties
Description copied from interface:EnvironmentDataGets a list of system properties from the system that is running the monitored application.- Specified by:
getSystemPropertiesin interfaceEnvironmentData- Returns:
- a list containing the system properties.
-
getEnvironmentVariables
Description copied from interface:EnvironmentDataGets a list of environment variables from the system that is running the monitored application.- Specified by:
getEnvironmentVariablesin interfaceEnvironmentData- Returns:
- a list containing the environment variables.
-
getBootClasspath
Description copied from interface:EnvironmentDataGets the contents of the boot classpath of the monitored application.- Specified by:
getBootClasspathin interfaceEnvironmentData- Returns:
- a String array containing values that are set on the boot classpath.
-
getClasspath
Description copied from interface:EnvironmentDataGets the contents of the classpath of the monitored application.- Specified by:
getClasspathin interfaceEnvironmentData- Returns:
- a String array containing values that are set on the classpath.
-
getDumpOptions
Description copied from interface:EnvironmentDataGets any dump options that were set by the monitored application.- Specified by:
getDumpOptionsin interfaceEnvironmentData- Returns:
- a String array containing the dump options.
-
getJavaCommandLine
Description copied from interface:EnvironmentDataGets the command line of the Java application that is being monitored.- Specified by:
getJavaCommandLinein interfaceEnvironmentData- Returns:
- a String array containing values from the command line.
-
getJavaParameters
Description copied from interface:EnvironmentDataGets the parameters that are in effect in the running JVM.- Specified by:
getJavaParametersin interfaceEnvironmentData- Returns:
- a String array containing any Java parameters.
-
startNotifying
public void startNotifying()Description copied from interface:HealthCenterDataStarts a thread which checks for changes in the data every 2000 milliseconds and sends notifications if an update has occurred. To handle these notifications, aNotificationListenerneeds to be added to the object the thread is being started from.- Specified by:
startNotifyingin interfaceHealthCenterData
-
startNotifying
public void startNotifying(long delay) Description copied from interface:HealthCenterDataStarts a thread which checks for changes in the data and sends notifications if an update has occurred. To handle these notifications, aNotificationListenerneeds to be added to the object the thread is being started from.- Specified by:
startNotifyingin interfaceHealthCenterData- Parameters:
delay- The number of milliseconds between each update. The default is 2000 milliseconds and anything below this will not be accepted.
-