|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ensemble.Group
An Ensemble Process Group. This class provides a Java wrapper to an Ensemble process group. A group is constructed by providing a set of callbacks performed by Ensemble when certain events occur:
Field Summary | |
static int |
BLOCKED
|
static int |
JOINING
|
static int |
LEAVING
|
static int |
LEFT
|
long |
nat_env
|
static int |
NORMAL
|
static int |
PRE
|
Constructor Summary | |
Group(ensemble.Callbacks cb)
|
Method Summary | |
void |
cast(byte[] msg)
Multicast a message to the group. |
void |
changeProperties(java.lang.String properties)
Request a change of the group-communication stack. |
void |
changeProtocol(java.lang.String protocol_name)
Request a change of the group-communication stack. |
int |
getStatus()
|
static void |
init(java.lang.String[] args)
Initialize the low-level Ensemble C-library. |
void |
join(ensemble.JoinOps jops)
Join a group. |
void |
leave()
Leave a group. |
void |
prompt()
Ask Ensemble to perform a View change. |
void |
rekey()
Request a rekey. |
void |
send(int[] dests,
byte[] msg)
Send a point-to-point message to a list of group members. |
void |
send1(int dest,
byte[] msg)
Send a point-to-point message to a sinle member. |
java.lang.String |
string_of_status(int stat)
|
void |
suspect(int[] suspects)
Tell Ensemble you suspect a list of members. |
void |
xferDone()
Inform Ensemble that state-transfer has been completed at this group member. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PRE
public static final int JOINING
public static final int NORMAL
public static final int BLOCKED
public static final int LEAVING
public static final int LEFT
public long nat_env
Constructor Detail |
public Group(ensemble.Callbacks cb)
Method Detail |
public final java.lang.String string_of_status(int stat)
public int getStatus()
public void join(ensemble.JoinOps jops)
jops
- The join options passed to Ensemble.public void leave()
public void cast(byte[] msg)
msg
- The message bodypublic void send(int[] dests, byte[] msg)
dests
- An array of destinationsmsg
- The message bodypublic void send1(int dest, byte[] msg)
dest
- The destination rankmsg
- The message bodypublic void prompt()
public void suspect(int[] suspects)
suspects
- the list of suspected memberspublic void xferDone()
public void rekey()
public void changeProtocol(java.lang.String protocol_name)
protocol_name
- The new protocolpublic void changeProperties(java.lang.String properties)
properties
- The new propertiespublic static void init(java.lang.String[] args)
args
- The list of command line arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |