Package org.jgroups.demos
Class StompDraw
java.lang.Object
org.jgroups.demos.StompDraw
- All Implemented Interfaces:
ActionListener,EventListener,StompConnection.Listener
Simple STOMP demo client. Use -h and -p to connect to *any* JGroups server (has to have STOMP in the config)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Colorprivate JButtonprotected static final Stringprivate final Fontprivate final Colorprotected static final Stringprivate JButtonprivate JFrameprivate intprivate intprivate StompDraw.DrawPanelprivate final Randomprotected StompConnectionprivate JPanel -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
num_servers
private int num_servers -
num_clients
private int num_clients -
mainFrame
-
sub_panel
-
panel
-
clear_button
-
leave_button
-
random
-
default_font
-
draw_color
-
background_color
-
servers
-
clients
-
stomp_client
-
draw_dest
- See Also:
-
clients_dest
- See Also:
-
-
Constructor Details
-
StompDraw
- Throws:
Exception
-
-
Method Details
-
main
-
help
static void help() -
selectColor
-
sendToAll
- Throws:
Exception
-
go
- Throws:
Exception
-
setTitle
void setTitle() -
getNumberOfClients
int getNumberOfClients() -
getAllClients
String getAllClients() -
onInfo
- Specified by:
onInfoin interfaceStompConnection.Listener
-
onMessage
- Specified by:
onMessagein interfaceStompConnection.Listener
-
clearPanel
public void clearPanel() -
sendClearPanelMsg
public void sendClearPanelMsg() -
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
stop
public void stop()
-