public static class STREAMING_STATE_TRANSFER.StateHeader extends Header
| Modifier and Type | Field and Description |
|---|---|
static byte |
STATE_PART |
static byte |
STATE_REQ |
static byte |
STATE_RSP |
| Constructor and Description |
|---|
StateHeader() |
StateHeader(byte type,
Address sender,
IpAddress bind_addr,
Digest digest,
String state_id) |
StateHeader(byte type,
Address sender,
long id,
Digest digest) |
StateHeader(byte type,
Address sender,
String state_id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Digest |
getDigest() |
String |
getStateId() |
int |
getType() |
int |
hashCode() |
void |
readFrom(DataInputStream 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.
|
String |
toString() |
void |
writeTo(DataOutputStream 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 int getType()
public Digest getDigest()
public String getStateId()
public void writeTo(DataOutputStream out) throws IOException
StreamableIOExceptionpublic void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
Streamablepublic int size()
HeaderCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.