com.ibm.dse.base
Class EventManagerClientOperation

java.lang.Object
  |
  +--com.ibm.dse.base.DSEOperation
        |
        +--com.ibm.dse.base.DSEClientOperation
              |
              +--com.ibm.dse.base.EventManagerClientOperation

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:

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
 
Fields inherited from class com.ibm.dse.base.DSEOperation
aOperationRepliedListener, externalizer
 
Constructor Summary
EventManagerClientOperation(Context aContext, CSClientService aCSClient)
          The constructor for the EventManagerClientOperation.
 
Method Summary
 void execute()
          Calls the send() method of the CSClientService instance.
 void handleCSReplyEvent(CSReplyEvent aCSReplyEvent)
          Handles the CSReplyEvent.
 
Methods inherited from class com.ibm.dse.base.DSEClientOperation
getCSReplyFormat, getCSRequestFormat, getServerOperation, getServerOperationParentContext, initializeFrom, setCSReplyFormat, setCSRequestFormat, setServerOperation, setServerOperationParentContext, toStrings
 
Methods inherited from class com.ibm.dse.base.DSEOperation
addElement, addOperationRepliedListener, chainTo, chainToContextNamed, chainToCurrentContext, close, externalizer, fireHandleOperationRepliedEvent, getApplicationId, getContext, getContextByType, getContextName, getContextNamed, getElementAt, getExternalizer, getFormat, getFormats, getHostReceiveFormat, getHostSendFormat, getInstanceOfOperationStep, getKeyedCollection, getName, getOperationStep, getOperationStepRC, getOperationSteps, getParent, getSelfDefinedOpTagInputStream, getService, getServiceByType, getSessionId, getSgmlSelfDefinedOpFileName, getType, getValueAt, hasServices, initializeFormatFrom, initializeKeyedCollectionValueFrom, initializeOpStep, initializeOpStepsFrom, isCacheable, isChained, isContext, occurrencesNamed, prune, readExternal, readExternal, readObject, reinitialize, removeAt, removeExternal, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setExternalizer, setHostReceiveFormat, setHostSendFormat, setKeyedCollection, setName, setSessionId, setType, setValueAt, toString, toTags, unchain, writeExternal, writeExternal, xValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

csClient

protected CSClientService csClient
Keeps the CSClientService instance that holds the session between the client and the server
Constructor Detail

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 argument, which will start the server operation execution.

Method Detail

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.
Overrides:
execute in class DSEClientOperation

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