protected static class MPerf.MPerfHeader extends Header
Modifier and Type | Field and Description |
---|---|
protected static byte |
ACK |
protected static byte |
CLEAR_RESULTS |
protected static byte |
CONFIG_CHANGE |
protected static byte |
CONFIG_REQ |
protected static byte |
CONFIG_RSP |
protected static byte |
DATA |
protected static byte |
EXIT |
protected static byte |
NEW_CONFIG |
protected static byte |
RESULT |
protected static byte |
SENDING_DONE |
protected long |
seqno |
protected static byte |
START_SENDING |
protected byte |
type |
Constructor and Description |
---|
MPerfHeader() |
MPerfHeader(byte type) |
MPerfHeader(byte type,
long seqno) |
Modifier and Type | Method and Description |
---|---|
Supplier<? extends Header> |
create()
Creates an instance of the class implementing this interface
|
short |
getMagicId()
Returns the magic-ID.
|
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() |
protected static String |
typeToString(byte type) |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
protected static final byte DATA
protected static final byte START_SENDING
protected static final byte SENDING_DONE
protected static final byte RESULT
protected static final byte CLEAR_RESULTS
protected static final byte CONFIG_CHANGE
protected static final byte CONFIG_REQ
protected static final byte CONFIG_RSP
protected static final byte EXIT
protected static final byte NEW_CONFIG
protected static final byte ACK
protected byte type
protected long seqno
public MPerfHeader()
public MPerfHeader(byte type)
public MPerfHeader(byte type, long seqno)
public short getMagicId()
Header
getMagicId
in class Header
public Supplier<? extends Header> create()
Constructable
public int serializedSize()
SizeStreamable
public void writeTo(DataOutput out) throws Exception
Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
protected static String typeToString(byte type)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.