Interface JmxLoggingNotificationMBean


  • public interface JmxLoggingNotificationMBean
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_LOGMSG_COUNT
      The default number of log messages to keep for contextual information around an error.
      static int DEFAULT_MAX_ERRORS_COUNT
      The default number of errors to capture and keep a history of.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int errorCount()
      Return the number of errors that are currently being tracked.
      java.util.List<java.lang.String> getErrorLog​(int index)
      Returns any logging saved.
      java.util.List<java.lang.String> remove​(int index)
      Remove an error log at the specified index.
    • Field Detail

      • DEFAULT_LOGMSG_COUNT

        static final int DEFAULT_LOGMSG_COUNT
        The default number of log messages to keep for contextual information around an error.
        See Also:
        Constant Field Values
      • DEFAULT_MAX_ERRORS_COUNT

        static final int DEFAULT_MAX_ERRORS_COUNT
        The default number of errors to capture and keep a history of.
        See Also:
        Constant Field Values
    • Method Detail

      • getErrorLog

        java.util.List<java.lang.String> getErrorLog​(int index)
        Returns any logging saved.
        Parameters:
        index - the index to retrieve.
        Returns:
        a list of strings or Collections.EMPTY_LIST if the index was not valid
      • errorCount

        int errorCount()
        Return the number of errors that are currently being tracked.
        Returns:
        the number of errors.
      • remove

        java.util.List<java.lang.String> remove​(int index)
        Remove an error log at the specified index.
        Parameters:
        index - the index to remove
        Returns:
        the list of strings that was removed or Collections.EMPTY_LIST if the index was not valid