Class EventUtil


  • public class EventUtil
    extends Object
    Utility class to encapsulate support information pertaining to the EventHandler and events.
    Author:
    jrosen
    • Constructor Detail

      • EventUtil

        public EventUtil()
    • Method Detail

      • setDumpPathPrefixForTesting

        public static void setDumpPathPrefixForTesting​(String value)
        Junit is not recognizing the system properties for EventTest, so overriding the value here
        Parameters:
        value - string value
      • initEventHandlerInstance

        public static void initEventHandlerInstance​(int maxEntries,
                                                    int flushPeriodMs)
        Initializes the common eventHandler instance for all sessions/threads
        Parameters:
        maxEntries - - maximum number of buffered events before flush
        flushPeriodMs - - period of time between asynchronous buffer flushes
      • getEventHandlerInstance

        public static EventHandler getEventHandlerInstance()
        Returns:
        the shared EventHandler instance
      • triggerBasicEvent

        public static void triggerBasicEvent​(Event.EventType type,
                                             String message,
                                             boolean flushBuffer)
      • getDumpPathPrefix

        public static String getDumpPathPrefix()
      • getDumpFileId

        public static String getDumpFileId()
      • getmaxDumpFileSizeBytes

        public static long getmaxDumpFileSizeBytes()