Package org.jgroups.protocols.relay
Class RelayHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.relay.RelayHeader
- All Implemented Interfaces:
Constructable<Header>,SizeStreamable,Streamable
- Since:
- 5.2.15
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRelayHeader(byte type) RelayHeader(byte type, Address final_dest, Address original_sender) -
Method Summary
Modifier and TypeMethodDescriptionaddToSites(String... s) addToVisitedSites(Collection<String> list) protected voidcopy()create()Creates an instance of the class implementing this interfaceshortReturns the magic-ID.getSite()getSites()bytegetType()booleanhasSites()booleanshortoriginalFlags(short fl) Header[]originalHeaders(Header[] hdrs) voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedbooleanreturnEntireCache(boolean b) intReturns the size (in bytes) of the marshalled objectprotected static intsizeOf(Collection<String> list) toString()protected static StringtypeToString(byte type) voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
DATA
public static final byte DATA- See Also:
-
SITE_UNREACHABLE
public static final byte SITE_UNREACHABLE- See Also:
-
MBR_UNREACHABLE
public static final byte MBR_UNREACHABLE- See Also:
-
SITES_UP
public static final byte SITES_UP- See Also:
-
SITES_DOWN
public static final byte SITES_DOWN- See Also:
-
TOPO_REQ
public static final byte TOPO_REQ- See Also:
-
TOPO_RSP
public static final byte TOPO_RSP- See Also:
-
type
protected byte type -
final_dest
-
original_sender
-
sites
-
visited_sites
-
return_entire_cache
protected boolean return_entire_cache -
original_hdrs
-
original_flags
protected short original_flags
-
-
Constructor Details
-
RelayHeader
public RelayHeader() -
RelayHeader
public RelayHeader(byte type) -
RelayHeader
-
-
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 -
getType
public byte getType() -
getFinalDest
-
setFinalDestination
-
getOriginalSender
-
setOriginalSender
-
getSites
-
hasSites
public boolean hasSites() -
returnEntireCache
public boolean returnEntireCache() -
returnEntireCache
-
originalHeaders
-
originalHeaders
-
originalFlags
public short originalFlags() -
originalFlags
-
getSite
-
addToSites
-
addToSites
-
addToVisitedSites
-
addToVisitedSites
-
hasVisitedSites
public boolean hasVisitedSites() -
getVisitedSites
-
copy
-
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
-
typeToString
-
sizeOf
-
assertNonNullSites
protected void assertNonNullSites()
-