public class JoinRsp extends Object implements SizeStreamable, Constructable<JoinRsp>
Modifier and Type | Field and Description |
---|---|
protected Digest |
digest |
protected static byte |
DIGEST_PRESENT |
protected String |
fail_reason |
protected static byte |
FAIL_REASON_PRESENT |
protected View |
view |
protected static byte |
VIEW_PRESENT
only set if JOIN failed, e.g.
|
Constructor and Description |
---|
JoinRsp() |
JoinRsp(String fail_reason) |
JoinRsp(View v,
Digest d) |
Modifier and Type | Method and Description |
---|---|
Supplier<? extends JoinRsp> |
create()
Creates an instance of the class implementing this interface
|
Digest |
getDigest() |
String |
getFailReason() |
View |
getView() |
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize()
Returns the size (in bytes) of the marshalled object
|
JoinRsp |
setFailReason(String r) |
String |
toString() |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected View view
protected Digest digest
protected String fail_reason
protected static final byte VIEW_PRESENT
protected static final byte DIGEST_PRESENT
protected static final byte FAIL_REASON_PRESENT
public JoinRsp()
public JoinRsp(String fail_reason)
public Supplier<? extends JoinRsp> create()
Constructable
create
in interface Constructable<JoinRsp>
public View getView()
public Digest getDigest()
public String getFailReason()
public void writeTo(DataOutput out) throws Exception
Streamable
writeTo
in interface Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
readFrom
in interface Streamable
Exception
public int serializedSize()
SizeStreamable
serializedSize
in interface SizeStreamable
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.