public class Draw extends ReceiverAdapter implements ActionListener, ChannelListener
| Constructor and Description |
|---|
Draw(Channel channel) |
Draw(Channel channel,
boolean use_state,
long state_timeout) |
Draw(String props,
boolean no_channel,
boolean jmx,
boolean use_state,
long state_timeout,
boolean use_unicasts,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
channelClosed(Channel channel)
Channel has been closed notification callback
|
void |
channelConnected(Channel channel)
Channel has been connected notification callback
|
void |
channelDisconnected(Channel channel)
Channel has been disconnected notification callback
|
void |
clearPanel() |
String |
getGroupName() |
void |
getState(OutputStream ostream)
Allows an application to write a state through a provided OutputStream.
|
void |
go() |
static void |
main(String[] args) |
void |
receive(Message msg)
Called when a message is received.
|
void |
sendClearPanelMsg() |
void |
setGroupName(String groupname) |
void |
setState(InputStream istream)
Allows an application to read a state through a provided InputStream.
|
void |
stop() |
void |
viewAccepted(View v)
Called when a change in membership has occurred.
|
block, suspect, unblockpublic Draw(String props, boolean no_channel, boolean jmx, boolean use_state, long state_timeout, boolean use_unicasts, String name) throws Exception
Exceptionpublic String getGroupName()
public void setGroupName(String groupname)
public static void main(String[] args)
public void receive(Message msg)
ReceiverAdapterreceive in interface MessageListenerreceive in class ReceiverAdapterpublic void viewAccepted(View v)
ReceiverAdapterChannel.connect(String) returns.viewAccepted in interface MembershipListenerviewAccepted in class ReceiverAdapterpublic void getState(OutputStream ostream) throws Exception
ReceiverAdaptergetState in interface MessageListenergetState in class ReceiverAdapterostream - the OutputStreamException - if the streaming fails, any exceptions should be thrown so that the state requester
can re-throw them and let the caller know what happenedOutputStream.close()public void setState(InputStream istream) throws Exception
ReceiverAdaptersetState in interface MessageListenersetState in class ReceiverAdapteristream - the InputStreamException - if the streaming fails, any exceptions should be thrown so that the state requester
can catch them and thus know what happenedInputStream.close()public void clearPanel()
public void sendClearPanelMsg()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void stop()
public void channelConnected(Channel channel)
ChannelListenerchannelConnected in interface ChannelListenerchannel - the channel that has been connectedpublic void channelDisconnected(Channel channel)
ChannelListenerchannelDisconnected in interface ChannelListenerchannel - the disconnected channelpublic void channelClosed(Channel channel)
ChannelListenerchannelClosed in interface ChannelListenerchannel - the closed channelCopyright © 2012 JBoss by Red Hat. All Rights Reserved.