com.ibm.btt.base
Class EventManagerClientOperation
java.lang.Object
com.ibm.btt.base.BTTOperation
com.ibm.btt.base.BTTClientOperation
com.ibm.btt.base.EventManagerClientOperation
- All Implemented Interfaces:
- Cacheable, ClientOperation, Operation, CSReplyListener, java.io.Externalizable, java.io.Serializable, java.util.EventListener
public class EventManagerClientOperation
- extends BTTClientOperation
- 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.btt.base.BTTOperation |
addElement, addOperationRepliedListener, chainTo, clearKeyedCollection, close, externalizer, fireHandleOperationRepliedEvent, getApplicationId, getContext, getContextByType, getContextName, getContextNamed, getElementAt, getExternalizer, getFormat, getFormats, getHostReceiveFormat, getHostSendFormat, getInstanceOfOperationStep, getKeyedCollection, getName, getOperationStep, getOperationStepRC, getOperationSteps, getParent, getSelfDefinedOpTagInputStream, getService, getSessionId, getSgmlSelfDefinedOpFileName, getType, getValueAt, getXValidator, initializeFormatFrom, initializeKeyedCollectionValueFrom, initializeOpStep, initializeOpStepsFrom, isCacheable, isChained, postExecute, preExecute, prune, readExternal, readExternal, readObject, reinitialize, removeAt, removeExternal, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setDefinedContext, setExternalizer, setHostReceiveFormat, setHostSendFormat, setKeyedCollection, setName, setSessionId, setType, setValueAt, setXValidator, stopExecution, 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.btt.base.Operation |
addElement, addOperationRepliedListener, chainTo, close, getApplicationId, getContext, getContextName, getElementAt, getFormat, getFormats, getKeyedCollection, getName, getParent, getService, getType, getValueAt, 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.
- Throws:
java.io.IOException
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 BTTClientOperation
- Throws:
DSECSInvalidRequestException
DSECSTimeoutException
DSECSRemoteOperationException
handleCSReplyEvent
public void handleCSReplyEvent(CSReplyEvent aCSReplyEvent)
- Handles the CSReplyEvent.
- Specified by:
handleCSReplyEvent
in interface CSReplyListener
- Parameters:
aCSReplyEvent
- com.ibm.btt.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, 2011