edu.wisc.trace.urcsdk.target
Interface ISessionListener

All Known Implementing Classes:
TargetFacadeForJni

public interface ISessionListener

ISessionListener should be implemented to receive various session-specific events on the target.

Version:
$Revision: 1.21 $
Author:
Andrew Martin

Method Summary
 void connectionLost(java.lang.String sessionId)
          Called when the Target can no longer connect to the Client.
 java.lang.String invokeCommandRequest(UISocketCommand uiSocketCommand)
          Called when a command has been invoked by a Urc, but has not yet been executed on the pertaining socket.
 void notificationAcknowledged(UISocketNotification uiSocketNotification)
          Called when a notification has been acknowledged by a Urc
 boolean reconnect(java.lang.String sessionId)
          Called when a Client attempts to reconnect.
 void sessionClosed(java.lang.String sessionId)
          sessionClosed called when the Client closes a session.
 boolean setElementStateRequest(UISocketVariable uiSocketVariable, java.lang.Object value)
          Called when the Client tries to change the state of an element.
 

Method Detail

connectionLost

void connectionLost(java.lang.String sessionId)
Called when the Target can no longer connect to the Client.

Parameters:
sessionId - a String value

reconnect

boolean reconnect(java.lang.String sessionId)
Called when a Client attempts to reconnect.

Parameters:
sessionId - a String value
Returns:
Return false if the Client should not be allowed to reconnect.

sessionClosed

void sessionClosed(java.lang.String sessionId)
sessionClosed called when the Client closes a session.

Parameters:
sessionId - a String value

setElementStateRequest

boolean setElementStateRequest(UISocketVariable uiSocketVariable,
                               java.lang.Object value)
Called when the Client tries to change the state of an element.

Parameters:
uiSocketVariable - UISocketVariable value
value - Object
Returns:
boolean Return false if the Target does not allow to change the element state.

invokeCommandRequest

java.lang.String invokeCommandRequest(UISocketCommand uiSocketCommand)
Called when a command has been invoked by a Urc, but has not yet been executed on the pertaining socket.

Parameters:
uiSocketCommand - UISocketCommand value
Returns:
uisocket:basicCommand - return values 'error', 'done', 'inProgress', 'ready' uisocket:timedCommand (Not implemented yet) - milliseconds i.e.countDown remaining, 'error', 'done', 'inProgress', 'ready' uisocket:voidCommand - no return values

notificationAcknowledged

void notificationAcknowledged(UISocketNotification uiSocketNotification)
Called when a notification has been acknowledged by a Urc

Parameters:
uiSocketNotification - UISocketNotification value


Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.