|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jgroups.ExtendedReceiverAdapter
org.jgroups.demos.Draw
public class Draw
Shared whiteboard, each new instance joins the same group. Each instance chooses a random color, mouse moves are broadcast to all group members, which then apply them to their canvas
| Constructor Summary | |
|---|---|
Draw(Channel channel)
|
|
Draw(java.lang.String props,
boolean debug,
boolean cummulative,
boolean no_channel,
boolean jmx)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
block()
Called (usually by the FLUSH protocol), as an indication that the member should stop sending messages. |
void |
channelClosed(Channel channel)
|
void |
channelConnected(Channel channel)
|
void |
channelDisconnected(Channel channel)
|
void |
channelReconnected(Address addr)
|
void |
channelShunned()
|
void |
clearPanel()
|
java.lang.String |
getGroupName()
|
void |
go()
|
static void |
main(java.lang.String[] args)
|
void |
receive(Message msg)
Called when a message is received. |
void |
sendClearPanelMsg()
|
void |
setGroupName(java.lang.String groupname)
|
void |
stop()
|
void |
unblock()
Called after the FLUSH protocol has unblocked previously blocked senders, and messages can be sent again. |
void |
viewAccepted(View v)
Called when a change in membership has occurred. |
| Methods inherited from class org.jgroups.ExtendedReceiverAdapter |
|---|
getState, getState, getState, getState, setState, setState, setState, setState, suspect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Draw(java.lang.String props,
boolean debug,
boolean cummulative,
boolean no_channel,
boolean jmx)
throws java.lang.Exception
java.lang.Exception
public Draw(Channel channel)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupname)
public static void main(java.lang.String[] args)
public void go()
throws java.lang.Exception
java.lang.Exceptionpublic void receive(Message msg)
MessageListener
receive in interface MessageListenerreceive in class ExtendedReceiverAdapterpublic void viewAccepted(View v)
MembershipListener
viewAccepted in interface MembershipListenerviewAccepted in class ExtendedReceiverAdapterpublic void block()
MembershipListenerExtendedMembershipListener.unblock().
Note that block() is the equivalent of reception of a BlockEvent in the pull mode.
block in interface MembershipListenerblock in class ExtendedReceiverAdapterpublic void unblock()
ExtendedMembershipListener
unblock in interface ExtendedMembershipListenerunblock in class ExtendedReceiverAdapterpublic void clearPanel()
public void sendClearPanelMsg()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void stop()
public void channelConnected(Channel channel)
channelConnected in interface ChannelListenerpublic void channelDisconnected(Channel channel)
channelDisconnected in interface ChannelListenerpublic void channelClosed(Channel channel)
channelClosed in interface ChannelListenerpublic void channelShunned()
channelShunned in interface ChannelListenerpublic void channelReconnected(Address addr)
channelReconnected in interface ChannelListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||