public static class StreamingStateTransfer.StateHeader extends Header
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
StateHeader() |
StateHeader(byte type) |
StateHeader(byte type,
Digest digest) |
StateHeader(byte type,
IpAddress bind_addr,
Digest digest) |
Modifier and Type | Method and Description |
---|---|
Supplier<? extends Header> |
create()
Creates an instance of the class implementing this interface
|
Digest |
getDigest() |
short |
getMagicId()
Returns the magic-ID.
|
int |
getType() |
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
|
String |
toString() |
void |
writeTo(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 StateHeader()
public StateHeader(byte type)
public StateHeader(byte type, Digest digest)
public short getMagicId()
Header
getMagicId
in class Header
public Supplier<? extends Header> create()
Constructable
public int getType()
public Digest getDigest()
public void writeTo(DataOutput out) throws Exception
Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
public int serializedSize()
SizeStreamable
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.