IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base
Class EventManagerClientOperation

java.lang.Object
  extended by com.ibm.btt.base.BTTOperation
      extended by com.ibm.btt.base.BTTClientOperation
          extended by 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
 
Fields inherited from class com.ibm.btt.base.BTTOperation
aOperationRepliedListener, COMPID, 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.btt.base.BTTClientOperation
getCSReplyFormat, getCSRequestFormat, getServerOperation, getServerOperationParentContext, initializeFrom, setCSReplyFormat, setCSRequestFormat, setServerOperation, setServerOperationParentContext, toStrings
 
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, 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
 
Methods inherited from interface com.ibm.btt.base.Cacheable
isCacheable, reinitialize
 

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

Throws:
java.io.IOException
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.

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

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010