class TAListener

Implements the methods of ITAListener.

Inheritance:


Public Methods

[more] TAListener(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()
Gets an Object of LocalUCHStore.
[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)
Returns whether specified function is implemented or not.
[more]string startUriService(ITA* ta, string scheme, int port, bool portIsFlexible, string basePath, bool basePathIsFlexible, list<map<string, IProfile*>*>* contexts)
The ITA 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 ITA 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]void removeUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)
[more]list<map<string, IProfile*>*> * getContexts()
[more]void addUriServiceContexts(string uri, list<map<string, IProfile*>*>*contexts)
[more]list<map<string, IProfile*>*> * getTargetContexts(string targetId)
[more]void abortSession(string sessionId)
The TA has terminated a session.
[more]void sessionForwardRequest(string sessionId, map<string, string>* forwardInfo)
The TA requests the client to open a session with different socket.
[more]bool setValidation(ITA* ta, bool activate)
Check whether to do validation for the TA or not.
[more]void updateDynRes(list<string>* sessionIds, list<string>* eltIds)
Signals that the set of atomic resources pertaining to a specific socket element has changed.
[more]string targetDiscovered(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 disappeared from the network.
[more]map<string, string> * openSessionRequest(string targetId, string socketName, map<string, string>* clientProps, map<string, IProfile*>* context)
The UCH asks for permission to open a session with a specified client on a specified socket.
[more]map<string, string> * getValues(string sessionId, list<string>* paths, list<bool>* includeSets)
Returns a value/state of the specified socket elements.
[more]map<string, list<string>*> * setValuesRequest(string sessionId, list<string>* paths, list<string>* operations, list<string>* reqValues)
The client requests to change the target state in one or more operations on specified socket elements.
[more]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.
[more]void closeSession(string sessionId)
Closes the session with specified sessionId.
[more]list<string> * getAvailableTargetIds()
Get List of available targetIds
[more]string getSocketDescriptionUri(string targetId, string socketName)
Get the URI of the Socket Description for the specified targetId and socketName.
[more]string getSocketFriendlyName(string targetId, string socketName)
Get the Socket Friendly Name for the specified targetId and socketName.
[more]string getSocketName(string sessionId)
Get String value of Socket Name specified by 'sessionId'.
[more]list<string> * getSocketNames(string targetName)
Get socket Names for the specified Target Name.
[more]string getTargetDescriptionUri(string targetName)
Get the URI of the Target Description for the specified Target Name.
[more]string getTargetName(string targetId)
Get the Target Name for specified targetId.
[more]string getTargetFriendlyName( string targetId )
Get Friendly Name of Target
[more]map<string, void*> * getTargetProps(string targetId)
Get Target Properties specified by 'targetId'
[more]bool isElementAvailable(string targetId, string socketName, string elementId)
Return whether the AbstractUISocketElement specified by 'elementId' is available in the target specified by 'targetId'
[more]void invokeLocator(string targetId, string locatorId)
Invoke the specified locator function on the specified target.
[more]map<string, string> * getLocators(string targetName)
Get a map with Locator ids and locator types for a specific target type.
[more]list<map<string, void*>*> * getDynRes(string sessionId, list<map<string, string>*>* resProps)
Get the Dynamic atomic Resources from the TA.
[more]void targetContextsAdded(string targetId, list<map<string, IProfile*>*>*contexts)
Find relative TA for specified targetId and add contexts to it.
[more]void targetContextsRemoved(string targetId, list<map<string, IProfile*>*>*contexts)
Find relative TA for specified targetId and remove contexts from it.
[more]void updateValues(list<string>* sessionIds, list<string>* paths, list<string>* operations, list<string>* values, list<bool>* hasDynRes)
The TA signals a change in the target�s status, affecting one or more sessions.


Inherited from ITAListener:


Documentation

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

o TAListener(UCH*uch)
Constructor. Provide the reference of UCH to 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
context - a Map<string, IProfile>
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()
Gets an Object of LocalUCHStore.

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)
Returns 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(ITA* ta, string scheme, int port, bool portIsFlexible, string basePath, bool basePathIsFlexible, list<map<string, IProfile*>*>* contexts)
The ITA 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:
ta - an ITA 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
contexts - a List<Map<String, IProfile>>
Returns:
a String value of URI @throws UCHException

ovoid stopUriService(string uri)
The ITA 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 Map<String, String>

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 an Object of org.myurc.uch.UCHException

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

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

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 an Object of org.myurc.uch.UCHException

olist<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

ovoid abortSession(string sessionId)
The TA has terminated a session.

Parameters:
sessionId - a String value of sessionId

ovoid sessionForwardRequest(string sessionId, map<string, string>* forwardInfo)
The TA requests the client to open a session with different socket.

Parameters:
sessionId - a String value of sessionId
forwardInfo - Map<String, String>

obool setValidation(ITA* ta, bool activate)
Check whether to do validation for the TA or not.

Parameters:
ta - an Object of ITA
activate - a boolean value of activate
Returns:
boolean whether to do validation for the TA or not

ovoid updateDynRes(list<string>* sessionIds, list<string>* eltIds)
Signals that the set of atomic resources pertaining to a specific socket element has changed. It is called by ITA and it's for dynamic resource.

Parameters:
sessionIds - a List<String> value of sessionIds
eltIds - a List<String> value of eltIds

ostring targetDiscovered(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:
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 disappeared from the network.

Parameters:
targetId - a String value of targetId

omap<string, string> * openSessionRequest(string targetId, string socketName, map<string, string>* clientProps, map<string, IProfile*>* context)
The UCH asks for permission to open a session with a specified client on a specified socket. If it is permitted then a map returns a keyValue pair {"Result", "A"} i.e. Accept Else it returns a keyValue pair {"Result", "R"} i.e. rejection.

Parameters:
targetId - a String value of targetId
socketName - a String value of socketName
clientProps - Map<String, String>
Returns:
Map<String, String> @throws TAFatalException

omap<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 - List<String>
includeSets - a List<Boolean> of includeSets
Returns:
Map<String, String> @throws TAFatalException

omap<string, list<string>*> * setValuesRequest(string sessionId, list<string>* paths, list<string>* operations, list<string>* reqValues)
The client 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, operations, identifiers and requested new values.

Parameters:
sessionId - a String value of sessionId
paths - List<String>
operations - List<String>(allowed operations are "S", "A", "R", "I" or "K" )
reqValues - List<String>
Returns:
Map<String, List<String>>. Map contains keys "paths","values" and "operations". Various Values of paths, operations and values are stored in List<string>. @throws TAFatalException

olist<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 sessionId
eltIds - list of elementids
indexNos - list of indices
Returns:
Map containing element identifiers and indexed values

ovoid closeSession(string sessionId)
Closes the session with specified sessionId.

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

olist<string> * getAvailableTargetIds()
Get List of available targetIds

Returns:
a List<String> of targetIds

ostring getSocketDescriptionUri(string targetId, string socketName)
Get the URI of the Socket Description for the specified targetId and socketName.

Parameters:
targetName - a String value of targetName
socketName - a String value of socketName
Returns:
String of Socket Description URI @throws TAFatalException

ostring getSocketFriendlyName(string targetId, string socketName)
Get the Socket Friendly Name for the specified targetId and socketName.

Parameters:
targetId - a String value of targetId
socketName - a String value of socketName
Returns:
String of Socket Friendly Name

ostring getSocketName(string sessionId)
Get String value of Socket Name specified by 'sessionId'.

Parameters:
sessionId - a String value of sessionId
Returns:
String Value of socket name

olist<string> * getSocketNames(string targetName)
Get socket Names for the specified Target Name.

Parameters:
targetName - a String value of targetName
Returns:
List<String> of socket Names @throws TAFatalException

ostring getTargetDescriptionUri(string targetName)
Get the URI of the Target Description for the specified Target Name.

Parameters:
targetName - a String value of targetName
Returns:
String of TargetDescriptionUri @throws TAFatalException

ostring getTargetName(string targetId)
Get the Target Name for specified targetId.

Parameters:
targetId - a String value of targetId
Returns:
String Value of target Name

ostring getTargetFriendlyName( string targetId )
Get Friendly Name of Target
Parameters:
targetId - a String variable
Returns:
a String variable - FriendlyName

omap<string, void*> * getTargetProps(string targetId)
Get Target Properties specified by 'targetId'

Parameters:
targetId - a String value of targetId
Returns:
a Map<String, Object> of Target Properties

obool isElementAvailable(string targetId, string socketName, string elementId)
Return whether the AbstractUISocketElement specified by 'elementId' is available in the target specified by 'targetId'

Parameters:
targetId - a String value of targetId
socketName - a String value of socketName
elementId - a String value of elementId
Returns:
whether element specified by elementId is available or not. @throws TAFatalException

ovoid 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

omap<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

olist<map<string, void*>*> * getDynRes(string sessionId, list<map<string, string>*>* resProps)
Get the Dynamic atomic Resources from the TA. Retrives resource for elements specified by ITA using method updateDynRes to ITAListener. The UCH shall specify the properties of the requested resource as much as possible.

Parameters:
sessionId - String Value of 'sessionId'
resProps - a List<Map<String, String>>
Returns:
a list<map<string, Object>> for given resProps List

ovoid targetContextsAdded(string targetId, list<map<string, IProfile*>*>*contexts)
Find relative TA for specified targetId and add contexts to it.

Parameters:
targetId - a String value of targetId
contexts - an object of List<Map<String, IProfile<< specifies contexts

ovoid targetContextsRemoved(string targetId, list<map<string, IProfile*>*>*contexts)
Find relative TA for specified targetId and remove contexts from it.

Parameters:
targetId - a String value of targetId
contexts - an object of List<Map<String, IProfile<< specifies contexts

ovoid updateValues(list<string>* sessionIds, list<string>* paths, list<string>* operations, list<string>* values, list<bool>* hasDynRes)
The TA signals a change in the target�s status, affecting one or more sessions.

Parameters:
sessionIds - a List<String< of sessionIds
paths - a List<String< of paths
operations - a List<String< of operations
values - a List<String< of values
hasDynRes - a List<Boolean< of hasDynRes


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++.