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.Stringclients_destprotected static java.lang.Stringdraw_destprotected StompConnectionstomp_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 voidactionPerformed(java.awt.event.ActionEvent e)voidclearPanel()voidgo()static voidmain(java.lang.String[] args)voidonInfo(java.util.Map<java.lang.String,java.lang.String> information)voidonMessage(java.util.Map<java.lang.String,java.lang.String> headers, byte[] buf, int offset, int length)voidsendClearPanelMsg()voidstop()
-
-
-
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:
onInfoin interfaceStompConnection.Listener
-
onMessage
public void onMessage(java.util.Map<java.lang.String,java.lang.String> headers, byte[] buf, int offset, int length)- Specified by:
onMessagein interfaceStompConnection.Listener
-
clearPanel
public void clearPanel()
-
sendClearPanelMsg
public void sendClearPanelMsg()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
stop
public void stop()
-
-