public static class StreamingStateTransfer.StateHeader extends Header
限定符和类型 | 字段和说明 |
---|---|
protected IpAddress |
bind_addr |
protected Digest |
digest |
static byte |
STATE_EOF |
static byte |
STATE_EX |
static byte |
STATE_PART |
static byte |
STATE_REQ |
static byte |
STATE_RSP |
protected byte |
type |
构造器和说明 |
---|
StreamingStateTransfer.StateHeader() |
StreamingStateTransfer.StateHeader(byte type) |
StreamingStateTransfer.StateHeader(byte type,
Digest digest) |
StreamingStateTransfer.StateHeader(byte type,
IpAddress bind_addr,
Digest digest) |
限定符和类型 | 方法和说明 |
---|---|
Digest |
getDigest() |
int |
getType() |
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 |
size()
To be implemented by subclasses.
|
java.lang.String |
toString() |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte STATE_REQ
public static final byte STATE_RSP
public static final byte STATE_PART
public static final byte STATE_EOF
public static final byte STATE_EX
protected byte type
protected Digest digest
protected IpAddress bind_addr
public StreamingStateTransfer.StateHeader()
public StreamingStateTransfer.StateHeader(byte type)
public StreamingStateTransfer.StateHeader(byte type, Digest digest)
public int getType()
public Digest getDigest()
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
java.lang.Exception
public int size()
Header