com.ibm.ia.runtime.management

Interface SystemMonitorMXBean



  • @MXBean
    public interface SystemMonitorMXBean
    MXBean to retrieve warning messages collected by the system monitor.

    The MXbean emits a notification when a warning is added to the logging cache by the system monitor. The userdata returned in the notification is an instance of LogEntry.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String MXBEAN_OBJECT_NAME
      The object name by which a JMX client can find the SystemMonitorMXBean.
      static java.lang.String NOTIFY_ADD
      ADD notification type that a JMX client may listen to.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.List<LogEntry> getWarnings()
      Returns the list of all warnings collected on the server using the default locale and timezone.
      java.util.List<LogEntry> getWarnings(java.lang.Long startTime, java.lang.Long endTime)
      Returns the list of warnings collected on the server using the default locale and time, and the specific time range.
      java.util.List<LogEntry> getWarningsByType(java.lang.String type)
      Returns the list of all warnings of the specific type collected on the server using the default locale and timezone.
      void reset()
      Resets the logging cache.
    • Field Detail

      • MXBEAN_OBJECT_NAME

        static final java.lang.String MXBEAN_OBJECT_NAME
        The object name by which a JMX client can find the SystemMonitorMXBean.
        See Also:
        Constant Field Values
      • NOTIFY_ADD

        static final java.lang.String NOTIFY_ADD
        ADD notification type that a JMX client may listen to.
        See Also:
        Constant Field Values
    • Method Detail

      • getWarnings

        java.util.List<LogEntry> getWarnings()
        Returns the list of all warnings collected on the server using the default locale and timezone.
        Returns:
        A list of CompositeType of warnings, ordered by timestamp.
      • getWarnings

        java.util.List<LogEntry> getWarnings(java.lang.Long startTime,
                                           java.lang.Long endTime)
        Returns the list of warnings collected on the server using the default locale and time, and the specific time range. Entries are matched to the precision of second with millisecond truncated.
        Parameters:
        startTime - the beginning inclusive time in second of the entries. Set to null to begin from the first available entry.
        endTime - the ending inclusive time in second of the entries. Set to null to end at the last available entry.
        Returns:
        A list of CompositeType of warnings, matching the specified time range and ordered by timestamp.
      • getWarningsByType

        java.util.List<LogEntry> getWarningsByType(java.lang.String type)
        Returns the list of all warnings of the specific type collected on the server using the default locale and timezone.
        Parameters:
        type - the constant string like LogEntry#TYPE_ROUTED_WARNING, or LogEntry.TYPE_SYSTEM_WARNING or for solution specific warnings, use [solution name]:LogEntry.TYPE_RUNTIME_WARNING, for example, "hello_world_sln:runtimeWarning".
        Returns:
        A list of CompositeType of warnings, ordered by timestamp.
      • reset

        void reset()
        Resets the logging cache.

© Copyright IBM 2017