com.ibm.btt.base
Class EventManagerServerOperation
java.lang.Object
com.ibm.btt.base.BTTOperation
com.ibm.btt.base.BTTServerOperation
com.ibm.btt.base.EventManagerServerOperation
- All Implemented Interfaces:
- Cacheable, Operation, ServerOperation, java.io.Externalizable, java.io.Serializable
public class EventManagerServerOperation
- extends BTTServerOperation
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.btt.base.BTTServerOperation |
createOperation, getCSReplyFormat, getCSRequestFormat, getOriginWorkstation, setCSReplyFormat, setCSRequestFormat, setOriginWorkstation, updateContext, updateContext, validate, validate |
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, 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.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 |
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.
- Throws:
java.io.IOException
DSEInvalidRequestException
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 BTTServerOperation
- 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.
- Overrides:
initializeFrom
in class BTTOperation
- Parameters:
aTag
- com.ibm.btt.base.Tag
- Returns:
- java.lang.Object - an initialized operation
- 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 BTTServerOperation
- Parameters:
aSessionID
- java.lang.String - The identification of the session between
the client and the server
- Throws:
DSEHandlerNotFoundException
DSEException
(c) Copyright IBM Corporation 1998, 2010