|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITA
A Target Adapter (TA) represents one or multiple targets to the UCH. It is being installed and loaded upon the discovery of a first target that it can represent. The UCH will register new targets with the TA as they are discovered by the TDM; and unregister after they have disappeared. After having opened a session on a target’s socket, the TA is responsible for managing the values of the pertaining socket instance.
| Method Summary | |
|---|---|
void |
finalize()
The UCH should call finalize() before it Un-installs or Unloads the TA. |
List<Map<String,Object>> |
getDynRes(String sessionId,
List<Map<String,String>> resProps)
Get the Dynamic atomic Resources from the TA. |
List<Set<String>> |
getIndices(String sessionId,
List<String> eltIds,
List<Integer> indexNos)
Get IndexNames available on specific level of dimension of dimensional Element. |
Map<String,String> |
getLocators(String targetName)
Get a map with Locator Ids and locator types for a specific target type. |
List<String> |
getRegisteredTargetIds()
Get the target identifiers that the TA is currently representing. |
List<String> |
getSessionIds(String targetId,
String socketName)
Get the Session Identifiers for specified targetId and socketName SocketName. |
String |
getSocketDescriptionUri(String targetName,
String socketName)
Get the URI for retrieving the Socket Description of specified targetName and socketName. |
String |
getSocketFriendlyName(String targetId,
String socketName)
Get Friendly Name for the Socket specified by the socketName and targetId. |
String |
getSocketName(String sessionId)
Get the SocketName for the specified sessionId. |
List<String> |
getSocketNames(String targetName)
Get the List of SocketName for specified targetName. |
Map<String,String> |
getTAProps()
Get Target Adapter Properties Map. |
String |
getTargetDescriptionUri(String targetName)
Get the URI for retrieving the Target Description. |
String |
getTargetName(String targetId)
Get the TargetName specified by targetId. |
Map<String,Object> |
getTargetProps(String targetId)
Get the Target's Properties for specified targetId. |
Map<String,String> |
getValues(String sessionId,
List<String> paths)
Returns a value/state of the specified socket elements. |
void |
init(ITAListener taListener,
Map<String,String> taProps,
Map<String,String> uchProps)
When the TA is installed and loaded, the UCH calls this method prior to any other TA function. |
void |
invokeLocator(String targetId,
String locatorId)
Invoke the specified locator function on a target. |
boolean |
isElementAvailable(String targetId,
String socketName,
String eltId)
Checks whether a given socketElement is available in specified Socket of specified Target or not. |
boolean |
isImplemented(String functionName)
Checks whether specified function is implemented by the TA or not. |
Map<String,String> |
openSessionRequest(String targetId,
String socketName,
Map<String,String> clientProps)
The UCH asks for permission to open a session with a specified client on a specified socket. |
void |
registerTarget(String targetId,
Map<String,Object> targetProps)
Register Target Adapter with specified targetId. |
boolean |
resumeSessionRequest(String sessionId)
The UCH asks for permission to resume a session. |
void |
sessionClosed(String sessionId)
Closes the Session with specific sessionId and do the necessary clean-up for the target. |
void |
sessionOpened(String targetId,
String sessionId,
String socketName,
Map<String,String> clientProps)
If the TA has accepted an open session request, and if the UCH succeeded in the necessary steps to open a session with the client, the UCH will call sessionOpened and provide the sessionId pertaining to the new session. |
void |
sessionResumed(String sessionId)
The UCH signals the TA that the session has resumed. |
long |
sessionSuspended(String sessionId,
long suggestedTimeout)
The UCH signals the TA that the client has suspended a session with one of the TA’s targets. |
Map<String,List<String>> |
setValuesRequest(String sessionId,
boolean isValidated,
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. |
boolean |
suspendSessionRequest(String sessionId)
The UCH asks for permission to suspend a session. |
void |
targetRequest(HttpServletRequest request,
HttpServletResponse response)
The UCH calls this function if it has received a request from a target to a URI that the TA has claimed for itself by a previous call to startUriService().It modify the response object according to request object. |
void |
unregisterTarget(String targetId)
Called when target has been disappeared from the network. |
| Method Detail |
|---|
void init(ITAListener taListener,
Map<String,String> taProps,
Map<String,String> uchProps)
throws TAFatalException
taListener - an Object of ITAListenertaProps - a Map<String, String> of ITA PropertiesuchProps - a Map<String, String> of UCH Properties
TAFatalExceptionvoid finalize()
Map<String,String> getTAProps()
void registerTarget(String targetId,
Map<String,Object> targetProps)
throws TAException,
TAFatalException
targetId - a String value of targetIdtargetProps - Map<String, Object>
TAException
TAFatalException
void unregisterTarget(String targetId)
throws TAFatalException
targetId - a String value of targetId
TAFatalException
List<String> getRegisteredTargetIds()
throws TAFatalException
TAFatalException
String getTargetName(String targetId)
throws TAFatalException
targetId - a String value of targetId
TAFatalException
String getTargetDescriptionUri(String targetName)
throws TAFatalException
targetName - a String value of targetName
TAFatalException
Map<String,Object> getTargetProps(String targetId)
throws TAFatalException
targetId - a String value of targetId
TAFatalException
List<String> getSocketNames(String targetName)
throws TAFatalException
targetName - a String value of targetName
TAFatalException
String getSocketName(String sessionId)
throws TAFatalException
sessionId - a String value of sessionId
TAFatalException
String getSocketFriendlyName(String targetId,
String socketName)
targetId - a String value of targetIdsocketName - a String value of socketName
List<String> getSessionIds(String targetId,
String socketName)
throws TAFatalException
targetId - a String value of targetIdsocketName - a String value of socketName
TAFatalException
String getSocketDescriptionUri(String targetName,
String socketName)
throws TAFatalException
targetName - a String value of targetNamesocketName - a String value of socketName
TAFatalException
Map<String,String> openSessionRequest(String targetId,
String socketName,
Map<String,String> clientProps)
throws TAFatalException
targetId - a String value of targetIdsocketName - a String value of socketNameclientProps - Map<String, String>
TAFatalException
void sessionOpened(String targetId,
String sessionId,
String socketName,
Map<String,String> clientProps)
throws TAFatalException
targetId - a String value of targetIdsessionId - a String value of sessionIdsocketName - a String value of socketNameclientProps - Map<String, String>
TAFatalException
void sessionClosed(String sessionId)
throws TAFatalException
sessionId -
TAFatalException
Map<String,List<String>> setValuesRequest(String sessionId,
boolean isValidated,
List<String> paths,
List<String> operations,
List<String> reqValues)
throws TAFatalException
sessionId - a String value of sessionIdpaths - List<String> a List of elementPathsoperations - List<String> a List of operations (allowed operations are "S", "A", "R", "I" or "K" )reqValues - List<String> a List of Requested Values
TAFatalException
List<Set<String>> getIndices(String sessionId,
List<String> eltIds,
List<Integer> indexNos)
sessionId - a String value of sessionIdeltIds - a List<String> of elementIdsindexNos - a List<Integer> of indexNo
Map<String,String> getValues(String sessionId,
List<String> paths)
throws TAFatalException
sessionId - a String value of sessionIdpaths - a List<String> of elementPath
TAFatalException
List<Map<String,Object>> getDynRes(String sessionId,
List<Map<String,String>> resProps)
throws TAFatalException
sessionId - a String value of sessionIdresProps - a List<Map<String, String>> value of Resource Properties
TAFatalException
boolean isElementAvailable(String targetId,
String socketName,
String eltId)
throws TAFatalException
targetId - a String value of targetIdsocketName - a String value of socketNameeltId - a String value of eltId
TAFatalExceptionboolean isImplemented(String functionName)
functionName - a String value of functionName
void targetRequest(HttpServletRequest request,
HttpServletResponse response)
throws TAFatalException
request - a HttpServletRequest Objectresponse - a HttpServletResponse Object
TAFatalExceptionHttpServletRequest,
HttpServletResponse
void invokeLocator(String targetId,
String locatorId)
throws TAException,
TAFatalException
targetId - a String value of targetIdlocatorId - a String value of locaterId
TAException
TAFatalExceptionMap<String,String> getLocators(String targetName)
targetName - a String value of targetName
boolean suspendSessionRequest(String sessionId)
throws TAFatalException,
TANotImplementedException
sessionId - a String value of sessionId
TAFatalException
TANotImplementedException
long sessionSuspended(String sessionId,
long suggestedTimeout)
throws TAException,
TAFatalException,
TANotImplementedException
sessionId - a String value of sessionIdsuggestedTimeout - a long value of suggestedTimeout
TAException
TAFatalException
TANotImplementedException
boolean resumeSessionRequest(String sessionId)
throws TAFatalException,
TANotImplementedException
sessionId - a String value of sessionId
TAFatalException
TANotImplementedException
void sessionResumed(String sessionId)
throws TAException,
TAFatalException,
TANotImplementedException
sessionId - a string value of sessionId
TAException
TAFatalException
TANotImplementedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||