com.ibm.java.diagnostics.healthcenter.api

Interface HealthCenterData

    • Method Detail

      • getAllRecommendations

        java.lang.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

        java.lang.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

        java.lang.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

        java.lang.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

        java.lang.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.
© Copyright 2012, 2016 IBM Corporation.