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 classMERGE3.MergeHeader.Type
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringlogical_nameprotected PhysicalAddressphysical_addrprotected MERGE3.MergeHeader.Typetypeprotected ViewIdview_id
-
Constructor Summary
Constructors Modifier Constructor Description MergeHeader()protectedMergeHeader(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.MergeHeadercreateInfo(ViewId view_id, java.lang.String logical_name, PhysicalAddress physical_addr)static MERGE3.MergeHeadercreateViewRequest()static MERGE3.MergeHeadercreateViewResponse()shortgetMagicId()Returns the magic-ID.voidreadFrom(java.io.DataInput instream)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedintserializedSize()Returns the size (in bytes) of the marshalled objectjava.lang.StringtoString()voidwriteTo(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:HeaderReturns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same- Specified by:
getMagicIdin classHeader
-
create
public java.util.function.Supplier<? extends Header> create()
Description copied from interface:ConstructableCreates an instance of the class implementing this interface
-
serializedSize
public int serializedSize()
Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object
-
writeTo
public void writeTo(java.io.DataOutput outstream) throws java.io.IOExceptionDescription 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:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput instream) throws java.io.IOException, java.lang.ClassNotFoundExceptionDescription copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-