Package org.jgroups.protocols
Class MERGE3.MergeHeader
- java.lang.Object
-
- org.jgroups.Header
-
- org.jgroups.protocols.MERGE3.MergeHeader
-
- All Implemented Interfaces:
Constructable<Header>
,SizeStreamable
,Streamable
- Enclosing class:
- MERGE3
public static class MERGE3.MergeHeader extends Header
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
MERGE3.MergeHeader.Type
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
logical_name
protected PhysicalAddress
physical_addr
protected MERGE3.MergeHeader.Type
type
protected ViewId
view_id
-
Constructor Summary
Constructors Modifier Constructor Description MergeHeader()
protected
MergeHeader(MERGE3.MergeHeader.Type type, ViewId view_id, java.lang.String logical_name, PhysicalAddress physical_addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Supplier<? extends Header>
create()
Creates an instance of the class implementing this interfacestatic MERGE3.MergeHeader
createInfo(ViewId view_id, java.lang.String logical_name, PhysicalAddress physical_addr)
static MERGE3.MergeHeader
createViewRequest()
static MERGE3.MergeHeader
createViewResponse()
short
getMagicId()
Returns the magic-ID.void
readFrom(java.io.DataInput instream)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedint
serializedSize()
Returns the size (in bytes) of the marshalled objectjava.lang.String
toString()
void
writeTo(java.io.DataOutput outstream)
Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Field Detail
-
type
protected MERGE3.MergeHeader.Type type
-
view_id
protected ViewId view_id
-
logical_name
protected java.lang.String logical_name
-
physical_addr
protected PhysicalAddress physical_addr
-
-
Constructor Detail
-
MergeHeader
public MergeHeader()
-
MergeHeader
protected MergeHeader(MERGE3.MergeHeader.Type type, ViewId view_id, java.lang.String logical_name, PhysicalAddress physical_addr)
-
-
Method Detail
-
createInfo
public static MERGE3.MergeHeader createInfo(ViewId view_id, java.lang.String logical_name, PhysicalAddress physical_addr)
-
createViewRequest
public static MERGE3.MergeHeader createViewRequest()
-
createViewResponse
public static MERGE3.MergeHeader createViewResponse()
-
getMagicId
public short getMagicId()
Description copied from class:Header
Returns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same- Specified by:
getMagicId
in classHeader
-
create
public java.util.function.Supplier<? extends Header> create()
Description copied from interface:Constructable
Creates an instance of the class implementing this interface
-
serializedSize
public int serializedSize()
Description copied from interface:SizeStreamable
Returns the size (in bytes) of the marshalled object
-
writeTo
public void writeTo(java.io.DataOutput outstream) throws java.io.IOException
Description copied from interface:Streamable
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Throws:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput instream) throws java.io.IOException, java.lang.ClassNotFoundException
Description copied from interface:Streamable
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-