|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.client.ClientTunManager
public class ClientTunManager
ClientTunManager Acts as a proxy between the Clients and ClientTuns
Created on: March 1st, 2006
| Nested Class Summary | |
|---|---|
class |
ClientTunManager.ClientTunAssociation
Used for maintaining Map of Client and ClientTuns. |
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
logger
|
| Method Summary | |
|---|---|
void |
abortSession(java.lang.String sessionId)
abortSession is called when the target ends a session. |
IClientTun |
bindToClientTun(IClient client,
java.lang.String tunClassName,
java.util.Map<java.lang.String,java.lang.Object> parameterMap)
Used to Bind a Client to a particular ClientTun |
void |
closeSession(java.lang.String sessionId)
Close Session request from Client |
java.util.List<IClient> |
getClientsForClientTun(IClientTun cTun)
Utility method |
IClientTun |
getClientTun(java.lang.String tunClassName)
Returns the ClientTun instance for the tunClassName specified. |
java.util.List<IClientTun> |
getClientTunsForClient(IClient gc)
Utility method |
static ClientTunManager |
getInstance()
Get static instance of ClientTunManager. |
ClientSession |
getSessionById(java.lang.String sessionId)
Utility method |
UISocketMirror |
getSocketForSocketName(IClient gc,
java.lang.String targetId,
java.lang.String socketName)
Utility method |
java.util.List<UISocketMirror> |
getSocketsForTargetId(IClient gc,
java.lang.String targetId)
Utility method |
TargetMirror |
getTargetForTargetId(IClient gc,
java.lang.String targetId)
Utility method |
java.util.List<TargetMirror> |
getTargetsForClient(IClient gc)
Utility method |
IClientTun |
isTunExists(java.lang.String tunClassName)
Utility Method |
java.lang.String |
openSessionRequest(IClient client,
java.lang.String targetId,
java.lang.String socketName)
Session open request from Client. |
void |
targetDiscarded(TargetMirror targetMirror)
targetDiscarded is called when a Target unregisters itself from the network. |
void |
targetDiscovered(IClient client,
TargetMirror targetMirror)
targetDiscovered is called when a new Target is discovered on the network. |
void |
unbindClientTun(IClient client,
java.lang.String tunClassName)
Used to unbind a Client from a particular ClientTun |
void |
updateElementCsvList(java.lang.String sessionId,
java.lang.String elementIdCsvList,
java.lang.String valueCsvList)
updateElementCsvList is called when the Target sends accumulated list of updates |
void |
updateElementState(java.lang.String sessionId,
java.lang.String elementId,
java.lang.Object value)
updateElementState is called when the Target updates the value of a state element. |
| 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
| Method Detail |
|---|
public static ClientTunManager getInstance()
ClientTunManager
public void closeSession(java.lang.String sessionId)
throws UrcException
sessionId -
UrcExceptionpublic void abortSession(java.lang.String sessionId)
IClientTunListenerabortSession is called when the target ends a session.
abortSession in interface IClientTunListenersessionId - a String value
public void updateElementState(java.lang.String sessionId,
java.lang.String elementId,
java.lang.Object value)
IClientTunListenerupdateElementState is called when the Target updates the value of a state element.
updateElementState in interface IClientTunListenersessionId - a String valueelementId - a String valuevalue - an Object array containing propogated values
public void updateElementCsvList(java.lang.String sessionId,
java.lang.String elementIdCsvList,
java.lang.String valueCsvList)
IClientTunListenerupdateElementCsvList is called when the Target sends accumulated list of updates
updateElementCsvList in interface IClientTunListenersessionId - a String valueelementIdCsvList - a String valuevalueCsvList - a String valuepublic java.util.List<IClientTun> getClientTunsForClient(IClient gc)
gc - IClient
IClientTunpublic java.util.List<IClient> getClientsForClientTun(IClientTun cTun)
cTun - IClientTun
IClientpublic java.util.List<TargetMirror> getTargetsForClient(IClient gc)
gc - IClient
TargetMirror
public TargetMirror getTargetForTargetId(IClient gc,
java.lang.String targetId)
gc - IClienttargetId - String
TargetMirror
public java.util.List<UISocketMirror> getSocketsForTargetId(IClient gc,
java.lang.String targetId)
throws UrcException
gc - IClienttargetId - String
UISocketMirror
UrcException
public UISocketMirror getSocketForSocketName(IClient gc,
java.lang.String targetId,
java.lang.String socketName)
throws UrcException
gc - IClienttargetId - StringsocketName - String
UISocketMirror
UrcExceptionpublic ClientSession getSessionById(java.lang.String sessionId)
sessionId - String
ClientSession
public IClientTun getClientTun(java.lang.String tunClassName)
throws UrcException
tunClassName - String
IClientTun
UrcException
public IClientTun bindToClientTun(IClient client,
java.lang.String tunClassName,
java.util.Map<java.lang.String,java.lang.Object> parameterMap)
throws UrcException
client - IClienttunClassName - String
IClientTun
UrcException
public void unbindClientTun(IClient client,
java.lang.String tunClassName)
throws UrcException
client - IClienttunClassName - String
UrcException
public java.lang.String openSessionRequest(IClient client,
java.lang.String targetId,
java.lang.String socketName)
throws UrcException
client - IClienttargetId - StringsocketName - String
String
UrcException
public void targetDiscovered(IClient client,
TargetMirror targetMirror)
IClientTunListenertargetDiscovered is called when a new Target is discovered on the network.
targetDiscovered in interface IClientTunListenerclient - a IClient valuetargetMirror - a TargetMirror valuepublic void targetDiscarded(TargetMirror targetMirror)
IClientTunListenertargetDiscarded is called when a Target unregisters itself from the network.
targetDiscarded in interface IClientTunListenertargetMirror - a TargetMirror valuepublic IClientTun isTunExists(java.lang.String tunClassName)
tunClassName - String
IClientTun
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||