Class 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
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StompDraw

        public StompDraw​(java.lang.String host,
                         java.lang.String port)
                  throws java.lang.Exception
        Throws:
        java.lang.Exception
    • 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 interface StompConnection.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 interface StompConnection.Listener
      • clearPanel

        public void clearPanel()
      • sendClearPanelMsg

        public void sendClearPanelMsg()
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • stop

        public void stop()