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
public static class FD_SOCK.FdHeader extends Header
-
-
Field Summary
Fields Modifier and Type Field Description static byteGET_CACHEstatic byteGET_CACHE_RSPstatic byteI_HAVE_SOCKprotected Addressmbrprotected java.util.Set<Address>mbrsprotected IpAddresssock_addrstatic byteSUSPECTprotected bytetypestatic byteUNSUSPECTstatic byteWHO_HAS_SOCK
-
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 interfaceshortgetMagicId()Returns the magic-ID.FD_SOCK.FdHeadermbrs(java.util.Set<Address> members)voidreadFrom(java.io.DataInput in)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 objectFD_SOCK.FdHeadersockAddress(IpAddress a)java.lang.StringtoString()static java.lang.Stringtype2String(byte type)voidwriteTo(java.io.DataOutput out)Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Field Detail
-
SUSPECT
public static final byte SUSPECT
- See Also:
- Constant Field Values
-
UNSUSPECT
public static final byte UNSUSPECT
- See Also:
- Constant Field Values
-
WHO_HAS_SOCK
public static final byte WHO_HAS_SOCK
- See Also:
- Constant Field Values
-
I_HAVE_SOCK
public static final byte I_HAVE_SOCK
- See Also:
- Constant Field Values
-
GET_CACHE
public static final byte GET_CACHE
- See Also:
- Constant Field Values
-
GET_CACHE_RSP
public static final byte GET_CACHE_RSP
- See Also:
- Constant Field Values
-
type
protected byte type
-
mbr
protected Address mbr
-
sock_addr
protected IpAddress sock_addr
-
mbrs
protected java.util.Set<Address> mbrs
-
-
Method Detail
-
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
-
mbrs
public FD_SOCK.FdHeader mbrs(java.util.Set<Address> members)
-
sockAddress
public FD_SOCK.FdHeader sockAddress(IpAddress a)
-
type2String
public static java.lang.String type2String(byte type)
-
serializedSize
public int serializedSize()
Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object
-
writeTo
public void writeTo(java.io.DataOutput out) 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 in) 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
-
-