org.jgroups.protocols.pbcast

Class GMS.GmsHeader

Enclosing Class:
GMS
Implemented Interfaces:
Cloneable, Externalizable

public static class GMS.GmsHeader
extends Header

Field Summary

static int
CANCEL_MERGE
static int
INSTALL_MERGE_VIEW
static int
JOIN_REQ
static int
JOIN_RSP
static int
LEAVE_REQ
static int
LEAVE_RSP
static int
MERGE_REQ
static int
MERGE_RSP
static int
VIEW

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

GmsHeader()
GmsHeader(int type)
GmsHeader(int type, Address mbr)
Used for JOIN_REQ or LEAVE_REQ header
GmsHeader(int type, View view)
Used for VIEW header
GmsHeader(int type, JoinRsp join_rsp)
Used for JOIN_RSP header

Method Summary

void
readExternal(ObjectInput in)
String
toString()
static String
type2String(int type)
void
writeExternal(ObjectOutput out)

Methods inherited from class org.jgroups.Header

size, toString

Field Details

CANCEL_MERGE

public static final int CANCEL_MERGE
Field Value:
9

INSTALL_MERGE_VIEW

public static final int INSTALL_MERGE_VIEW
Field Value:
8

JOIN_REQ

public static final int JOIN_REQ
Field Value:
1

JOIN_RSP

public static final int JOIN_RSP
Field Value:
2

LEAVE_REQ

public static final int LEAVE_REQ
Field Value:
3

LEAVE_RSP

public static final int LEAVE_RSP
Field Value:
4

MERGE_REQ

public static final int MERGE_REQ
Field Value:
6

MERGE_RSP

public static final int MERGE_RSP
Field Value:
7

VIEW

public static final int VIEW
Field Value:
5

Constructor Details

GmsHeader

public GmsHeader()

GmsHeader

public GmsHeader(int type)

GmsHeader

public GmsHeader(int type,
                 Address mbr)
Used for JOIN_REQ or LEAVE_REQ header

GmsHeader

public GmsHeader(int type,
                 View view)
Used for VIEW header

GmsHeader

public GmsHeader(int type,
                 JoinRsp join_rsp)
Used for JOIN_RSP header

Method Details

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException

toString

public String toString()
Overrides:
toString in interface Header

type2String

public static String type2String(int type)

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException

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