Package org.jgroups.protocols.pbcast
Class FLUSH.FlushHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.pbcast.FLUSH.FlushHeader
- All Implemented Interfaces:
Constructable<Header>,SizeStreamable,Streamable
- Enclosing class:
FLUSH
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byteprotected byteprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an instance of the class implementing this interfaceshortReturns the magic-ID.bytegetType()longvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintReturns the size (in bytes) of the marshalled objecttoString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
START_FLUSH
public static final byte START_FLUSH- See Also:
-
STOP_FLUSH
public static final byte STOP_FLUSH- See Also:
-
FLUSH_COMPLETED
public static final byte FLUSH_COMPLETED- See Also:
-
ABORT_FLUSH
public static final byte ABORT_FLUSH- See Also:
-
FLUSH_BYPASS
public static final byte FLUSH_BYPASS- See Also:
-
FLUSH_RECONCILE
public static final byte FLUSH_RECONCILE- See Also:
-
FLUSH_RECONCILE_OK
public static final byte FLUSH_RECONCILE_OK- See Also:
-
FLUSH_NOT_COMPLETED
public static final byte FLUSH_NOT_COMPLETED- See Also:
-
type
protected byte type -
viewID
protected long viewID
-
-
Constructor Details
-
FlushHeader
public FlushHeader() -
FlushHeader
public FlushHeader(byte type) -
FlushHeader
public FlushHeader(byte type, long viewID)
-
-
Method Details
-
getMagicId
public short getMagicId()Description copied from class:HeaderReturns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same- Specified by:
getMagicIdin classHeader
-
create
Description copied from interface:ConstructableCreates an instance of the class implementing this interface -
getType
public byte getType() -
getViewID
public long getViewID() -
serializedSize
public int serializedSize()Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object -
toString
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Throws:
IOException
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
IOException
-