org.jgroups.protocols.pbcast

Class STABLE.StableHeader

Enclosing Class:
STABLE
Implemented Interfaces:
Externalizable, Streamable

public static class STABLE.StableHeader
extends Header
implements Streamable

Field Summary

static int
STABILITY
static int
STABLE_GOSSIP

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

StableHeader()
StableHeader(int type, Digest digest)

Method Summary

void
readExternal(ObjectInput in)
void
readFrom(DataInputStream in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
long
size()
String
toString()
void
writeExternal(ObjectOutput out)
void
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.

Methods inherited from class org.jgroups.Header

size, toString

Field Details

STABILITY

public static final int STABILITY
Field Value:
2

STABLE_GOSSIP

public static final int STABLE_GOSSIP
Field Value:
1

Constructor Details

StableHeader

public StableHeader()

StableHeader

public StableHeader(int type,
                    Digest digest)

Method Details

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

readFrom

public void readFrom(DataInputStream in)
            throws IOException,
                   IllegalAccessException,
                   InstantiationException
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
Specified by:
readFrom in interface Streamable

size

public long size()
Overrides:
size in interface Header

toString

public String toString()
Overrides:
toString in interface Header

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException

writeTo

public void writeTo(DataOutputStream out)
            throws IOException
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed
Specified by:
writeTo in interface Streamable

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.