org.jgroups.stack

Class StateTransferInfo


public class StateTransferInfo
extends java.lang.Object

Contains parameters for state transfer. Exchanged between channel and STATE_TRANSFER layer. If type is GET_FROM_SINGLE, then the state is retrieved from 'target'. If target is null, then the state will be retrieved from the oldest member (usually the coordinator). If type is GET_FROM_MANY, the the state is retrieved from 'targets'. If targets is null, then the state is retrieved from all members.

Author:
Bela Ban

Field Summary

static int
GET_FROM_MANY
static int
GET_FROM_SINGLE
Address
requester
Address
target
Vector
targets
int
type

Constructor Summary

StateTransferInfo(int type, Vector targets)
StateTransferInfo(int type, Address target)
StateTransferInfo(Address requester, int type, Address target)

Method Summary

String
toString()

Field Details

GET_FROM_MANY

public static final int GET_FROM_MANY

Field Value:
2


GET_FROM_SINGLE

public static final int GET_FROM_SINGLE

Field Value:
1


requester

public Address requester


target

public Address target


targets

public Vector targets


type

public int type

Constructor Details

StateTransferInfo

public StateTransferInfo(int type,
                         Vector targets)


StateTransferInfo

public StateTransferInfo(int type,
                         Address target)


StateTransferInfo

public StateTransferInfo(Address requester,
                         int type,
                         Address target)

Method Details

toString

public String toString()


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