com.ibm.dse.base
Class EventManagerServerOperation

java.lang.Object
  |
  +--com.ibm.dse.base.DSEOperation
        |
        +--com.ibm.dse.base.DSEServerOperation
              |
              +--com.ibm.dse.base.EventManagerServerOperation

public class EventManagerServerOperation
extends DSEServerOperation

The client server mechanism creates the EventManagerServerOperation when registering or deregistering remote interest in a specific event from a specific Notifier. The client server mechanism calls the operation runInSession() method to start the EventManagerServerOperation execution and when the execution ends it sends a CSReplyEvent to the client side.

The EventManagerServerOperation has an operation context with three parameters in its KeyedCollection:

See Also:
Serialized Form

Field Summary
protected  java.lang.String sessionId
          Keeps the identification of the session between the client and the server
 
Fields inherited from class com.ibm.dse.base.DSEOperation
aOperationRepliedListener, externalizer
 
Constructor Summary
EventManagerServerOperation()
          This constructor creates an EventManagerServerOperation object.
 
Method Summary
 void execute()
          Calls the EventManager addHandler() method using the parameters sent by the client.
 java.lang.Object initializeFrom(Tag aTag)
          This method is an Externalizable interface method.
 void runInSession(java.lang.String aSessionID)
          Looks for the input session in the table of sessions (see the Context interface).
 
Methods inherited from class com.ibm.dse.base.DSEServerOperation
getCSReplyFormat, getCSRequestFormat, getOriginWorkstation, setCSReplyFormat, setCSRequestFormat, setOriginWorkstation, updateContext
 
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, toStrings, toTags, unchain, writeExternal, writeExternal, xValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sessionId

protected java.lang.String sessionId
Keeps the identification of the session between the client and the server
Constructor Detail

EventManagerServerOperation

public EventManagerServerOperation()
                            throws java.io.IOException,
                                   DSEInvalidRequestException
This constructor creates an EventManagerServerOperation object.
Method Detail

execute

public void execute()
             throws DSEHandlerNotFoundException,
                    DSEException
Calls the EventManager addHandler() method using the parameters sent by the client.
Overrides:
execute in class DSEServerOperation

initializeFrom

public java.lang.Object initializeFrom(Tag aTag)
                                throws java.io.IOException,
                                       DSEException
This method is an Externalizable interface method. It does not prevent the externalizer overwriting the attribute values already set by the class constructor.
Overrides:
initializeFrom in class DSEOperation
Parameters:
aTag - com.ibm.dse.base.Tag

runInSession

public void runInSession(java.lang.String aSessionID)
                  throws DSEHandlerNotFoundException,
                         DSEException
Looks for the input session in the table of sessions (see the Context interface). Once it finds it, the method stores the identifier of the originating workstation and calls the execute() method of the operation.
Overrides:
runInSession in class DSEServerOperation
Parameters:
aSessionID - java.lang.String, the identification of the session between the client and the server