IUIPMListener receives calls from UIPM.
Inheritance:
Public Methods
-
virtual list<map<string, IProfile*>*> * getContexts()
-
virtual list<string> * getAvailableTargetIds(map<string, IProfile*>*context)
- Get the identifiers of the available targets.
-
virtual string getTargetName(string targetId)
- Get the name of a target for the specified targetId.
-
virtual map<string, void *> * getTargetProps(string targetId)
- Get the target Properties for the specified targetId.
-
virtual list<map<string, IProfile*>*> * getTargetContexts(string targetId)
-
virtual list<string> * getSocketNames(string targetName)
- Returns List of socket Names for the specified Target Name.
-
virtual string getSocketDescriptionUri(string socketName)
- Get the URI for retrieving the Socket Description of the specified targetName and socketName.
-
virtual list<list<map<string, list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>*resPropsList)
- Returns the matching Resource with the Resource Properties specified by 'resProps'.
-
virtual map<string, string> * openSessionRequest(IUIPM* uipm, string targetId, string socketName, map<string, string>* clientProps, map<string, IProfile*>* context)
- Request for opening a session with the specified target and socket.
-
virtual void closeSession(string sessionId)
- Closes a Session for the specified sessionId.
-
virtual map<string, string> * getValues(string sessionId, list<string>* paths, list<bool>* includeSets)
- Returns a value/state of the specified socket elements.
-
virtual map<string, list<string>*> * setValuesRequest(string sessionId, list<string>* paths, list<string>* operations, list<string>* reqValues)
- The UIPM requests to change the target state in one or more operations on specified socket elements.
-
virtual string getSocketDescriptionUri(string targetName, string socketName)
- Returns the URI for the Socket Description for specified Target Name.
-
virtual string getTargetDescriptionUri(string targetName)
- Get the URI for retrieving the Target Description for the specified targetName.
-
virtual string getSocketFriendlyName(string targetId, string socketName)
- Get Friendly Name of the Socket for the specified socketName and targetId.
-
virtual string getSocketName(string sessionId)
- Get the SocketName for the specified sessionId.
-
virtual bool isImplemented(string functionName)
- Checks whether specified function is implemented or not.
-
virtual bool addCompatibleUI(string targetId, list<string>* socketNames, string protocolShortName, list<string>* uris, map<string, list<string>*>* protocolInfo)
- Tell the UCH to add a user interface item (advertised by the UIPM) to its UIList which is exposed to controllers on request.
-
virtual string getDocument(string uri, string postData, map<string, IProfile*>* context)
- Get specified document through HTTP GET or POST.
-
virtual void removeCompatibleUIs(list<string>*uris)
- Tells the UCH to remove user interface URIs from the UIList that were previously added by addCompatibleUI().
-
virtual string startUriService(IUIPM* uipm, string scheme, int port, bool portIsFlexible, string basePath, bool basePathIsFlexible, list<map<string, IProfile*>*>* contexts)
- The UIPM 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 UIPM 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 string getIpAddress()
- Get the IP address of the UCH.
-
virtual bool isElementAvailable(string targetId, string socketName, string elementId)
- Checks whether a given socketElement is available in the specified Socket of specified Target or not.
-
virtual IUCHStore* getLocalUCHStore()
- Get the Local UCH Store.
-
virtual map<string, string> * getLocators(string targetName)
- Get a map of locatores containing locatorId and locatorType for a specified target Name.
-
virtual void invokeLocator(string targetId, string locatorId)
- Invoke the specified locator function of the specified targetId.
-
virtual list<list<string>*> * getIndices(string sessionId, list<string>*eltIds, list<string>*indexNos)
- Get Indices available on specific level of dimension of dimensional Element.
-
virtual map<string, string> * getUCHProps()
- Get a Map of UCH Properties.
-
virtual list<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* resourceUri)
- Upload Resources on Resource Server.
-
virtual bool getDependencyValue(string sessionId, string path, string dependency)
- Get the actual value of a dependency.
-
virtual string getElementRef(string sessionId, string path)
- Get the elementRef URI that points to a particular socket element/set.
-
virtual bool isSessionSuspendable(string sessionId)
- Check whether the given session can be suspended.
-
virtual long suspendSession(string sessionId, long suggestedTimeout)
- The target is requested to suspend the given session with a suggested timeout value.
-
virtual bool isSessionResumable(string sessionId)
- Checks whether the given session can be resumed.
-
virtual bool resumeSession(string sessionId)
- The target is requested to resume the given session.
-
virtual void removeUIPM(IUIPM* uipm)
- Removes the specified uipm from the UCH.
Public Members
-
optional methods/////////////////////////////
Documentation
IUIPMListener receives calls from UIPM. UCH implements this interface.
virtual list<map<string, IProfile*>*> * getContexts()
-
- Returns:
- a List<Map<String, IProfile>> of user and controller profile map
virtual list<string> * getAvailableTargetIds(map<string, IProfile*>*context)
-
Get the identifiers of the available targets.
- Returns:
- List<String>
virtual string getTargetName(string targetId)
-
Get the name of a target for the specified targetId.
- Parameters:
- targetId - a String value of targetId
- Returns:
- a String
virtual map<string, void *> * getTargetProps(string targetId)
-
Get the target Properties for the specified targetId.
- Parameters:
- targetId - a String value of targetId
- Returns:
- Map<String, Object>
virtual list<map<string, IProfile*>*> * getTargetContexts(string targetId)
-
- Parameters:
- targetId - a String value of targetId
- Returns:
- a List<Map<String, IProfile>> of user and controller profile map
virtual list<string> * getSocketNames(string targetName)
-
Returns List of socket Names for the specified Target Name.
- Parameters:
- targetName - a String value of targetName
- Returns:
- List<String>
virtual string getSocketDescriptionUri(string socketName)
-
Get the URI for retrieving the Socket Description of the specified targetName and socketName.
- Parameters:
- targetName - a String value of targetName
socketName - a String value of socketName
- Returns:
- a String representing Socket Description URI
@throws TAFatalException
virtual list<list<map<string, list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>*resPropsList)
-
Returns the matching Resource with the Resource Properties specified by 'resProps'.
- Parameters:
- sessionId - a String value of SessionId
resProps - list<map<string, list<string>*>*> of Resource Properties
- Returns:
- an list<list<map<string,list<string>*>*>*> representing Resources
virtual map<string, string> * openSessionRequest(IUIPM* uipm, string targetId, string socketName, map<string, string>* clientProps, map<string, IProfile*>* context)
-
Request for opening a session with the specified target and socket.
- Parameters:
- targetId - a String value of targetId
socketName - a String value of socketName
clientProps - Map<String,String>
- Returns:
- Map<String,String>
virtual void closeSession(string sessionId)
-
Closes a Session for the specified sessionId.
- Parameters:
- sessionId - a String value of sessionId
virtual map<string, string> * getValues(string sessionId, list<string>* paths, list<bool>* includeSets)
-
Returns a value/state of the specified socket elements.
- Parameters:
- sessionId - a String value of sessionId
paths - a List<String> of elementPath
includeSets - a List<Boolean> of includeSets
- Returns:
- a Map<String, String> of values
@throws TAFatalException
virtual map<string, list<string>*> * setValuesRequest(string sessionId, list<string>* paths, list<string>* operations, list<string>* reqValues)
-
The UIPM requests to change the target state in one or more operations on specified socket elements.
The requested operations are coded as cross-indexed arrays of paths, operation identifiers and requested new values.
- Parameters:
- sessionId - a String value of sessionId
paths - List<String> a List of elementPaths
operations - List<String> a List of operations (allowed operations are "S", "A", "R", "I" or "K" )
reqValues - List<String> a List of Requested Values
- Returns:
- Map<String, List<String>> a Map of set Values
virtual string getSocketDescriptionUri(string targetName, string socketName)
-
Returns the URI for the Socket Description for specified Target Name.
- Parameters:
- targetName - a String value of targetName
socketName - a String value of socketName
- Returns:
- a Socket Description URI String
virtual string getTargetDescriptionUri(string targetName)
-
Get the URI for retrieving the Target Description for the specified targetName.
- Parameters:
- targetName - a String value of targetName
- Returns:
- a Target Description URI String
virtual string getSocketFriendlyName(string targetId, string socketName)
-
Get Friendly Name of the Socket for the specified socketName and targetId.
- Parameters:
- targetId - a String value of targetId
socketName - a String value of socketName
- Returns:
- a String value of Socket Friendly Name
virtual string getSocketName(string sessionId)
-
Get the SocketName for the specified sessionId.
- Parameters:
- sessionId - a String value of sessionId
- Returns:
- a String of SocketName
@throws TAFatalException
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 bool addCompatibleUI(string targetId, list<string>* socketNames, string protocolShortName, list<string>* uris, map<string, list<string>*>* protocolInfo)
-
Tell the UCH to add a user interface item (advertised by the UIPM) to its UIList which is exposed to controllers on request.
- Parameters:
- targetId - a String value of targetId
socketNames - a List<String> value of socketNames
protocolShortName - a String value of protocolShortName
uris - a List<String> value of uris
protocolInfo - a Map<String, String> of protocol Information
- Returns:
- whether CompatibleUI is added or not.
@throws UCHException
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 void removeCompatibleUIs(list<string>*uris)
-
Tells the UCH to remove user interface URIs from the UIList that were previously added by addCompatibleUI().
- Parameters:
- uris - a List<String> of URIs
@throws UCHException
virtual string startUriService(IUIPM* uipm, string scheme, int port, bool portIsFlexible, string basePath, bool basePathIsFlexible, list<map<string, IProfile*>*>* contexts)
-
The UIPM requests the UCH to start servicing a URI which is made up of a given scheme, port, and base path.
If successful, the UCH will forward all messages that have this URI as its base, to controllerRequest().
- Parameters:
- uipm - an IUIPM object
scheme - a String value of schema
port - a port no
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 UIPM 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 an Object of org.myurc.uch.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 an Object of org.myurc.uch.UCHException
virtual string getIpAddress()
-
Get the IP address of the UCH.
- Returns:
- return a string value
virtual bool isElementAvailable(string targetId, string socketName, string elementId)
-
Checks whether a given socketElement is available in the specified Socket of specified Target or not.
- Parameters:
- targetId - a String value of targetId
socketName - a String value of socketName
eltId - a String value of eltId
- Returns:
- boolean whether specified socketElement is exists or not
@throws TAFatalException
virtual IUCHStore* getLocalUCHStore()
-
Get the Local UCH Store.
- Returns:
- an Object of IUCHStore
virtual map<string, string> * getLocators(string targetName)
-
Get a map of locatores containing locatorId and locatorType for a specified target Name.
- Parameters:
- targetName - a String value of targetName
- Returns:
- a Map<string, String> of LocatorID V/S Locator Type
virtual void invokeLocator(string targetId, string locatorId)
-
Invoke the specified locator function of the specified targetId.
- Parameters:
- targetId - a String value of TargetId
locatorId - a String value of LocatorId
virtual list<list<string>*> * getIndices(string sessionId, list<string>*eltIds, list<string>*indexNos)
-
Get Indices available on specific level of dimension of dimensional Element.
- Parameters:
- sessionId - a String value of sessionId
eltIds - a List<String> of elementIds
indexNos - a List<Integer> of indexNo
- Returns:
- a List<Set<Integer> of indices
virtual map<string, string> * getUCHProps()
-
Get a Map of UCH Properties.
- Returns:
- an object of Map<String, String> or UCH Properties
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>>
optional methods/////////////////////////////
- optional methods/
virtual bool getDependencyValue(string sessionId, string path, string dependency)
-
Get the actual value of a dependency.
If IUIPMListener does not support this functionality then UCHNotImplementedException is thrown by this function.
- Parameters:
- sessionId - a String value of sessionId
path - a String value of path
dependency - a String value of dependency
- Returns:
- whether the dependency is true or false.
@throws UCHNotImplementedException
virtual string getElementRef(string sessionId, string path)
-
Get the elementRef URI that points to a particular socket element/set.
If IUIPMListener does not support this functionality then UCHNotImplementedException is thrown by this function.
- Parameters:
- sessionId - a String value of sessionId
path - a String value of path
- Returns:
- a String value of elementRef
@throws UCHNotImplementedException
virtual bool isSessionSuspendable(string sessionId)
-
Check whether the given session can be suspended.
If IUIPMListener does not support this functionality then UCHNotImplementedException is thrown by this function.
- Parameters:
- sessionId - a String value of sessionId
- Returns:
- whether the given session can be suspended or not
@throws UCHNotImplementedException
virtual long suspendSession(string sessionId, long suggestedTimeout)
-
The target is requested to suspend the given session with a suggested timeout value.
If IUIPMListener does not support this functionality then UCHNotImplementedException is thrown by this function.
- Parameters:
- sessionId - a String value of sessionId
suggestedTimeout - a long value
- Returns:
- a long value of timeOut
@throws UCHNotImplementedException
virtual bool isSessionResumable(string sessionId)
-
Checks whether the given session can be resumed.
If IUIPMListener does not support this functionality then UCHNotImplementedException is thrown by this function.
- Parameters:
- sessionId - a String value of sessionId
- Returns:
- whether the given session can be resumed or not
@throws UCHNotImplementedException
virtual bool resumeSession(string sessionId)
-
The target is requested to resume the given session.
If IUIPMListener does not support this functionality then UCHNotImplementedException is thrown by this function.
- Parameters:
- sessionId - a String value of sessionId
- Returns:
- whether request for resume session is granted or not.
@throws UCHNotImplementedException
virtual void removeUIPM(IUIPM* uipm)
-
Removes the specified uipm from the UCH.
- Parameters:
- uipm - an Object of IUIPM
- Direct child classes:
- UIPMListener
- 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++.