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

public interface HealthCenterData extends NotificationEmitter
This class provides access to all the recommendations and observations that Health Center can make on the data it was given.
  • 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 calls
      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.
    • 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, a NotificationListener needs 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.