|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.uch.uipm.urchttp.UrcHttpUIPM
public class UrcHttpUIPM
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.
| Constructor Summary | |
|---|---|
UrcHttpUIPM()
Default Constructor. |
|
| Method Summary | |
|---|---|
boolean |
addToSessionIdLastAccessMap(String sessionId,
long time)
Add a new entry for sessionId in sessionIdLastAccessMap. |
boolean |
addToSessionIdResPropsMap(String sessionId,
List<Map<String,List<String>>> resPropsList)
Add a new entry for Session Id in sessionIdResPropsMap. |
boolean |
addToSessionIdSocketNameMap(String sessionId,
String socketName)
Add a new entry for Session Id in sessionIdSocketNameMap. |
void |
clearValueOfMap(String sessionId,
List<String> paths)
Clear the updated values for specified paths of specified session. |
void |
contextsClosed(List<Map<String,IProfile>> contexts)
Called when one or more contexts were closed or have expired on the UCH. |
void |
contextsOpened(List<Map<String,IProfile>> contexts)
Called when one or more contexts have been opened on the UCH. |
void |
controllerRequest(HttpServletRequest request,
HttpServletResponse response,
Map<String,IProfile> context)
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 object. |
void |
finalize()
The UCH should call finalize() before it uninstalls or unloads the UIPM. |
IUIPMListener |
getIUIPMListener()
Return an Object of IUIPMListener. |
List<Map<String,List<String>>> |
getResPropsCopy(String sessionId)
Get copy of resProps for specified sessionId. |
String |
getSocketName(String sessionId)
Get socketName for specified sessionId. |
Map<String,String> |
getUIPMProps()
Returns Properties of UIPM. |
Map<String,List<String>> |
getUpdatedValuesResponse(String sessionId,
List<String> paths)
Get updated values for specified paths of specified Session. |
List<Map<String,IProfile>> |
getUriServiceContexts(String uri)
Get list of contexts for one of the UIPM's service URI. |
void |
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. |
boolean |
isImplemented(String functionName)
Checks whether specified function is implemented or not. |
Map<String,String> |
prepareUpdatedValueMap(String sessionId,
Map<String,String> updateResponse)
Return a Map<String, string> that contains the latest updated values. |
boolean |
removeFromSessionIdLastAccessMap(String sessionId)
Remove the entry from sessionIdLastAccessedMap for the specified SessionId. |
boolean |
removeFromSessionIdResPropsMap(String sessionId)
Remove the entry from sessionIdResPropsMap for the specified SessionId. |
boolean |
removeFromSessionIdSocketNameMap(String sessionId)
Remove the entry from sessionIdSocketNameMap for the specified SessionId. |
void |
sessionAborted(String sessionId)
The target has terminated a session. |
void |
sessionForwardRequest(String sessionId,
Map<String,String> forwardInfo)
The target requests the UIPM to open a session with a different socket. |
void |
SetTcpIpServer(TcpIpServer tcpIpServer)
Assign the reference of TcpIpServer to the local variable. |
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 |
targetDiscarded(String targetId)
This function is called by UCH when a target has been discarded after initialization of the UIPM. |
void |
targetDiscovered(String targetId,
List<Map<String,IProfile>> contexts)
This function is called by UCH when a new target has been discovered after initialization of the UIPM. |
void |
updateValues(List<String> sessionIds,
List<String> paths,
List<String> operations,
List<String> values,
List<Boolean> hasDynRes)
The target’s status has changed, affecting one or more sessions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UrcHttpUIPM()
| Method Detail |
|---|
public IUIPMListener getIUIPMListener()
ITDMListener
public boolean addToSessionIdLastAccessMap(String sessionId,
long time)
sessionId - a String value of sessionIdtime - a log value of time
public boolean removeFromSessionIdLastAccessMap(String sessionId)
sessionId - a String value of sessionId.
public boolean addToSessionIdResPropsMap(String sessionId,
List<Map<String,List<String>>> resPropsList)
sessionId - a String value of SessionIdresPropsList - an Object of List<Map<String, List<String>>>
public boolean removeFromSessionIdResPropsMap(String sessionId)
sessionId - a String value of SessionId
public List<Map<String,List<String>>> getResPropsCopy(String sessionId)
sessionId - a String value of SessionId
public boolean addToSessionIdSocketNameMap(String sessionId,
String socketName)
sessionId - a String value of SessionIdsocketName - a String value of socketName
public boolean removeFromSessionIdSocketNameMap(String sessionId)
sessionId - a String value of SessionId
public String getSocketName(String sessionId)
sessionId - a String value of SessionId
public void SetTcpIpServer(TcpIpServer tcpIpServer)
tcpIpServer - an Object of TcpIpServer
public void init(IUIPMListener uipmListener,
Map<String,String> uipmProps,
Map<String,String> uchProps,
List<Map<String,IProfile>> contexts)
throws UIPMFatalException
IUIPM
init in interface IUIPMuipmListener - an Object of IUIPMListeneruipmProps - a Map<String, String> of IUIPM PropertiesuchProps - a Map<String, String> of UCH Propertiescontexts - a List<Map<String, IProfile>> of user and controller profile map
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.init(IUIPMListener, Map, Map, List)
public void targetDiscovered(String targetId,
List<Map<String,IProfile>> contexts)
throws UIPMFatalException
IUIPM
targetDiscovered in interface IUIPMtargetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile map
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.targetDiscovered(String, List)
public void controllerRequest(HttpServletRequest request,
HttpServletResponse response,
Map<String,IProfile> context)
IUIPM
controllerRequest in interface IUIPMrequest - an Object of HttpServletRequestresponse - an Object of HttpServletResponsecontext - a Map<String, IProfile> of user and controller profileIUIPM.controllerRequest(HttpServletRequest, HttpServletResponse, Map)
public void updateValues(List<String> sessionIds,
List<String> paths,
List<String> operations,
List<String> values,
List<Boolean> hasDynRes)
throws UIPMFatalException
IUIPM
updateValues in interface IUIPMsessionIds - a List<String> of sessionIdspaths - a List<String> of pathsoperations - a List<String> of operationsvalues - a List<String> of valueshasDynRes - a List<Boolean> of hasDynRes
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.updateValues(java.util.List, java.util.List, java.util.List, java.util.List, java.util.List)
public void targetDiscarded(String targetId)
throws UIPMFatalException
IUIPM
targetDiscarded in interface IUIPMtargetId - a String value of targetId
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.targetDiscarded(java.lang.String)public Map<String,String> getUIPMProps()
IUIPM
getUIPMProps in interface IUIPMIUIPM.getUIPMProps()public boolean isImplemented(String functionName)
IUIPM
isImplemented in interface IUIPMfunctionName - a String value of function Name
IUIPM.isImplemented(java.lang.String)
public void sessionAborted(String sessionId)
throws UIPMFatalException
IUIPM
sessionAborted in interface IUIPMsessionId - a String value of sessionId
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.sessionAborted(java.lang.String)
public void sessionForwardRequest(String sessionId,
Map<String,String> forwardInfo)
throws UIPMFatalException
IUIPM
sessionForwardRequest in interface IUIPMsessionId - a String value of sessionIdforwardInfo - a Map<String, String> value
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.sessionForwardRequest(java.lang.String,java.util.Map)
public void contextsOpened(List<Map<String,IProfile>> contexts)
throws UIPMFatalException
IUIPM
contextsOpened in interface IUIPMcontexts - a List<Map<String, IProfile>> of user and controller profile map
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.contextsOpened(List)
public void contextsClosed(List<Map<String,IProfile>> contexts)
throws UIPMFatalException
IUIPM
contextsClosed in interface IUIPMcontexts - a List<Map<String, IProfile>> of user and controller profile map
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.contextsClosed(List)
public List<Map<String,IProfile>> getUriServiceContexts(String uri)
throws UIPMFatalException
IUIPM
getUriServiceContexts in interface IUIPMuri - a String value of URI
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.getUriServiceContexts(String)
public void targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
throws UIPMFatalException
IUIPM
targetContextsAdded in interface IUIPMtargetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile map
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.targetContextsAdded(String, List)
public void targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
throws UIPMFatalException
IUIPM
targetContextsRemoved in interface IUIPMtargetId - a String value of targetIdcontexts - a List<Map<String, IProfile>> of user and controller profile map
UIPMFatalException - an Object of UIPMFatalExceptionIUIPM.targetContextsRemoved(String, List)public void finalize()
IUIPM
finalize in interface IUIPMfinalize in class ObjectIUIPM.finalize()
public Map<String,List<String>> getUpdatedValuesResponse(String sessionId,
List<String> paths)
sessionId - a String value of SessionIdpaths - an Object of List<String>
public void clearValueOfMap(String sessionId,
List<String> paths)
sessionId - a String value of sessionIdpaths - an Object of List<String>
public Map<String,String> prepareUpdatedValueMap(String sessionId,
Map<String,String> updateResponse)
sessionId - a String value of sessionIdupdateResponse - a return Map<String, String> of IUIPMListener's getValueRequest()/getUpdates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||