Package org.jgroups.demos
Class StompDraw
- java.lang.Object
-
- org.jgroups.demos.StompDraw
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.util.EventListener
,StompConnection.Listener
public class StompDraw extends java.lang.Object implements StompConnection.Listener, java.awt.event.ActionListener
Simple STOMP demo client. Use -h and -p to connect to *any* JGroups server (has to have STOMP in the config)- Author:
- Bela Ban, Oct 17 2001
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
clients_dest
protected static java.lang.String
draw_dest
protected StompConnection
stomp_client
-
Constructor Summary
Constructors Constructor Description StompDraw(java.lang.String host, java.lang.String port)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
clearPanel()
void
go()
static void
main(java.lang.String[] args)
void
onInfo(java.util.Map<java.lang.String,java.lang.String> information)
void
onMessage(java.util.Map<java.lang.String,java.lang.String> headers, byte[] buf, int offset, int length)
void
sendClearPanelMsg()
void
stop()
-
-
-
Field Detail
-
stomp_client
protected StompConnection stomp_client
-
draw_dest
protected static final java.lang.String draw_dest
- See Also:
- Constant Field Values
-
clients_dest
protected static final java.lang.String clients_dest
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
go
public void go() throws java.lang.Exception
- Throws:
java.lang.Exception
-
onInfo
public void onInfo(java.util.Map<java.lang.String,java.lang.String> information)
- Specified by:
onInfo
in interfaceStompConnection.Listener
-
onMessage
public void onMessage(java.util.Map<java.lang.String,java.lang.String> headers, byte[] buf, int offset, int length)
- Specified by:
onMessage
in interfaceStompConnection.Listener
-
clearPanel
public void clearPanel()
-
sendClearPanelMsg
public void sendClearPanelMsg()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
stop
public void stop()
-
-