Interface HealthCenterData
- All Superinterfaces:
NotificationBroadcaster,NotificationEmitter
- All Known Subinterfaces:
ClassesData,CpuData,EnvironmentData,GCData,IOData,LockingData,MethodTraceData,NativeMemoryData,ProfilingData,ThreadsData
- All Known Implementing Classes:
ClassesDataImpl,CpuDataImpl,EnvironmentDataImpl,GCDataImpl,HealthCenterDataImpl,IODataImpl,LockingDataImpl,MethodTraceDataImpl,NativeMemoryDataImpl,ProfilingDataImpl,ThreadsDataImpl
This class provides access to all the recommendations and
observations that Health Center can make on the data it was given.
-
Method Summary
Modifier and TypeMethodDescriptionString[]Gets all the recommendations.String[]Gets the critical recommendations.String[]Gets the recommendations that indicate that the system is healthy.String[]Gets the informational recommendations.String[]Gets just the warning recommendations.voidDeprecated.this has been replaced with the event api callsvoidstartNotifying(long delay) Deprecated.Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Method Details
-
getAllRecommendations
String[] getAllRecommendations()Gets all the recommendations. NOTE If running in "event only" mode, recommendation is unavailable. This is becuase in "event mode", no data is stored for the recommendation engine to run on.- Returns:
- an array of the recommendations.
-
getWarningRecommendations
String[] getWarningRecommendations()Gets just the warning recommendations. NOTE If running in "event only" mode, recommendation is unavailable. This is becuase in "event mode", no data is stored for the recommendation engine to run on.- Returns:
- an array of any recommendations that are considered a warning.
-
getInformationalRecommendations
String[] getInformationalRecommendations()Gets the informational recommendations. NOTE If running in "event only" mode, recommendation is unavailable. This is becuase in "event mode", no data is stored for the recommendation engine to run on.- Returns:
- an array of any informational recommendations.
-
getCriticalRecommendations
String[] getCriticalRecommendations()Gets the critical recommendations. NOTE If running in "event only" mode, recommendation is unavailable. This is becuase in "event mode", no data is stored for the recommendation engine to run on.- Returns:
- an array of critical recommendations, which require attention.
-
getHealthyRecommendations
String[] getHealthyRecommendations()Gets the recommendations that indicate that the system is healthy. NOTE If running in "event only" mode, recommendation is unavailable. This is becuase in "event mode", no data is stored for the recommendation engine to run on.- Returns:
- an array of the recommendations indicating that the system is healthy.
-
startNotifying
void startNotifying()Deprecated.this has been replaced with the event api callsStarts 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. -
startNotifying
void startNotifying(long delay) Deprecated.Starts 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.- Parameters:
delay- The number of milliseconds between each update. The default is 2000 milliseconds and anything below this will not be accepted.
-