Package org.jgroups.protocols
Class FD_SOCK.FdHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.FD_SOCK.FdHeader
- All Implemented Interfaces:
Constructable<Header>,SizeStreamable,Streamable
- Enclosing class:
FD_SOCK
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an instance of the class implementing this interfaceshortReturns 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()static Stringtype2String(byte type) voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
SUSPECT
public static final byte SUSPECT- See Also:
-
UNSUSPECT
public static final byte UNSUSPECT- See Also:
-
WHO_HAS_SOCK
public static final byte WHO_HAS_SOCK- See Also:
-
I_HAVE_SOCK
public static final byte I_HAVE_SOCK- See Also:
-
GET_CACHE
public static final byte GET_CACHE- See Also:
-
GET_CACHE_RSP
public static final byte GET_CACHE_RSP- See Also:
-
type
protected byte type -
mbr
-
sock_addr
-
mbrs
-
-
Constructor Details
-
FdHeader
public FdHeader() -
FdHeader
public FdHeader(byte type) -
FdHeader
-
FdHeader
-
-
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 -
mbrs
-
sockAddress
-
toString
-
type2String
-
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
-