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:
- - 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.
- 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,
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 |
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.
- 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