org.jgroups.demos.wb
Class Whiteboard
Applet
org.jgroups.demos.wb.Whiteboard
- ActionListener, ComponentListener, FocusListener, MembershipListener, MessageListener
public class Whiteboard
extends Applet
Shared whiteboard: members are represented by rectangles that contain their names and the OS/arch of
the machine they are working on. The boxes can be moved by anyone and by clicking on them, messages can
be sent to specific or all members. Whiteboard is both an application and an applet.
- Bela Ban
groupname
public final String groupname
Whiteboard
public Whiteboard()
Whiteboard
public Whiteboard(String properties)
actionPerformed
public void actionPerformed(ActionEvent e)
addNode
public void addNode(String lbl,
Address addr,
int xloc,
int yloc)
block
public void block()
Block sending and receiving of messages until viewAccepted() is called
- block in interface MembershipListener
componentHidden
public void componentHidden(ComponentEvent e)
componentMoved
public void componentMoved(ComponentEvent e)
componentResized
public void componentResized(ComponentEvent e)
componentShown
public void componentShown(ComponentEvent e)
destroy
public void destroy()
displayMessage
public void displayMessage(String sender,
String msg)
focusGained
public void focusGained(FocusEvent e)
focusLost
public void focusLost(FocusEvent e)
main
public static void main(String[] args)
moveNode
public void moveNode(Node n)
removeNode
public void removeNode(Object addr)
repaint
public void repaint()
viewAccepted
public void viewAccepted(View v)
Called by JGroups to notify the target object of a change of membership.
No long running actions should be done in this callback in the case of Ensemble,
as this would block Ensemble. If some long running action needs to be performed,
it should be done in a separate thread (cf. ../Tests/QuoteServer.java
).
- viewAccepted in interface MembershipListener
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.