Package org.jgroups.protocols.pbcast
Class JoinRsp
java.lang.Object
org.jgroups.protocols.pbcast.JoinRsp
- All Implemented Interfaces:
Constructable<JoinRsp>,SizeStreamable,Streamable
Result of a JOIN request (sent by the GMS client). Instances of this class are immutable.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an instance of the class implementing this interfacegetView()voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintReturns the size (in bytes) of the marshalled objecttoString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
view
-
digest
-
fail_reason
-
VIEW_PRESENT
protected static final byte VIEW_PRESENTonly set if JOIN failed, e.g. in AUTH- See Also:
-
DIGEST_PRESENT
protected static final byte DIGEST_PRESENT- See Also:
-
FAIL_REASON_PRESENT
protected static final byte FAIL_REASON_PRESENT- See Also:
-
-
Constructor Details
-
JoinRsp
public JoinRsp() -
JoinRsp
-
JoinRsp
-
-
Method Details
-
create
Description copied from interface:ConstructableCreates an instance of the class implementing this interface- Specified by:
createin interfaceConstructable<JoinRsp>
-
getView
-
getDigest
-
getFailReason
-
setFailReason
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionClassNotFoundException
-
serializedSize
public int serializedSize()Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object- Specified by:
serializedSizein interfaceSizeStreamable
-
toString
-