|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jproxy.proxy.util.ThreadSupport
com.jproxy.proxy.ProxyHashtable
The class that keeps references of objects and tunneling objects (objects) in a hashtable and manages lifetime of the objects. ProxyHashtable runs a thread on background. The thread checks each objects time-to-live and if the time is expired then the object is recycled. If object is created by other object then all hierarhy of objects is recycled starting from latest created object.
Invocator
,
com.jproxy.proxy.InvocatorHashtable
,
Tunnel
,
Serialized FormField Summary | |
java.util.Hashtable |
hashtable
|
static java.lang.Class |
invocationInterceptorClass
|
java.util.Hashtable |
sessionHash
|
Fields inherited from class com.jproxy.proxy.util.ThreadSupport |
threads |
Constructor Summary | |
ProxyHashtable()
Default constructor |
Method Summary | |
void |
addSessionObject(long sessionId,
HashObject obj)
|
HashObject |
create(java.lang.Object obj,
long sessionId)
Adds the object to hashtable |
HashObject |
get(long objectId)
Seeks hash-object by specified objectId key value |
java.util.Hashtable |
getSessionObjects(long sessionId)
|
java.lang.Object[] |
keys()
Seeks hash-object in hashtable by specified object wrapped in hash-object. |
HashObject |
remove(long objectId)
Removes object from hashtable by specified id key value. |
void |
removeAll()
Removes references to all remote objects from hashtable |
void |
removeSessionObject(long sessionId,
long objectId)
|
void |
updateLicense(HashObject hashObject)
|
int |
updateSession(long sessionId)
Recursivly renewes licenses for all objects linked by parent-child relation in hashtable. |
java.lang.Object[] |
values()
|
Methods inherited from class com.jproxy.proxy.util.ThreadSupport |
getThread, isRunning, isStopping, run, start, stop, stop, stopAll |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.Class invocationInterceptorClass
public java.util.Hashtable hashtable
public java.util.Hashtable sessionHash
Constructor Detail |
public ProxyHashtable()
Method Detail |
public HashObject create(java.lang.Object obj, long sessionId)
obj
- object that must be added to hashtablepublic java.util.Hashtable getSessionObjects(long sessionId)
public void addSessionObject(long sessionId, HashObject obj)
public void removeSessionObject(long sessionId, long objectId)
public HashObject remove(long objectId)
objectId
- id of the object that must be removed from a hashtablepublic void removeAll()
public int updateSession(long sessionId)
public void updateLicense(HashObject hashObject)
public HashObject get(long objectId)
objectId
- key of object to be foundpublic java.lang.Object[] keys()
public java.lang.Object[] values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |