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 byte
GET_CACHE
static byte
GET_CACHE_RSP
static byte
I_HAVE_SOCK
protected Address
mbr
protected java.util.Set<Address>
mbrs
protected IpAddress
sock_addr
static byte
SUSPECT
protected byte
type
static byte
UNSUSPECT
static byte
WHO_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 interfaceshort
getMagicId()
Returns the magic-ID.FD_SOCK.FdHeader
mbrs(java.util.Set<Address> members)
void
readFrom(java.io.DataInput in)
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 objectFD_SOCK.FdHeader
sockAddress(IpAddress a)
java.lang.String
toString()
static java.lang.String
type2String(byte type)
void
writeTo(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: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
-
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:SizeStreamable
Returns the size (in bytes) of the marshalled object
-
writeTo
public void writeTo(java.io.DataOutput out) 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 in) 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
-
-