class TDMListener

Implements the methods of ITDMListener.

Inheritance:


Public Methods

[more] TDMListener(UCH* uch)
Constructor.
[more]string getDocument(string uri, string postData, map<string, IProfile*>* context)
Get specified document through HTTP GET or POST.
[more]string getIpAddress()
Get the IP address of the UCH.
[more]IUCHStore* getLocalUCHStore()
Get the Local UCH Store.
[more]list<list<map<string, list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>*resPropsList)
Get resource from the UCH specified by Resource Properties.
[more]map<string, string> * getUCHProps()
Get a Map of UCH Properties.
[more]bool isImplemented(string functionName)
Checks whether specified function is implemented or not.
[more]string startUriService(ITDM* tdm, string scheme, int port, bool portIsFlexible, string basePath, bool 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.
[more]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().
[more]list<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* resourceUri)
Upload Resources on Resource Server.
[more]string targetDiscovered(ITDM* tdm, map<string, void*>*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.
[more]void targetDiscarded(string targetId)
A TDM calls this function when a target has been disappeared from the network.
[more]void removeTDM(ITDM* tdm)
Removes the specified tdm from the UCH.
[more]void addUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)
[more]void removeUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)
[more]list<map<string, IProfile*>*> * getContexts()
[more]void targetContextsAdded(string targetId, list<map<string, IProfile*>*>*contexts)
[more]void targetContextsRemoved(string targetId, list<map<string, IProfile*>*>*contexts)
[more]list<map<string, IProfile*>*> * getTargetContexts(string targetId)
[more]void instantiateTDMs()
Instantiate Local TDMs
[more]void contextsOpened(list<map<string, IProfile*>*>* contexts)
Call the same method in all TDMs.
[more]void contextsClosed(list<map<string, IProfile*>*>* contexts)
Call the same method in all TDMs.


Inherited from ITDMListener:


Documentation

Implements the methods of ITDMListener. Also maintain information about TDMs.

o TDMListener(UCH* uch)
Constructor. Provide the reference of UCH to the local variable.

Parameters:
uch - an Object of UCH

ostring getDocument(string uri, string postData, map<string, IProfile*>* context)
Get specified document through HTTP GET or POST.

Parameters:
uri - a String value of URI
postData - a String value of postData
Returns:
a String value of requested Document @throws UCHException

ostring getIpAddress()
Get the IP address of the UCH.

Returns:
return a string value

oIUCHStore* getLocalUCHStore()
Get the Local UCH Store.

Returns:
an Object of IUCHStore

olist<list<map<string, list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>*resPropsList)
Get resource from the UCH specified by Resource Properties.

Parameters:
sessionId - a String value of sessionId
resProps - a list<map<string, list<string>*>*> of Resource Properties
Returns:
a list<list<map<string,list<string>*>*>*> value

omap<string, string> * getUCHProps()
Get a Map of UCH Properties.

Returns:
an object of Map<String, String> or UCH Properties

obool isImplemented(string functionName)
Checks whether specified function is implemented or not.

Parameters:
functionName - a String value of function Name
Returns:
whether the function is implemented or not

ostring startUriService(ITDM* tdm, string scheme, int port, bool portIsFlexible, string basePath, bool 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. If successful, then the UCH will forward all messages that have this URI as its base, to controllerRequest().

Parameters:
tdm - an Object of ITDM
scheme - a String value of scheme
port - an int value of port number
portIsFlexible - a boolean value
basePath - a String value of basePath
basePathIsFlexible - a boolean value
Returns:
a String value of URI @throws UCHException

ovoid 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().

Parameters:
uri - a String value of URI @throws UCHException

olist<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* resourceUri)
Upload Resources on Resource Server.

Parameters:
props - an Object of List<Map<String, List<String>>>
resourceUri - an Object of List<String>
Returns:
an Object of List<Map<String, String>>

ostring targetDiscovered(ITDM* tdm, map<string, void*>*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. If the corresponding TA is already installed, the new target should be registered with the already installed TA.

Parameters:
tdm - an Object of ITDM
targetProps - a Map<String, Object> of discovered Target Properties
taProps - a Map<String, String> of TA(Target Adapter)'s Properties
Returns:
a String The UCH shall return the targetId (String) that it has assigned the newly discovered target. This may be identical to the property 'targetInstance' in targetProps

ovoid targetDiscarded(string targetId)
A TDM calls this function when a target has been disappeared from the network.

Parameters:
targetId - a String value of targetId

ovoid removeTDM(ITDM* tdm)
Removes the specified tdm from the UCH.

Parameters:
tdm - an Object of ITDM

ovoid addUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)

Parameters:
uri - a String value of URI
contexts - a List<Map<String, IProfile>> of user and controller profile map @throws UCHException

ovoid removeUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)

Parameters:
uri - a String value of URI
contexts - a List<Map<String, IProfile>> of user and controller profile map @throws UCHException

olist<map<string, IProfile*>*> * getContexts()

Returns:
a List<Map<String, IProfile>> of user and controller profile map

ovoid targetContextsAdded(string targetId, list<map<string, IProfile*>*>*contexts)

Parameters:
targetId - a String value of targetId
contexts - a List<Map<String, IProfile>> of user and controller profile map

ovoid targetContextsRemoved(string targetId, list<map<string, IProfile*>*>*contexts)

Parameters:
targetId - a String value of targetId
contexts - a List<Map<String, IProfile>> of user and controller profile map

olist<map<string, IProfile*>*> * getTargetContexts(string targetId)

Parameters:
targetId - a String value of targetId
contexts - a List<Map<String, IProfile>> of user and controller profile map

ovoid instantiateTDMs()
Instantiate Local TDMs

ovoid contextsOpened(list<map<string, IProfile*>*>* contexts)
Call the same method in all TDMs.

Parameters:
contexts - an object of List<Map<String, IProfile>>

ovoid contextsClosed(list<map<string, IProfile*>*>* contexts)
Call the same method in all TDMs.

Parameters:
contexts - an object of List<Map<String, IProfile>>


This class has no child classes.
Author:
Parikshit Thakur & Team, Trace R&D Center
Version:
Revision: 1.1

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.