|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.karmi.dgc.HierarchicalDGC.Counter
Counts remote references and prevents the local server implementation form being garbage collected by keeping a local reference to it.
| Field Summary | |
private int |
cnt
The number of references that left the VM and are not yet finalized. |
private int |
exportId
Export point identifier. |
private int |
objectId
Identifier of the remote object this counter counts references to. |
private RemoteServerRef |
serverRef
Reference to the local server implementation. |
| Constructor Summary | |
HierarchicalDGC.Counter(int exportId,
int objectId)
|
|
| Method Summary | |
boolean |
dec()
Decrements the counter. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
void |
inc()
Increments the counter. |
void |
init(RemoteServerRef serverRef)
Inits this counter with a server reference and sets its count to one. |
java.lang.String |
toString()
|
java.lang.String |
toStringMembers()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int exportId
private int objectId
private int cnt
private RemoteServerRef serverRef
| Constructor Detail |
public HierarchicalDGC.Counter(int exportId,
int objectId)
| Method Detail |
public void init(RemoteServerRef serverRef)
public void inc()
public boolean dec()
RemoteServerRef.unreferenced() method of the server
implementation is called.
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toStringMembers()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||