|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Proxy.Cache.ProxyCacheLogicalTargets
public class ProxyCacheLogicalTargets
This class implements a list of cached logical targets. Logical targets are cached when a response from a server is sent to a client.
| Field Summary | |
|---|---|
private java.util.Map<java.lang.String,ProxyCacheManagement> |
cacheManagement
key: is a proxy target identifier (ProxyTID) |
private java.util.HashMap<java.lang.String,java.lang.String> |
targetToProxyTID
Converts from a target to a proxyTID |
| Constructor Summary | |
|---|---|
ProxyCacheLogicalTargets()
Constructor of ProxyCacheLogicalTargets. |
|
| Method Summary | |
|---|---|
void |
add(ProxyCacheManagement logicalTarget)
Appends the specific logical target to the list of logical targets. |
boolean |
equals(java.lang.String target,
java.lang.String tid)
Check if the logical target identified |
ProxyCacheManagement |
getByTarget(java.lang.String target)
Gets a logical target from the list. |
ProxyCacheManagement |
getByTID(java.lang.String tid)
Gets a logical target from the list. |
ProxyCacheManagement |
getTarget(java.lang.String target,
java.lang.String tid)
Gets a logical target from the list. |
boolean |
isEmpty()
Returns true if the list contains no elements. |
void |
list(java.io.PrintStream out)
Prints this Logical Target List fields out to the specified output stream. |
int |
size()
Returns the number of elements in the list. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map<java.lang.String,ProxyCacheManagement> cacheManagement
private java.util.HashMap<java.lang.String,java.lang.String> targetToProxyTID
| Constructor Detail |
|---|
public ProxyCacheLogicalTargets()
| Method Detail |
|---|
public void add(ProxyCacheManagement logicalTarget)
logicalTarget - logical target to be appended to the list.public ProxyCacheManagement getByTID(java.lang.String tid)
tid).
tid - definition in TargetField.target.
tid is not in the list, it returns null
public ProxyCacheManagement getByTarget(java.lang.String target)
target.
target - definition in TargetField.target.
target is not in the list, it returns null
public ProxyCacheManagement getTarget(java.lang.String target,
java.lang.String tid)
target and/or tid. If the target
and tid parameters do not identify the same target
an exception is thrown.
target - definition in TargetField.target.tid - definition in TargetField.target.
target is not in the list, it returns null
public boolean equals(java.lang.String target,
java.lang.String tid)
target - definition in TargetField.target.tid - definition in TargetField.tid.
true if the target belongs to the
target identifier tid.public boolean isEmpty()
true if the list contains no elements. Otherwise,
returns false.
true if the list contains no elements.public int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||