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:
- - anEventName the name of the event to be handled. The value could be "allEvents".
- - aNotiferName the name of the notifier that will signal the event to be handled.
- - operationType 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,
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 |
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 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.
- 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