|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCTL.Measure
CTL.Types.rPointer
public class rPointer
Remote pointer
Field Summary | |
---|---|
private long |
objID
ObjectID |
private PeerID |
pid
Remote PeerID |
private int |
refC
Reference count |
Constructor Summary | |
---|---|
rPointer(long objID,
GroupInfo info)
Generate a new rPointer for an object stored on localhost |
|
rPointer(PeerID pid,
long objID)
Generate a new rPointer |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object foo)
Checks if two objects are equal |
long |
objID()
Retrieve the stored objID |
PeerID |
peerID()
Retrieve the stored PeerID |
void |
read(SerialIn in)
Serial read function |
void |
setObjID(long objID)
Set a new ObjectID |
java.lang.String |
toString()
Retrieve a String representation of this object |
void |
write(SerialOut out)
Serial write function |
Methods inherited from class CTL.Measure |
---|
size |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private PeerID pid
private long objID
private int refC
Constructor Detail |
---|
public rPointer(PeerID pid, long objID)
pid
- Remote pidobjID
- ObjectIDpublic rPointer(long objID, GroupInfo info)
objID
- ObjectIDinfo
- Group information objectMethod Detail |
---|
public boolean equals(java.lang.Object foo)
equals
in class java.lang.Object
foo
- Object to compare to
public java.lang.String toString()
toString
in class java.lang.Object
public long objID()
public void setObjID(long objID)
objID
- ObjectIDpublic PeerID peerID()
public void read(SerialIn in) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
read
in interface Writable
in
- Input stream
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void write(SerialOut out) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, CTLException
write
in interface Writable
out
- Output stream
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |