Implements the methods of UIPMListener.
Inheritance:
Public Methods
-
UIPMListener(UCH* uch)
- Constructor.
-
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.
-
void closeSession(string sessionId)
- Closes a Session with the Target.
-
list<string> * getAvailableTargetIds(map<string, IProfile*>*context)
- Get the identifiers of the available targets.
-
string getDocument(string uri, string postData, map<string, IProfile*>* context)
- Get description document through HTTP GET or POST.
-
list<list<string>*> * getIndices(string sessionId, list<string>*eltIds, list<string>*indexNos)
- This function will return map containing pairs of element identifiers and it's indexed values.
-
string getIpAddress()
- Get the IP address of the UCH.
-
IUCHStore* getLocalUCHStore()
- Get the Local UCH Store.
-
map<string, string> * getLocators(string targetName)
- Get a map with Locator ids and locator types for a specific target type.
-
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'.
-
string getSocketDescriptionUri(string targetName, string socketName)
- Returns the URI for the Socket Description for specified Target Name.
-
string getSocketFriendlyName(string targetId, string socketName)
- Returns Socket Friendly Name for the specified Target Name.
-
string getSocketName(string sessionId)
- Returns the Socket Name for the specified sessionId.
-
list<string> * getSocketNames(string targetName)
- Returns List of socket Names for the specified Target Name.
-
string getTargetDescriptionUri(string targetName)
- Get the URI for the Target Description for the specified targetName.
-
string getTargetName(string targetId)
- Get the name of a target for the specified targetId.
-
map<string, void *> * getTargetProps(string targetId)
- Get the target Properties for the specified targetId.
-
map<string, string> * getUCHProps()
- Get UCH Propeties
-
map<string, string> * getValues(string sessionId, list<string>* paths, list<bool>* includeSets)
- The UIPM asks for the values/states of specified socket elements.
-
void invokeLocator(string targetId, string locatorId)
- Invoke the specified locator function on the specified target.
-
bool isElementAvailable(string targetId, string socketName, string elementId)
- Checks whether a specified socket Element is available or not.
-
bool isImplemented(string functionName)
- Checks whether the function is implemented by IUIPMListener or not.
-
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.
-
void removeCompatibleUIs(list<string>*uris)
- Tells the UCH to remove user interface URIs from the UIList that were previously added by one call to addCompatibleUI().
-
void removeUIPM(IUIPM* uipm)
- Removes the specified uipm from the UCH.
-
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.
-
list<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* resourceUri)
- Upload Resources on Resource Server.
-
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.
-
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().
-
void addUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)
-
void removeUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)
-
list<map<string, IProfile*>*> * getContexts()
-
list<map<string, IProfile*>*> * getTargetContexts(string targetId)
-
void abortSession(string sessionId)
- Cleanup relative information about the session specified by 'sessionId'.
-
void updateValues(list<string>* sessionIds, list<string>* paths, list<string>* operations, list<string>* values, list<bool>* hasDynRes)
- Informs the UIPM that the values have been updated for particular Session.
-
void instantiateUIPMs(string targetId, string targetName, list<map<string, IProfile*>*>* contexts)
- Instantiate UIPM for the matching target Properties.
-
void targetDiscovered(string targetId, list<map<string, IProfile*>*>* contexts)
- Called when any new target is Discovered in the network and informs to relative IUIPM.
-
void targetDiscarded(string targetId)
- Called when any existing target is Discarded from the network.
-
void contextsOpened(list<map<string, IProfile*>*>* contexts)
- Call the same method on all UIPMs.
-
void contextsClosed(list<map<string, IProfile*>*>* contexts)
- Call the same method on all UIPMs.
-
void targetContextsAdded(string targetId, list<map<string, IProfile*>*>* contexts)
-
void targetContextsRemoved(string targetId, list<map<string, IProfile*>*>*contexts)
-
bool getDependencyValue(string sessionId, string path, string dependency)
- Returns the dependency value
-
string getElementRef(string sessionId, string path)
- Returns element ref
-
bool isSessionSuspendable(string sessionId)
- Checks whether session is suspendable or not
-
long suspendSession(string sessionId, long suggestedTimeout)
- Suspend the session
-
bool isSessionResumable(string sessionId)
- Checks whether session is resumable or not
-
bool resumeSession(string sessionId)
- Resume the session
Public Members
-
optional methods/////////////////////////////
Documentation
Implements the methods of UIPMListener.
Also maintain information about TDMs.
UIPMListener(UCH* uch)
-
Constructor.
Provide the reference of UCH to local variable.
- Parameters:
- uch - an Object of UCH
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
void closeSession(string sessionId)
-
Closes a Session with the Target.
- Parameters:
- sessionId - a string value of sessionId
list<string> * getAvailableTargetIds(map<string, IProfile*>*context)
-
Get the identifiers of the available targets.
- Returns:
- List<string>
string getDocument(string uri, string postData, map<string, IProfile*>* context)
-
Get description document through HTTP GET or POST.
- Parameters:
- uri - a string value of URI
postData - a string value of postData
- Returns:
- string value of Document
@throws UCHException
list<list<string>*> * getIndices(string sessionId, list<string>*eltIds, list<string>*indexNos)
-
This function will return map containing pairs of element identifiers and it's indexed values.
- Parameters:
- sessionId - string Value of session Id
eltIds - list of elementids
indexNos - list of indices
- Returns:
- List<List<string>*> contain element identifiers and indexed values
string getIpAddress()
-
Get the IP address of the UCH.
- Returns:
- a string value of IP Address
IUCHStore* getLocalUCHStore()
-
Get the Local UCH Store.
- Returns:
- an Object of UCHStore
map<string, string> * getLocators(string targetName)
-
Get a map with Locator ids and locator types for a specific target type.
- Parameters:
- targetName - a string value of targetName
- Returns:
- a map<string, string> of LocatorID V/S Locator Type
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
resPropsList - list<map<string, list<string>*>*> of Resource Properties
- Returns:
- an list<list<map<string, list<string>*>*>*> representing Resources. map inside the List has value void* as it may contain single string value or List of string Values
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
string getSocketFriendlyName(string targetId, string socketName)
-
Returns Socket Friendly Name for the specified Target Name.
- Parameters:
- targetName - a string value of targetName
socketName - a string value of socketName
- Returns:
- string Value of socket friendly name
string getSocketName(string sessionId)
-
Returns the Socket Name for the specified sessionId.
- Parameters:
- sessionId - a string value of sessionId
- Returns:
- string Value of socket name
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> Object
string getTargetDescriptionUri(string targetName)
-
Get the URI for the Target Description for the specified targetName.
- Parameters:
- targetName - a string value of targetName
- Returns:
- a Target Description URI string
string getTargetName(string targetId)
-
Get the name of a target for the specified targetId.
- Parameters:
- targetId - a string value of targetId
- Returns:
- a string Value of target name
map<string, void *> * getTargetProps(string targetId)
-
Get the target Properties for the specified targetId.
- Parameters:
- targetId - a string value of targetId
- Returns:
- map<string, void*>. map has a value void* as it can contain List or map for some key
map<string, string> * getUCHProps()
-
Get UCH Propeties
- Returns:
- map<string, string> containing key value pair map for UCH properties
map<string, string> * getValues(string sessionId, list<string>* paths, list<bool>* includeSets)
-
The UIPM asks for the values/states of specified socket elements.
- Parameters:
- sessionId - a string value of sessionId
paths - List<string>
includeSets - a List<Boolean> of includeSets
- Returns:
- map<string, string>
void invokeLocator(string targetId, string locatorId)
- Invoke the specified locator function on the specified target.
- Parameters:
- targetId - a string value of TargetId
locatorId - a string value of LocatorId
bool isElementAvailable(string targetId, string socketName, string elementId)
-
Checks whether a specified socket Element is available or not.
- Parameters:
- targetId - a string value of targetId
socketName - a string value of socketName
elementId - a string value of elementId
- Returns:
- boolean
bool isImplemented(string functionName)
-
Checks whether the function is implemented by IUIPMListener or not.
- Parameters:
- functionName - a string value of functionName
- Returns:
- boolean
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:
- uipm - Object of IUIPM
targetId - a string value of targetId
socketName - a string value of socketName
clientProps - map<string,string>
- Returns:
- map<string,string>
void removeCompatibleUIs(list<string>*uris)
-
Tells the UCH to remove user interface URIs from the UIList that were previously added by one call to addCompatibleUI().
- Parameters:
- uris - a List<String> of URIs
@throws UCHException
void removeUIPM(IUIPM* uipm)
-
Removes the specified uipm from the UCH.
- Parameters:
- uipm - an Object of IUIPM
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>
operations - List<String>
reqValues - List<String>
- Returns:
- Map<String, List<String>>
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>>
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 void*
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
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
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
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
list<map<string, IProfile*>*> * getContexts()
-
- Returns:
- a List<Map<String, IProfile>> of user and controller profile map
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
void abortSession(string sessionId)
-
Cleanup relative information about the session specified by 'sessionId'.
Also call the method abortSession() or relative IUIPM.
- Parameters:
- sessionId - a String value of sessionId
void updateValues(list<string>* sessionIds, list<string>* paths, list<string>* operations, list<string>* values, list<bool>* hasDynRes)
-
Informs the UIPM that the values have been updated for particular Session.
- Parameters:
- sessionIds - as List<String>
paths - as List<String>
operations - as List<String>
values - as List<String>
hasDynRes - as List<Boolean>
void instantiateUIPMs(string targetId, string targetName, list<map<string, IProfile*>*>* contexts)
-
Instantiate UIPM for the matching target Properties.
- Parameters:
- uipmProps - a map<map, map> of UIPM Properties
void targetDiscovered(string targetId, list<map<string, IProfile*>*>* contexts)
-
Called when any new target is Discovered in the network and informs to relative IUIPM.
- Parameters:
- targetId - a String value of targetId
contexts - a List<Map<String, IProfile>> of user and controller profile map
void targetDiscarded(string targetId)
-
Called when any existing target is Discarded from the network.
- Parameters:
- targetId - a String value of targetId
void contextsOpened(list<map<string, IProfile*>*>* contexts)
-
Call the same method on all UIPMs.
- Parameters:
- contexts - an object of List<Map<String, IProfile>>
void contextsClosed(list<map<string, IProfile*>*>* contexts)
-
Call the same method on all UIPMs.
- Parameters:
- contexts - an object of List<Map<String, IProfile>>
void targetContextsAdded(string targetId, list<map<string, IProfile*>*>* contexts)
-
Called by IUIPM for adding context for the particular targetId
- Parameters:
- targetId - a String value of targetId
contexts - an object of List<Map<String, IProfile>>
void targetContextsRemoved(string targetId, list<map<string, IProfile*>*>*contexts)
-
Called by IUIPM for removing context for the particular targetId
- Parameters:
- targetId - a String value of targetId
contexts - an object of List<Map<String, IProfile>>
optional methods/////////////////////////////
- optional methods/
bool getDependencyValue(string sessionId, string path, string dependency)
-
Returns the dependency value
- Parameters:
- sessionId - a String value of sessionId
path - a String value of path
dependency - a String value of dependency
- Returns:
- @throws UCHNotImplementedException
string getElementRef(string sessionId, string path)
-
Returns element ref
- Parameters:
- sessionId - a String value of sessionId
path - a String value of path
- Returns:
- @throws UCHNotImplementedException
bool isSessionSuspendable(string sessionId)
-
Checks whether session is suspendable or not
- Parameters:
- sessionId - a String value of sessionId
- Returns:
- @throws UCHNotImplementedException
long suspendSession(string sessionId, long suggestedTimeout)
-
Suspend the session
- Parameters:
- sessionId - a String value of sessionId
suggestedTimeout - a long value
- Returns:
- @throws UCHNotImplementedException
bool isSessionResumable(string sessionId)
-
Checks whether session is resumable or not
- Parameters:
- sessionId - a String value of sessionId
- Returns:
- @throws UCHNotImplementedException
bool resumeSession(string sessionId)
-
Resume the session
- Parameters:
- sessionId - a String value of sessionId
- Returns:
- @throws UCHNotImplementedException
- 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++.