org.jgroups.stack

Class GossipData

Implemented Interfaces:
Externalizable

public class GossipData
extends java.lang.Object
implements Externalizable

Encapsulates data sent between GossipServer and GossipClient
Author:
Bela Ban Oct 4 2001

Field Summary

static int
GET_REQ
static int
GET_RSP
static int
REGISTER_REQ

Constructor Summary

GossipData()
GossipData(int type, String group, Address mbr, Vector mbrs)

Method Summary

String
getGroup()
Address
getMbr()
Vector
getMbrs()
int
getType()
void
readExternal(ObjectInput in)
String
toString()
static String
type2String(int t)
void
writeExternal(ObjectOutput out)

Field Details

GET_REQ

public static final int GET_REQ
Field Value:
2

GET_RSP

public static final int GET_RSP
Field Value:
3

REGISTER_REQ

public static final int REGISTER_REQ
Field Value:
1

Constructor Details

GossipData

public GossipData()

GossipData

public GossipData(int type,
                  String group,
                  Address mbr,
                  Vector mbrs)

Method Details

getGroup

public String getGroup()

getMbr

public Address getMbr()

getMbrs

public Vector getMbrs()

getType

public int getType()

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

toString

public String toString()

type2String

public static String type2String(int t)

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException

Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.