class UrcHttpUIPM

After getting information from ITDMListener regarding Discovery and Discarding of devices, UCH instantiates UrcHttpUIPM if relative target is discovered.

Inheritance:


Public Fields

[more]IUIPMListener* uipmListener
Pointer to IUIPMListener
[more]SearchUIPMClientsThread* searchUIPMClientsThread
Pointer to SearchUIPMClientsThread
[more]static string PROPERTY_CONFORMS_TO_VALUE
static string
[more]static string PROPERTY_WRAPS_PROTOCOL_SHORT_NAME_VALUE
static string
[more]static string PROPERTY_PROTOCOL_SHORT_NAME_DEFAULT_VALUE
static string
[more]bool canChangeURIList
Boolean specifying that URI List can be modified
[more]bool updateUIPMClientNow
Boolean which commands the searchThread to update the UCH immediately
[more]map<string, string> uipmClientUriTargetIdMap
Map for UIPM Client URI Vs TargetId
[more]ContextManager* contextManager
ContextManager Object

Public Methods

[more] UrcHttpUIPM()
Default Constructor
[more]void prepareForAddCompatibleUI( string targetId, list<map<string, IProfile*>*>* contexts)
Collect relative information from IUIPMListener to invoke the method addCompatibleUI() of IUIPMListener for discovered target and invoke it.
[more]void init(IUIPMListener* uipmListener, map<string, string>* uipmProps, map<string, string>* uchProps, list<map<string, IProfile*>*>* contexts)
[more]void targetDiscovered( string targetId, list<map<string, IProfile*>*>* contexts)
This function is called from UCH when a new target has been discovered after initialization of the UIPM.
[more]void targetDiscarded( string targetId )
This function is called from UCH when a target has been discarded after initialization of the UIPM.
[more]void controllerRequest(map<string, string>* requestMap, map<string, string>*responseMap)
The UCH calls this function if it has received a request from a controller to a URI that the UIPM has claimed for itself by a previous call to startUriService()It call desired methods of IUIPMListener and make changes to response.
[more]void updateValues(list<string>* sessionIds, list<string>* paths, list<string>* operations, list<string>* values, list<bool>* hasDynRes)
The target's status has changed, affecting one or more sessions.
[more]void finalize()
The UCH should call finalize() before it uninstalls or unloads the UIPM.
[more]map<string, long> * getSessionIdLastAccessedMap()
Return a Map of SessionId V/S Time from last access of that Session.
[more]void sessionAborted(string sessionId)
The target has terminated a session.
[more]map<string, string> * getUIPMProps()
Returns Properties of UIPM.
[more]bool isImplemented(string functionName)
Checks whether the 'functionName' has been implemented or not in IUIPM.
[more]map<string, string> * getUchProps()
Returns the property map fo UCH
[more]string getPropValueFromPropMap(string propName, map<string, list<string>*>* uipmClientPropsMap)
Returns the value of requested property Name from uipm Client Property Map
[more]map<string, list<string>*> * getUipmClientInfo(string eltRef)
Get the uipm client info from supplied elfRef
[more]void addURIToList(string uri)
Add URI to the client List
[more]list<string> * getURIList()
Returns List of all available URI
[more]map<string,TargetDetails*> * getTargetIdTargetDetailMap()
Returns the TargetId Vs TargetDetail Class Map @retrun map<string,TargetDetails*>
[more]void freeMemory(list<map<string, list<string>*>*>*uipmClientRequestPropList, list<list<map<string, list<string>*>*>*>*uipmClientList)
Frees the memory after every call to get resources
[more]void contextsOpened(list<map<string, IProfile*>*>* contexts)
[more]void contextsClosed(list<map<string, IProfile*>*>* contexts)
[more]list<map<string, IProfile*>*> * getUriServiceContexts(string uri)
Returns all available user profile context for given uri
[more]void targetContextsAdded(string targetId, list<map<string, IProfile*>*>* contexts)
[more]void targetContextsRemoved(string targetId, list<map<string, IProfile*>*>* contexts)


Documentation

After getting information from ITDMListener regarding Discovery and Discarding of devices, UCH instantiates UrcHttpUIPM if relative target is discovered. UCH informs UIPM about Discovery and Discarding of the devices. It forwards relative call from UCH to ITA and get desired response and forwards to UCH for further process.

o UrcHttpUIPM()
Default Constructor

oIUIPMListener* uipmListener
Pointer to IUIPMListener

oSearchUIPMClientsThread* searchUIPMClientsThread
Pointer to SearchUIPMClientsThread

ostatic string PROPERTY_CONFORMS_TO_VALUE
static string

ostatic string PROPERTY_WRAPS_PROTOCOL_SHORT_NAME_VALUE
static string

ostatic string PROPERTY_PROTOCOL_SHORT_NAME_DEFAULT_VALUE
static string

ovoid prepareForAddCompatibleUI( string targetId, list<map<string, IProfile*>*>* contexts)
Collect relative information from IUIPMListener to invoke the method addCompatibleUI() of IUIPMListener for discovered target and invoke it. Also start service for uris by invoking the method startUriService() of IUIPMListener.

Parameters:
targetId - a String value of targetId @throws TAFatalException

ovoid init(IUIPMListener* uipmListener, map<string, string>* uipmProps, map<string, string>* uchProps, list<map<string, IProfile*>*>* contexts)

When the UIPM is installed and loaded, the UCH calls this method prior to any other UIPM function and allows the UIPM to initialize itself.

Parameters:
- uipmListener an Object of IUIPMListener
uipmProps - a Map<String, String> of IUIPM Properties
uchProps - a Map<String, String> of UCH Properties @throws UIPMFatalException

ovoid targetDiscovered( string targetId, list<map<string, IProfile*>*>* contexts)
This function is called from UCH when a new target has been discovered after initialization of the UIPM.

Parameters:
targetId - a String value of targetId @throws UIPMFatalException

ovoid targetDiscarded( string targetId )
This function is called from UCH when a target has been discarded after initialization of the UIPM.

Parameters:
targetId - a String value of targetId @throws UIPMFatalException

ovoid controllerRequest(map<string, string>* requestMap, map<string, string>*responseMap)
The UCH calls this function if it has received a request from a controller to a URI that the UIPM has claimed for itself by a previous call to startUriService()It call desired methods of IUIPMListener and make changes to response.

Parameters:
request - an Object of map<string, string>
response - an Object of map<string, string>

ovoid updateValues(list<string>* sessionIds, list<string>* paths, list<string>* operations, list<string>* values, list<bool>* hasDynRes)
The target's status has changed, affecting one or more sessions.

Parameters:
sessionIds - List<String>
paths - List<String>
operations - List<String>
values - List<String>
hasDynRes - List<Boolean> @throws UIPMFatalException

ovoid finalize()
The UCH should call finalize() before it uninstalls or unloads the UIPM.

omap<string, long> * getSessionIdLastAccessedMap()
Return a Map of SessionId V/S Time from last access of that Session.

Returns:
a Map<String, Long> of SessionId V/S Time from last access of that Session.

ovoid sessionAborted(string sessionId)
The target has terminated a session.

Parameters:
sessionId - a String value of sessionId @throws UIPMFatalException

omap<string, string> * getUIPMProps()
Returns Properties of UIPM.

Returns:
Map<String, String>

obool isImplemented(string functionName)
Checks whether the 'functionName' has been implemented or not in IUIPM.

Parameters:
functionName - a String value of functionName
Returns:
boolean 'true' if function is implemented in IUIPM else 'false'

omap<string, string> * getUchProps()
Returns the property map fo UCH
Parameters:
Map - <String,String> of UCH Properties

ostring getPropValueFromPropMap(string propName, map<string, list<string>*>* uipmClientPropsMap)
Returns the value of requested property Name from uipm Client Property Map
Parameters:
propName - a String whose value is required to be searched
uipmClientPropsMap - a map<string, list<string>*> from which value will be searched
Returns:
a String value of propName

omap<string, list<string>*> * getUipmClientInfo(string eltRef)
Get the uipm client info from supplied elfRef
Parameters:
eltRef - a String value of elementRefId
Returns:
map<string, list<string>*>

ovoid addURIToList(string uri)
Add URI to the client List
Parameters:
uri - a String value of URI

olist<string> * getURIList()
Returns List of all available URI
Returns:
list<string>

obool canChangeURIList
Boolean specifying that URI List can be modified

obool updateUIPMClientNow
Boolean which commands the searchThread to update the UCH immediately

omap<string,TargetDetails*> * getTargetIdTargetDetailMap()
Returns the TargetId Vs TargetDetail Class Map @retrun map<string,TargetDetails*>

ovoid freeMemory(list<map<string, list<string>*>*>*uipmClientRequestPropList, list<list<map<string, list<string>*>*>*>*uipmClientList)
Frees the memory after every call to get resources
Parameters:
uipmClientRequestPropList - a list<map<string, list<string>*>*> UIPM Client Request Property List
uipmClientList - a list<list<map<string, list<string>*>*>*> UIPM Client List

omap<string, string> uipmClientUriTargetIdMap
Map for UIPM Client URI Vs TargetId

oContextManager* contextManager
ContextManager Object

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

Parameters:
contexts - a List<Map<String, IProfile>> of user and controller profile map @throws UIPMFatalException an Object of org.myurc.uch.UIPMFatalException

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

Parameters:
contexts - a List<Map<String, IProfile>> of user and controller profile map @throws UIPMFatalException an Object ofUIPMFatalException

olist<map<string, IProfile*>*> * getUriServiceContexts(string uri)
Returns all available user profile context for given uri
Parameters:
uri - a String Value of uri
Returns:
List<Map<String, IProfile>> contexts

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 @throws UIPMFatalException an Object of org.myurc.uch.UIPMFatalException

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 @throws UIPMFatalException an Object of org.myurc.uch.UIPMFatalException


This class has no child classes.
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++.