org.jgroups.protocols

Class PingHeader

Implemented Interfaces:
Externalizable, Streamable

public class PingHeader
extends Header
implements Streamable

Field Summary

static byte
GET_MBRS_REQ
static byte
GET_MBRS_RSP
PingRsp
arg
byte
type

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

PingHeader()
PingHeader(byte type, PingRsp arg)

Method Summary

void
readExternal(ObjectInput in)
void
readFrom(DataInputStream instream)
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 outstream)
Write the entire state of the current object (including superclasses) to outstream.

Methods inherited from class org.jgroups.Header

size, toString

Field Details

GET_MBRS_REQ

public static final byte GET_MBRS_REQ
Field Value:
1

GET_MBRS_RSP

public static final byte GET_MBRS_RSP
Field Value:
2

arg

public PingRsp arg

type

public byte type

Constructor Details

PingHeader

public PingHeader()

PingHeader

public PingHeader(byte type,
                  PingRsp arg)

Method Details

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

readFrom

public void readFrom(DataInputStream instream)
            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 outstream)
            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.