org.jgroups.demos
public class Topology extends Frame implements WindowListener, MembershipListener
A nice demo is to start a number of Topology instances at the same time. All of them will be blue (all are coordinators since they don't find each other). Then the MERGE2 protocol sets in and only one will retain its coordinator role.
UNKNOWN: Needs to be ported to Swing.
Constructor Summary | |
---|---|
Topology() |
Method Summary | |
---|---|
void | addNode(Object member) |
void | block() |
void | coordinatorChosen() |
void | drawNode(Graphics g, int x, int y, String label, int style) |
void | drawTopology(Graphics g) |
static void | main(String[] args) |
void | paint(Graphics g) |
void | removeNode(Object member) |
void | setState(Vector mbrs) |
void | start() |
void | suspect(Address suspected_mbr) |
void | viewAccepted(View view) |
void | windowActivated(WindowEvent e) |
void | windowClosed(WindowEvent e) |
void | windowClosing(WindowEvent e) |
void | windowDeactivated(WindowEvent e) |
void | windowDeiconified(WindowEvent e) |
void | windowIconified(WindowEvent e) |
void | windowOpened(WindowEvent e) |