Developing Apama Applications > Developing Clients > The EventService API > The IEventService interface
The IEventService interface
To get an EventService object, call the createEventService() method of the com.apama.services.event.EventServiceFactory class. The returned object implements the IEventService interface. With this object the following methods are available:
*IEventServiceChannel addChannel() — defined as:
IEventServiceChannel addChannel(
java.lang.String channelName,
java.util.Map<String, Object> channelConfig)
Create an EventServiceChannel specifically for listening to a given channel or channels.
*void destroy()
Destroy this service (not the correlator).
*IEventServiceChannel getChannel(java.lang.String channelName)
Get an EventServiceChannel for a given channel or channels.
*EngineClientInterface getEngineClient()
Get a handle on the underlying EngineClient.
*boolean isDestroyed()
Determine if this service (not the correlator) is destroyed.
*void removeChannel(java.lang.String channelName)
Remove an EventServiceChannel for a given channel or channels.
*void sendEvent(Event event)
Send an event to the correlator using the EngineClient.
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.