Class EventServiceFactory


  • public class EventServiceFactory
    extends java.lang.Object
    EventServiceFactory is a class that provides a factory for creating new instances of classes that implement the IEventService interface.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static IEventService createEventService()
      Create a new instance of the EventService with default parameters.
      static IEventService createEventService​(EngineClientInterface engineClient)
      Create a new EventService instance using the supplied EngineClient to connect to a Correlator.
      static IEventService createEventService​(java.lang.String socket_hostname, int socket_port)
      Create a new EventService instance with an EngineClient connected to a Correlator on the given host and port.
      static IEventService createEventService​(java.lang.String socket_hostname, int socket_port, java.lang.String processName)
      Create a new EventService instance with an EngineClient connected to a Correlator on the given host and port, with a specified process name.
      static IEventService createEventService​(java.lang.String socket_hostname, int socket_port, java.lang.String processName, boolean disconnectSlowReceiver)
      Create a new EventService instance with an EngineClient connected to a Correlator on the given host and port, with a specified process name.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createEventService

        public static IEventService createEventService()
        Create a new instance of the EventService with default parameters.
        Returns:
        the new IEventService instance.
      • createEventService

        public static IEventService createEventService​(java.lang.String socket_hostname,
                                                       int socket_port)
        Create a new EventService instance with an EngineClient connected to a Correlator on the given host and port.
        Parameters:
        socket_hostname - Name of the host where the Correlator is running.
        socket_port - Port number on which the Correlator is listening.
        Returns:
        the new IEventService instance.
      • createEventService

        public static IEventService createEventService​(java.lang.String socket_hostname,
                                                       int socket_port,
                                                       java.lang.String processName)
        Create a new EventService instance with an EngineClient connected to a Correlator on the given host and port, with a specified process name.
        Parameters:
        socket_hostname - Name of the host where the Correlator is running.
        socket_port - Port number on which the Correlator is listening.
        processName - A display name to identify which application is responsible for this connection to the Correlator (this name is included in log files for diagnostic purposes)
        Returns:
        the new IEventService instance.
      • createEventService

        public static IEventService createEventService​(java.lang.String socket_hostname,
                                                       int socket_port,
                                                       java.lang.String processName,
                                                       boolean disconnectSlowReceiver)
        Create a new EventService instance with an EngineClient connected to a Correlator on the given host and port, with a specified process name.
        Parameters:
        socket_hostname - Name of the host where the Correlator is running.
        socket_port - Port number on which the Correlator is listening.
        processName - A display name to identify which application is responsible for this connection to the Correlator (this name is included in log files for diagnostic purposes)
        disconnectSlowReceiver - Disconnect the receiver if it is slow
        Returns:
        the new IEventService instance.
      • createEventService

        public static IEventService createEventService​(EngineClientInterface engineClient)
        Create a new EventService instance using the supplied EngineClient to connect to a Correlator.

        It is the caller's responsibility to destroy() the specified messagingClient, after calling destroy() on this EventService.

        Parameters:
        engineClient - the EngineClient to be used by the new EventService.
        Returns:
        the new IEventService instance.