ITDMListener receives calls from TDM.
Inheritance:
Public Methods
-
virtual list<map<string, IProfile*>*> * getContexts()
-
virtual void targetContextsAdded(string targetId, list<map<string, IProfile*>*>*contexts)
-
virtual void targetContextsRemoved(string targetId, list<map<string, IProfile*>*>* contexts)
-
virtual 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.
-
virtual void targetDiscarded(string targetId)
- A TDM calls this function when a target has been disappeared from the network.
-
virtual IUCHStore* getLocalUCHStore()
- Get the Local UCH Store.
-
virtual string getDocument(string uri, string postData, map<string, IProfile*>*context)
- Get specified document through HTTP GET or POST.
-
virtual list<list<map<string,list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>* resPropsList)
- Get resource from the UCH specified by Resource Properties.
-
virtual map<string, string> * getUCHProps()
- Get a Map of UCH Properties.
-
virtual bool isImplemented(string functionName)
- Checks whether specified function is implemented or not.
-
virtual string getIpAddress()
- Get the IP address of the UCH.
-
virtual 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.
-
virtual 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().
-
virtual void addUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)
-
virtual void removeUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)
-
virtual list<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* resourceUri)
- Upload Resources on Resource Server.
-
virtual void removeTDM(ITDM* tdm)
- Removes the specified tdm from the UCH.
Documentation
ITDMListener receives calls from TDM. UCH implements this interface.
The Listener gets information from TDM regarding Discovery and Discarding of devices.
virtual list<map<string, IProfile*>*> * getContexts()
-
- Returns:
- a List<Map<String, IProfile>> of user and controller profile map
virtual void 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
virtual void 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
virtual 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.
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
virtual void targetDiscarded(string targetId)
-
A TDM calls this function when a target has been disappeared from the network.
- Parameters:
- targetId - a String value of targetId
virtual IUCHStore* getLocalUCHStore()
-
Get the Local UCH Store.
- Returns:
- an Object of IUCHStore
virtual string 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
virtual list<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
virtual map<string, string> * getUCHProps()
-
Get a Map of UCH Properties.
- Returns:
- an object of Map<String, String> or UCH Properties
virtual bool 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
virtual string getIpAddress()
-
Get the IP address of the UCH.
- Returns:
- return a string value
virtual 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.
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
virtual 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().
- Parameters:
- uri - a String value of URI
@throws UCHException
virtual void 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
virtual void 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
virtual list<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>>
virtual void removeTDM(ITDM* tdm)
-
Removes the specified tdm from the UCH.
- Parameters:
- tdm - an Object of ITDM
- Direct child classes:
- TDMListener
- Author:
- Parikshit Thakur & Team, Trace R&D Center
- Version:
- Revision: 1.0
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.