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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected PhysicalAddressprotected MERGE3.MergeHeader.Typeprotected ViewId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMergeHeader(MERGE3.MergeHeader.Type type, ViewId view_id, String logical_name, PhysicalAddress physical_addr) -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an instance of the class implementing this interfacestatic MERGE3.MergeHeadercreateInfo(ViewId view_id, String logical_name, PhysicalAddress physical_addr) static MERGE3.MergeHeaderstatic MERGE3.MergeHeadershortReturns the magic-ID.voidRead 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 outstream) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
type
-
view_id
-
logical_name
-
physical_addr
-
-
Constructor Details
-
MergeHeader
public MergeHeader() -
MergeHeader
protected MergeHeader(MERGE3.MergeHeader.Type type, ViewId view_id, String logical_name, PhysicalAddress physical_addr)
-
-
Method Details
-
createInfo
public static MERGE3.MergeHeader createInfo(ViewId view_id, String logical_name, PhysicalAddress physical_addr) -
createViewRequest
-
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
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
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:
IOExceptionClassNotFoundException
-
toString
-