|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.dse.base.DSEHandler
|
+--com.ibm.dse.base.MirrorHandler
This class should only be used by the EventManager. Any instance of this class is a handler that is interested for an event that will be signaled by a local notifier and represents a handler in a remote workstation interested in a remote event.
| Constructor Summary | |
MirrorHandler(CSClientService aCSClient,
java.lang.String anEventName)
This constructor creates a MirrorHandler with TID attribute set to aCSClient.getName() and the event anEventName added to its list of events. |
|
MirrorHandler(java.lang.String aSessionId,
java.lang.String anEventName)
This constructor creates a MirrorHandler with its sessionId attribute set to aSessionId, TID attribute set to Context.getTIDForSession(aSessionId) and the event anEventName added to its list of events. |
|
| Method Summary | |
void |
addEvent(java.lang.String anEventName)
Adds an event to the events list. |
Handler |
dispatchEvent(DSEEventObject anEvent)
Dispatchs the event anEvent. |
protected Hashtable |
getEventList()
Gets the eventList attribute value. |
java.lang.String |
getSessionId()
Gets the sessionId attribute value. |
java.lang.String |
getTID()
Gets the tid attribute value. |
boolean |
hasEvents()
Returns true if there is any event in the events list. |
void |
removeEvent(java.lang.String anEventName)
Removes an event from the events list. |
void |
setSessionId(java.lang.String aSessionId)
Sets the sessionId attribute to aSessionId. |
void |
setTID(java.lang.String aTID)
Sets the tid attribute to aTID. |
| Methods inherited from class com.ibm.dse.base.DSEHandler |
handleEvent,
handleEvent,
stopHandlingEvent,
stopHandlingEvent |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public MirrorHandler(CSClientService aCSClient,
java.lang.String anEventName)
aCSClient - CSClientServiceanEventName - java.lang.String
public MirrorHandler(java.lang.String aSessionId,
java.lang.String anEventName)
throws DSEInvalidRequestException,
DSEObjectNotFoundException
aSessionId - java.lang.StringanEventName - java.lang.String| Method Detail |
public void addEvent(java.lang.String anEventName)
anEventName - java.lang.Stringpublic Handler dispatchEvent(DSEEventObject anEvent)
anEvent - com.ibm.dse.base.DSEEventObjectprotected Hashtable getEventList()
public java.lang.String getSessionId()
public java.lang.String getTID()
public boolean hasEvents()
public void removeEvent(java.lang.String anEventName)
anEvent - java.lang.Stringpublic void setSessionId(java.lang.String aSessionId)
aSessionId - java.lang.Stringpublic void setTID(java.lang.String aTID)
aTID - java.lang.String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||