com.ibm.dse.base
Class EventManagerServerOperation
java.lang.Object
com.ibm.dse.base.DSEOperation
com.ibm.dse.base.DSEServerOperation
com.ibm.dse.base.EventManagerServerOperation
- All Implemented Interfaces:
- Cacheable, Externalizable, java.io.Externalizable, Operation, java.io.Serializable, ServerOperation
- 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:
- 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.
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
sessionId
Keeps the identification of the session between the client and the server |
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.DSEOperation |
addElement, addOperationRepliedListener, chainTo, chainToContextNamed, chainToCurrentContext, clearKeyedCollection, close, externalizer, fireHandleOperationRepliedEvent, getApplicationId, getContext, getContextByType, getContextName, getContextNamed, getElementAt, getExternalizer, getFormat, getFormats, getHostReceiveFormat, getHostSendFormat, getInstanceOfOperationStep, getKeyedCollection, getMinOperationConsumeTimeForTrace, getName, getOperationStep, getOperationStepRC, getOperationSteps, getParent, getSelfDefinedOpTagInputStream, getService, getServiceByType, getSessionId, getSgmlSelfDefinedOpFileName, getTraceOperationConsumeTime, getType, getValueAt, getXValidator, hasServices, initializeFormatFrom, initializeKeyedCollectionValueFrom, initializeOpStep, initializeOpStepsFrom, isCacheable, isChained, isContext, occurrencesNamed, prune, readExternal, readExternal, readObject, reinitialize, removeAt, removeExternal, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setExternalizer, setHostReceiveFormat, setHostSendFormat, setKeyedCollection, setMinOperationConsumeTimeForTrace, setName, setSessionId, setTraceOperationConsumeTime, setType, setValueAt, setXValidator, toString, toStrings, 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.dse.base.Operation |
addElement, addOperationRepliedListener, chainTo, chainToContextNamed, close, getApplicationId, getContext, getContextName, getElementAt, getFormat, getFormats, getKeyedCollection, getName, getParent, getService, getServiceByType, getType, getValueAt, hasServices, isChained, prune, removeAt, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setKeyedCollection, setName, setType, setValueAt, unchain, xValidate |
sessionId
protected java.lang.String sessionId
- Keeps the identification of the session between the client and the server
EventManagerServerOperation
public EventManagerServerOperation()
throws java.io.IOException,
DSEInvalidRequestException
- This constructor creates an EventManagerServerOperation object.
execute
public void execute()
throws DSEHandlerNotFoundException,
DSEException
- Calls the EventManager addHandler() method using the parameters sent by the client.
- Specified by:
execute
in interface Operation
- Overrides:
execute
in class DSEServerOperation
- Throws:
DSEHandlerNotFoundException
DSEException
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.
- Specified by:
initializeFrom
in interface Externalizable
- Overrides:
initializeFrom
in class DSEOperation
- Parameters:
aTag
- com.ibm.dse.base.Tag
- Returns:
- java.lang.Object
- Throws:
java.io.IOException
DSEException
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.
- Specified by:
runInSession
in interface ServerOperation
- Overrides:
runInSession
in class DSEServerOperation
- Parameters:
aSessionID
- java.lang.String - The identification of the session between the client and the server
- Throws:
DSEHandlerNotFoundException
DSEException
(c) Copyright IBM Corporation 1998, 2005