org.jgroups.protocols.pbcast
Class JoinRsp
java.lang.Object
org.jgroups.protocols.pbcast.JoinRsp
- All Implemented Interfaces:
- Streamable
public class JoinRsp
- extends java.lang.Object
- implements Streamable
Result of a JOIN request (sent by the GMS client). Instances of this class are immutable.
Method Summary |
Digest |
getDigest()
|
java.lang.String |
getFailReason()
|
View |
getView()
|
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed |
int |
serializedSize()
|
void |
setFailReason(java.lang.String r)
|
java.lang.String |
toString()
|
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VIEW_PRESENT
protected static final byte VIEW_PRESENT
- See Also:
- Constant Field Values
DIGEST_PRESENT
protected static final byte DIGEST_PRESENT
- See Also:
- Constant Field Values
FAIL_REASON_PRESENT
protected static final byte FAIL_REASON_PRESENT
- See Also:
- Constant Field Values
JoinRsp
public JoinRsp()
JoinRsp
public JoinRsp(View v,
Digest d)
JoinRsp
public JoinRsp(java.lang.String fail_reason)
getView
public View getView()
getDigest
public Digest getDigest()
getFailReason
public java.lang.String getFailReason()
setFailReason
public void setFailReason(java.lang.String r)
writeTo
public void writeTo(java.io.DataOutput out)
throws java.lang.Exception
- Description copied from interface:
Streamable
- Write the entire state of the current object (including superclasses) to outstream.
Note that the output stream must not be closed
- Specified by:
writeTo
in interface Streamable
- Throws:
java.lang.Exception
readFrom
public void readFrom(java.io.DataInput in)
throws java.lang.Exception
- Description copied from interface:
Streamable
- Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
- Specified by:
readFrom
in interface Streamable
- Throws:
java.lang.Exception
serializedSize
public int serializedSize()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.