Class MockEventIpcManager

    • Constructor Detail

      • MockEventIpcManager

        public MockEventIpcManager()
    • Method Detail

      • getEventListenerCount

        public int getEventListenerCount()
      • broadcastNow

        public void broadcastNow​(Event event)
      • broadcastNow

        public void broadcastNow​(Event event,
                                 boolean synchronous)
        Description copied from interface: EventIpcBroadcaster
        Called by eventd to send an event to all interested listeners.
        Specified by:
        broadcastNow in interface EventIpcBroadcaster
        Parameters:
        event - a Event object.
        synchronous - Whether this call should wait for all EventListener calls to finish before returning.
      • setEventWriter

        public void setEventWriter​(EventWriter eventWriter)
      • setEventExpander

        public void setEventExpander​(EventExpander expander)
      • setEventAnticipator

        public void setEventAnticipator​(EventAnticipator anticipator)
      • setEventDelay

        public void setEventDelay​(int millis)
      • sendEventToListeners

        public void sendEventToListeners​(Event event)
        Parameters:
        event -
      • setSynchronous

        public void setSynchronous​(boolean syncState)
      • isSynchronous

        public boolean isSynchronous()
      • setNumSchedulerThreads

        public void setNumSchedulerThreads​(int numThreads)
      • getNumSchedulerTheads

        public int getNumSchedulerTheads()
      • sendNow

        public void sendNow​(Event event)
        Description copied from interface: EventForwarder
        Asynchronously sends an event to eventd.
        Specified by:
        sendNow in interface EventForwarder
        Parameters:
        event - a Event object.
      • sendNow

        public void sendNow​(Event event,
                            boolean synchronous)
      • sendNow

        public void sendNow​(Log eventLog)
        Description copied from interface: EventForwarder
        Asynchronously sends a set of events to eventd.
        Specified by:
        sendNow in interface EventForwarder
        Parameters:
        eventLog - a Log object.
      • sendNowSync

        public void sendNowSync​(Log eventLog)
        Description copied from interface: EventForwarder
        Synchronously sends a set of events to eventd.
        Specified by:
        sendNowSync in interface EventForwarder
        Parameters:
        eventLog - a Log object.
      • finishProcessingEvents

        public void finishProcessingEvents()
      • setEventdConfig

        public void setEventdConfig​(EventdConfig eventdConfig)
      • setDataSource

        public void setDataSource​(javax.sql.DataSource instance)
      • reset

        public void reset()
        Resets the event listeners and resets the event anticipator.
      • send

        public void send​(Log eventLog)
                  throws EventProxyException
        Description copied from interface: EventProxy
        This method is called to send an event log containing multiple events out
        Specified by:
        send in interface EventProxy
        Parameters:
        eventLog - the events to be sent out
        Throws:
        EventProxyException - thrown if the send fails for any reason
      • hasEventListener

        public boolean hasEventListener​(java.lang.String uei)
        Description copied from interface: EventSubscriptionService
        Checks if there is at least one listener for the given uei.
        Specified by:
        hasEventListener in interface EventSubscriptionService
        Parameters:
        uei - the uie to check for
        Returns:
        true iff there is at least one listener