|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.uch.TDMListener
public class TDMListener
Implements the methods of ITDMListener. Also maintain information about TDMs.
| Method Summary | |
|---|---|
void |
addUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
Called when the TDM wants to add one or more contexts to a URI service. |
List<Map<String,IProfile>> |
getContexts()
Get currently open contexts. |
String |
getDocument(String uri,
String postData,
Map<String,IProfile> context)
Get specified document through HTTP GET or POST. |
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 |
removeTDM(ITDM tdm)
Removes the specified tdm from the UCH. |
void |
removeUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
Called when the TDM wants to close one or more contexts to a URI service. |
String |
startUriService(ITDM tdm,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible,
List<Map<String,IProfile>> contexts)
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 |
targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
Called when one or more contexts got added to an existing target. |
void |
targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
Called when one or more contexts got removed to an existing target. |
void |
targetDiscarded(String targetId)
A TDM calls this function when a target has been disappeared from the network. |
String |
targetDiscovered(ITDM tdm,
Map<String,Object> targetProps,
Map<String,String> taProps,
List<Map<String,IProfile>> contexts)
This function is called by a TDM when it has discovered a new target and loads appropriate TA for the new target. |
List<Map<String,String>> |
uploadResources(List<Map<String,List<String>>> props,
List<String> resourceUri)
Upload Resources on Resource Server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getDocument(String uri,
String postData,
Map<String,IProfile> context)
throws UCHException
ITDMListener
getDocument in interface ITDMListeneruri - a String value of URIpostData - a String value of postDatacontext - a Map<String, IProfile> of user and controller profile
UCHExceptionITDMListener.getDocument(String, String, Map)public String getIpAddress()
ITDMListener
getIpAddress in interface ITDMListenerITDMListener.getIpAddress()public IUCHStore getLocalUCHStore()
ITDMListener
getLocalUCHStore in interface ITDMListenerITDMListener.getLocalUCHStore()
public List<List<Map<String,List<String>>>> getResources(String sessionId,
List<Map<String,List<String>>> resProps)
ITDMListener
getResources in interface ITDMListenersessionId - a String value of sessionIdresProps - a Map<String, List<String>> of Resource Properties
ITDMListener.getResources(String, List)public Map<String,String> getUCHProps()
ITDMListener
getUCHProps in interface ITDMListenerITDMListener.getUCHProps()public boolean isImplemented(String functionName)
ITDMListener
isImplemented in interface ITDMListenerfunctionName - a String value of function Name
ITDMListener.isImplemented(java.lang.String)
public String startUriService(ITDM tdm,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible,
List<Map<String,IProfile>> contexts)
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 valuecontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionITDMListener.startUriService(ITDM, String, int, boolean, String, boolean, List)
public void stopUriService(String uri)
throws UCHException
ITDMListener
stopUriService in interface ITDMListeneruri - a String value of URI
UCHException - an Object of UCHExceptionITDMListener.stopUriService(String)
public List<Map<String,String>> uploadResources(List<Map<String,List<String>>> props,
List<String> resourceUri)
ITDMListener
uploadResources in interface ITDMListenerprops - an Object of List<Map<String, List<String>>>resourceUri - an Object of List<String>
ITDMListener.uploadResources(List, List)
public String targetDiscovered(ITDM tdm,
Map<String,Object> targetProps,
Map<String,String> taProps,
List<Map<String,IProfile>> contexts)
ITDMListener
targetDiscovered in interface ITDMListenertdm - an Object of ITDMtargetProps - a Map<String, Object> of discovered Target PropertiestaProps - a Map<String, String> of TA(Target Adapter)'s Propertiescontexts - a List<Map<String, IProfile>> of user and controller profile map
ITDMListener.targetDiscovered(ITDM, Map, Map, List)public void targetDiscarded(String targetId)
ITDMListener
targetDiscarded in interface ITDMListenertargetId - a String value of targetIdITDMListener.targetDiscarded(String)public void removeTDM(ITDM tdm)
ITDMListener
removeTDM in interface ITDMListenertdm - an Object of ITDMITDMListener.removeTDM(ITDM)
public void addUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
throws UCHException
ITDMListener
addUriServiceContexts in interface ITDMListeneruri - a String value of URIcontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionITDMListener.addUriServiceContexts(String, List)public List<Map<String,IProfile>> getContexts()
ITDMListener
getContexts in interface ITDMListenerITDMListener.getContexts()
public void removeUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
throws UCHException
ITDMListener
removeUriServiceContexts in interface ITDMListeneruri - a String value of URIcontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionITDMListener.removeUriServiceContexts(String, List)
public void targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
ITDMListener
targetContextsAdded in interface ITDMListenertargetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile mapITDMListener.targetContextsAdded(String, List)
public void targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
ITDMListener
targetContextsRemoved in interface ITDMListenertargetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile mapITDMListener.targetContextsRemoved(String, List)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||