com.apama.services.event
Class EventServiceFactory

java.lang.Object
  extended by com.apama.services.event.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
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.
 
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(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.


Submit a bug or feature
Copyright (c) 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG