|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.uch.TargetListener
public class TargetListener
It implements ITAListener and ITDMListener and delegates the calls from UCH to TA and vice-versa.
| Method Summary | |
|---|---|
void |
abortSession(String sessionId)
The TA has terminated a session, when the TA will have no knowledge about that session. |
String |
getDocument(String uri,
String postData)
Get specified document through HTTP GET or POST. |
static TargetListener |
getInstance(UCH uipmListener,
String tdms)
Gets the instance of targetListener. |
String |
getIpAddress()
Get the IP address of the UCH. |
IUCHStore |
getLocalUCHStore()
Get the Local UCH Store. |
List<List<Map<String,List<String>>>> |
getResources(String sessionId,
List<Map<String,List<String>>> resProps)
Get resource from the UCH specified by Resource Properties. |
Map<String,String> |
getUCHProps()
Get a Map of UCH Properties. |
boolean |
isImplemented(String functionName)
Checks whether specified function is implemented or not. |
void |
sessionForwardRequest(String sessionId,
Map<String,String> forwardInfo)
The TA requests the client to open a session with different socket. |
boolean |
setValidation(ITA ta,
boolean activate)
Check whether to do validation for the TA or not. |
String |
startUriService(ITA ta,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible)
The ITA requests the UCH to start servicing a URI which is made up of a given scheme, port, and base path. |
String |
startUriService(ITDM tdm,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible)
The ITDM requests the UCH to start servicing a URI which is made up of a given scheme, port, and base path. |
void |
stopUriService(String uri)
The ITDM requests the UCH to stop servicing a URI that was requested to be serviced in a previous call to startUriService(). |
void |
targetDiscarded(String targetId)
A TDM calls this function when a target has been disappeared from the network. |
String |
targetDiscovered(Map<String,Object> targetProps,
Map<String,String> taProps)
This function is called by a TDM when it has discovered a new target and loads appropriate TA for the new target. |
void |
updateDynRes(List<String> sessionIds,
List<String> eltIds)
Signals that the set of resources pertaining to a specific socket element has been changed. |
void |
updateValues(List<String> sessionIds,
List<String> paths,
List<String> operations,
List<String> values,
List<Boolean> hasDynRes)
The TA signals a change in the target’s status, affecting one or more sessions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TargetListener getInstance(UCH uipmListener,
String tdms)
uipmListener - an Object of UCH
public void updateValues(List<String> sessionIds,
List<String> paths,
List<String> operations,
List<String> values,
List<Boolean> hasDynRes)
ITAListener
updateValues in interface ITAListenersessionIds - a List<String> of sessionIdspaths - a List<String> of pathsoperations - a List<String> of operationsvalues - a List<String> of valueshasDynRes - a List<Boolean> of hasDynResITAListener.updateValues(java.util.List, java.util.List, java.util.List, java.util.List, java.util.List)public void abortSession(String sessionId)
ITAListener
abortSession in interface ITAListenersessionId - a String value of sessionIdITAListener.abortSession(java.lang.String)
public void sessionForwardRequest(String sessionId,
Map<String,String> forwardInfo)
ITAListener
sessionForwardRequest in interface ITAListenersessionId - a String value of sessionIdforwardInfo - Map<String, String>ITAListener.sessionForwardRequest(java.lang.String, java.util.Map)
public boolean setValidation(ITA ta,
boolean activate)
ITAListener
setValidation in interface ITAListenerta - an Object of ITAactivate - a boolean value of activate
ITAListener.setValidation(ITA, boolean)
public void updateDynRes(List<String> sessionIds,
List<String> eltIds)
ITAListener
updateDynRes in interface ITAListenersessionIds - a List<String> of sessionIdseltIds - a List<String> of elementIdsITAListener.updateDynRes(List, List)
public String startUriService(ITA ta,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible)
throws UCHException
ITAListener
startUriService in interface ITAListenerta - an ITA objectscheme - a String value of schemaport - a port noportIsFlexible - a boolean valuebasePath - a String value of basePathbasePathIsFlexible - a boolean value
UCHExceptionITAListener.startUriService(ITA, String, int, boolean, String, boolean)
public void stopUriService(String uri)
throws UCHException
ITDMListener
stopUriService in interface ITAListenerstopUriService in interface ITDMListeneruri - a String value of URI
UCHExceptionITAListener.stopUriService(String)public String getIpAddress()
ITDMListener
getIpAddress in interface ITAListenergetIpAddress in interface ITDMListenerITAListener.getIpAddress()public void targetDiscarded(String targetId)
ITDMListener
targetDiscarded in interface ITDMListenertargetId - a String value of targetIdITDMListener.targetDiscarded(java.lang.String)
public String targetDiscovered(Map<String,Object> targetProps,
Map<String,String> taProps)
ITDMListener
targetDiscovered in interface ITDMListenertargetProps - a Map<String, Object> of discovered Target PropertiestaProps - a Map<String, String> of TA(Target Adapter)'s Properties
ITDMListener.targetDiscovered(Map, Map)public IUCHStore getLocalUCHStore()
ITDMListener
getLocalUCHStore in interface ITAListenergetLocalUCHStore in interface ITDMListenerITDMListener.getLocalUCHStore()public Map<String,String> getUCHProps()
ITDMListener
getUCHProps in interface ITAListenergetUCHProps in interface ITDMListenerITDMListener.getUCHProps()
public String getDocument(String uri,
String postData)
throws UCHException
ITDMListener
getDocument in interface ITAListenergetDocument in interface ITDMListeneruri - a String value of URIpostData - a String value of postData
UCHExceptionITDMListener.getDocument(String, String)
public List<List<Map<String,List<String>>>> getResources(String sessionId,
List<Map<String,List<String>>> resProps)
ITDMListener
getResources in interface ITAListenergetResources in interface ITDMListenersessionId - a String value of sessionIdresProps - a Map<String, List<String>> of Resource Properties
ITDMListener.getResources(String, List)public boolean isImplemented(String functionName)
ITDMListener
isImplemented in interface ITAListenerisImplemented in interface ITDMListenerfunctionName - a String value of function Name
ITDMListener.isImplemented(String)
public String startUriService(ITDM tdm,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible)
throws UCHException
ITDMListener
startUriService in interface ITDMListenertdm - an Object of ITDMscheme - a String value of schemeport - an int value of port numberportIsFlexible - a boolean valuebasePath - a String value of basePathbasePathIsFlexible - a boolean value
UCHExceptionITDMListener.startUriService(ITDM, String, int, boolean, String, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||