|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.target.TargetSession
public class TargetSession
TargetSession is created when a new Session is opened on a
UISocket. It allows changes to be propagated to the
ISessionListener
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
TargetSession(UISocket socket,
java.lang.String sessionId)
Creates a new TargetSession instance. |
|
| Method Summary | |
|---|---|
void |
abortSession()
abortSession to abort the session. |
boolean |
acknowledgeNotification(java.lang.String elementId)
acknowledgeNotification is called to notify the
sessionListeners that a Urc has acknowledged a notification. |
void |
closeSession()
closeSession is called by the Client to close the session. |
java.lang.String |
getId()
getId gets the unique sessionID of this
Session |
UISocket |
getParentSocket()
getParentSocket Returns the parent UISocket |
ISessionListener |
getSessionListener()
getSessionListener Gets the current list of listeners. |
AbstractUISocketElement |
getUISocketElement(java.lang.String elementId)
getUISocketElement gets a UISocketElement specific to this
session |
java.util.List<AbstractUISocketElement> |
getUISocketElements()
getUISocketElements Gets the UISocketElements for this particular TargetSession |
java.lang.String |
invokeCommandRequest(java.lang.String elementId)
invokeCommandRequest notifies sessionListener that a Client has
invoked a command. |
void |
propagateUpdates()
Invoke this method of propagate accumulated updates to the Client |
void |
removeSessionListener()
removeSessionListener Remove the listener from the Session. |
void |
setElementForAccUpdate(java.lang.String elementId,
java.lang.Object value)
Stores the elementId and the corresponding new value for pushing an Accumulated update to the Client when the propagateUpdates() method is called |
boolean |
setElementStateRequest(java.lang.String elementId,
java.lang.Object value)
setElementStateRequest notifies sessionListener that a Client wants to change the state of an element. |
void |
setSessionListener(ISessionListener sessionListener)
setSessionListener Sets a listener to the Session object allowing the reception of Session
events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger logger
| Constructor Detail |
|---|
public TargetSession(UISocket socket,
java.lang.String sessionId)
TargetSession instance.
socket - an UISocket valuesessionId - a String value unique to this session.| Method Detail |
|---|
public void setSessionListener(ISessionListener sessionListener)
setSessionListener Sets a listener to the Session object allowing the reception of Session
events.
sessionListener - an ISessionListener valuepublic void removeSessionListener()
removeSessionListener Remove the listener from the Session.
public ISessionListener getSessionListener()
getSessionListener Gets the current list of listeners.
ISessionListener objectpublic java.util.List<AbstractUISocketElement> getUISocketElements()
getUISocketElements Gets the UISocketElements for this particular TargetSession
List of the UISocketElementspublic UISocket getParentSocket()
getParentSocket Returns the parent UISocket
UISocketpublic java.lang.String getId()
getId gets the unique sessionID of this
Session
String valuepublic void closeSession()
closeSession is called by the Client to close the session. It takes care
of alerting the UISocket of the close.
public void abortSession()
throws UrcException
abortSession to abort the session. It takes care of
alerting the connected Client.
UrcExceptionpublic AbstractUISocketElement getUISocketElement(java.lang.String elementId)
getUISocketElement gets a UISocketElement specific to this
session
elementId -
AbstractUISocketElement requestedpublic boolean acknowledgeNotification(java.lang.String elementId)
acknowledgeNotification is called to notify the
sessionListeners that a Urc has acknowledged a notification.
elementId - a String value
boolean valuepublic java.lang.String invokeCommandRequest(java.lang.String elementId)
invokeCommandRequest notifies sessionListener that a Client has
invoked a command.
elementId - a String value
public boolean setElementStateRequest(java.lang.String elementId,
java.lang.Object value)
setElementStateRequest notifies sessionListener that a Client wants to change the state of an element.
elementId - a String valuevalue - a Object value
boolean value
public void setElementForAccUpdate(java.lang.String elementId,
java.lang.Object value)
elementId - a String valuevalue - a Object valuepublic void propagateUpdates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||