|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITA
TA (Target Adapter) is the link in between UCH and final proprietory Target. It converts URC protocol to Target proprietory protocol and vice-versa. A Target Adapter (TA) represents one or multiple targets to the UCH. It is 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 from the network. 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()
This method is called by UCH before Un-installing or Unloading the TA. |
List<Map<String,Object>> |
getDynRes(String sessionId,
List<Map<String,String>> resProps)
Get the Dynamic Resources from the TA. |
List<Set<String>> |
getIndices(String sessionId,
List<String> eltIds,
List<Integer> indexNos)
Get Indices available on specific level of dimension of dimensional Element. |
Map<String,String> |
getLocators(String targetName)
Get a map of locators containing locatorId and locatorType for a specific target. |
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. |
String |
getSocketDescriptionUri(String targetName,
String socketName)
Get the URI for retrieving the Socket Description for specified targetName and socketName. |
String |
getSocketFriendlyName(String targetId,
String socketName)
Get the Socket Friendly Name for the specified 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 for specified targetId. |
Map<String,Object> |
getTargetProps(String targetId)
Get the Target's Properties for specified targetId. |
Map<String,String> |
getValues(String sessionId,
List<String> paths,
List<Boolean> includeSets)
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, this method is called by UCH 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,
Map<String,IProfile> context)
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,
List<Map<String,IProfile>> contexts)
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 for specified sessionId and do the necessary clean-up for the target. |
void |
sessionOpened(String targetId,
String sessionId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
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 |
targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
Called when one or more contexts got added to an existing target. |
void |
targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
Called when one or more contexts got removed to an existing target. |
void |
targetRequest(HttpServletRequest request,
HttpServletResponse response,
Map<String,IProfile> context)
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
TAFatalException - an Object of TAFatalExceptionvoid finalize()
Map<String,String> getTAProps()
void registerTarget(String targetId,
Map<String,Object> targetProps,
List<Map<String,IProfile>> contexts)
throws TAException,
TAFatalException
targetId - a String value of targetIdtargetProps - Map<String, Object>contexts - a List<Map<String, IProfile>> of user and controller profile map
TAException - an Object of TAException
TAFatalException - an Object of TAFatalException
void targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
throws TAFatalException
targetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile map
TAFatalException - an Object of TAFatalException
void targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
throws TAFatalException
targetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile map
TAFatalException - an Object of TAFatalException
void unregisterTarget(String targetId)
throws TAFatalException
targetId - a String value of targetId
TAFatalException - an Object of TAFatalException
List<String> getRegisteredTargetIds()
throws TAFatalException
TAFatalException - an Object of TAFatalExceptionMap<String,String> getLocators(String targetName)
targetName - a String value of targetName
void invokeLocator(String targetId,
String locatorId)
throws TAException,
TAFatalException
targetId - a String value of targetIdlocatorId - a String value of locaterId
TAException - an Object of TAException
TAFatalException - an Object of TAFatalException
String getTargetName(String targetId)
throws TAFatalException
targetId - a String value of targetId
TAFatalException - an Object of TAFatalException
String getTargetDescriptionUri(String targetName)
throws TAFatalException
targetName - a String value of targetName
TAFatalException - an Object of TAFatalException
Map<String,Object> getTargetProps(String targetId)
throws TAFatalException
targetId - a String value of targetId
TAFatalException - an Object of TAFatalException
List<String> getSocketNames(String targetName)
throws TAFatalException
targetName - a String value of targetName
TAFatalException - an Object of TAFatalException
String getSocketName(String sessionId)
throws TAFatalException
sessionId - a String value of sessionId
TAFatalException - an Object of 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 - an Object of TAFatalException
String getSocketDescriptionUri(String targetName,
String socketName)
throws TAFatalException
targetName - a String value of targetNamesocketName - a String value of socketName
TAFatalException - an Object of TAFatalException
Map<String,String> openSessionRequest(String targetId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
throws TAFatalException
targetId - a String value of targetIdsocketName - a String value of socketNameclientProps - Map<String, String>context - a Map<String, IProfile> of user and controller profile
TAFatalException - an Object of TAFatalException
void sessionOpened(String targetId,
String sessionId,
String socketName,
Map<String,String> clientProps,
Map<String,IProfile> context)
throws TAFatalException
targetId - a String value of targetIdsessionId - a String value of sessionIdsocketName - a String value of socketNameclientProps - Map<String, String>context - a Map<String, IProfile> of user and controller profile
TAFatalException - an Object of TAFatalException
void sessionClosed(String sessionId)
throws TAFatalException
sessionId - a String value of sessionId
TAFatalException - an Object of 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 - an Object of TAFatalException
Map<String,String> getValues(String sessionId,
List<String> paths,
List<Boolean> includeSets)
throws TAFatalException
sessionId - a String value of sessionIdpaths - a List<String> of elementPathincludeSets - a List<Boolean> of includeSets
TAFatalException - an Object of 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
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 - an Object of 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
TAFatalException - an Object of TAFatalExceptionboolean isImplemented(String functionName)
functionName - a String value of functionName
boolean suspendSessionRequest(String sessionId)
throws TAFatalException,
TANotImplementedException
sessionId - a String value of sessionId
TAFatalException - an Object of TAFatalException
TANotImplementedException - an Object of TANotImplementedException
long sessionSuspended(String sessionId,
long suggestedTimeout)
throws TAException,
TAFatalException,
TANotImplementedException
sessionId - a String value of sessionIdsuggestedTimeout - a long value of suggestedTimeout
TAException - an Object of TAException
TAFatalException - an Object of TAFatalException
TANotImplementedException - an Object of TANotImplementedException
boolean resumeSessionRequest(String sessionId)
throws TAFatalException,
TANotImplementedException
sessionId - a String value of sessionId
TAFatalException - an Object of TAFatalException
TANotImplementedException - an Object of TANotImplementedException
void sessionResumed(String sessionId)
throws TAException,
TAFatalException,
TANotImplementedException
sessionId - a string value of sessionId
TAException - an Object of TAException
TAFatalException - an Object of TAFatalException
TANotImplementedException - an Object of TANotImplementedException
void targetRequest(HttpServletRequest request,
HttpServletResponse response,
Map<String,IProfile> context)
throws TAFatalException
request - a HttpServletRequest Objectresponse - a HttpServletResponse Objectcontext - a Map<String, IProfile> of user and controller profile
TAFatalException - an Object of TAFatalExceptionHttpServletRequest,
HttpServletResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||