com.ibm.dse.base
Class EventManagerClientOperation
java.lang.Object
com.ibm.dse.base.DSEOperation
com.ibm.dse.base.DSEClientOperation
com.ibm.dse.base.EventManagerClientOperation
- All Implemented Interfaces:
- Cacheable, ClientOperation, CSReplyListener, java.util.EventListener, Externalizable, java.io.Externalizable, Operation, java.io.Serializable
- public class EventManagerClientOperation
- extends DSEClientOperation
- implements CSReplyListener
The client side EventManager class creates the EventManagerClientOperation when registering or deregistering remote interest in a specific event from a specific
Notifier.
The EventManagerClientOperation has an operation context with three parameters in its KeyedCollection:
- anEventName is the name of the event to be handled. The value could be allEvents.
- aNotiferName is the name of the notifier that will signal the event to be handled.
- operationType is the type of operation to be performed. The value is addHandler when adding a handler or removeHandler when removing a handler.
As a CSReplyListener implementor, the EventManagerClientOperation implements the handleCSReplyEvent() method.
- See Also:
- Serialized Form
Field Summary |
protected CSClientService |
csClient
Keeps the CSClientService instance that holds the session between the client and the server |
Methods inherited from class com.ibm.dse.base.DSEOperation |
addElement, addOperationRepliedListener, chainTo, chainToContextNamed, chainToCurrentContext, clearKeyedCollection, close, externalizer, fireHandleOperationRepliedEvent, getApplicationId, getContext, getContextByType, getContextName, getContextNamed, getElementAt, getExternalizer, getFormat, getFormats, getHostReceiveFormat, getHostSendFormat, getInstanceOfOperationStep, getKeyedCollection, getMinOperationConsumeTimeForTrace, getName, getOperationStep, getOperationStepRC, getOperationSteps, getParent, getSelfDefinedOpTagInputStream, getService, getServiceByType, getSessionId, getSgmlSelfDefinedOpFileName, getTraceOperationConsumeTime, getType, getValueAt, getXValidator, hasServices, initializeFormatFrom, initializeKeyedCollectionValueFrom, initializeOpStep, initializeOpStepsFrom, isCacheable, isChained, isContext, occurrencesNamed, prune, readExternal, readExternal, readObject, reinitialize, removeAt, removeExternal, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setExternalizer, setHostReceiveFormat, setHostSendFormat, setKeyedCollection, setMinOperationConsumeTimeForTrace, setName, setSessionId, setTraceOperationConsumeTime, setType, setValueAt, setXValidator, toString, toTags, unchain, writeExternal, writeExternal, xValidate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.dse.base.Operation |
addElement, addOperationRepliedListener, chainTo, chainToContextNamed, close, getApplicationId, getContext, getContextName, getElementAt, getFormat, getFormats, getKeyedCollection, getName, getParent, getService, getServiceByType, getType, getValueAt, hasServices, isChained, prune, removeAt, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setKeyedCollection, setName, setType, setValueAt, unchain, xValidate |
csClient
protected CSClientService csClient
- Keeps the CSClientService instance that holds the session between the client and the server
EventManagerClientOperation
public EventManagerClientOperation(Context aContext,
CSClientService aCSClient)
throws java.io.IOException
- The constructor for the EventManagerClientOperation.
It creates an instance of EventManagerClientOperation with aContext as the operation context. The execute() method of the EventManagerClientOperation instance will
call the send() method of the CSClientService instance passed as an argument, which will start the server operation execution.
execute
public void execute()
throws DSECSInvalidRequestException,
DSECSTimeoutException,
DSECSRemoteOperationException
- Calls the send() method of the CSClientService instance. The send() method asynchonously executed the remote EventManagerServerOperation with the
EventManagerClientOperation instance as the parameter.
- Specified by:
execute
in interface Operation
- Overrides:
execute
in class DSEClientOperation
- Throws:
DSECSInvalidRequestException
DSECSTimeoutException
DSECSRemoteOperationException
handleCSReplyEvent
public void handleCSReplyEvent(CSReplyEvent aCSReplyEvent)
- Handles the CSReplyEvent.
- Specified by:
handleCSReplyEvent
in interface CSReplyListener
- Parameters:
aCSReplyEvent
- com.ibm.dse.clientserver.CSReplyEvent - The event that indicates that the server operation execution is completed and the response is available in the client
(c) Copyright IBM Corporation 1998, 2005