|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgroup.relacs.types.IIDImpl
public final class IIDImpl
Instances of this class uniquely identify invocations issued by a client. Each invocation identifier is composed of a virtual machine identifier, identifying the client, and a progressive counter used to distinguish among invocations performed by the same client.
Constructor Summary | |
---|---|
IIDImpl()
Default public constructor for externalization. |
|
IIDImpl(VMID vmid,
int counter,
int ack)
Constructs a new invocation identifier. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares two objects for content equality. |
int |
getAck()
Returns ack information for this invocation identifier. |
int |
getCounter()
Returns the sequential counter identifying this particular invocation. |
VMID |
getVmid()
Returns the VMID of the (client) virtual machine that
generated this invocation. |
int |
hashCode()
Returns a hashcode for the IID . |
void |
readExternal(java.io.ObjectInput in)
Restores the content of this object from the marshalled data contained in the specified input stream. |
java.lang.String |
toString()
Returns a string representation of this object |
void |
writeExternal(java.io.ObjectOutput out)
Write the content of this IID on stream out. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IIDImpl()
public IIDImpl(VMID vmid, int counter, int ack)
Method Detail |
---|
public VMID getVmid()
VMID
of the (client) virtual machine that
generated this invocation.
getVmid
in interface IID
public int getCounter()
getCounter
in interface IID
public int getAck()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
IID
. Two
IID
s will have the same hashcode if they are equal
with respect to their content.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare with
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- the stream to be written
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- the stream to be read
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |