Class ClientGui

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, NotificationListener

public class ClientGui extends JPanel implements NotificationListener
Swing GUI that connects to a Java process via JMX and allows the user to view and modify the Log4j 2 configuration, as well as monitor status logs.
See Also:
  • Constructor Details

  • Method Details

    • handleNotification

      public void handleNotification(Notification notif, Object paramObject)
      Specified by:
      handleNotification in interface NotificationListener
    • main

      public static void main(String[] args) throws Exception
      Connects to the specified location and shows this panel in a window.

      Useful links: http://www.componative.com/content/controller/developer/insights /jconsole3/

      Parameters:
      args - must have at least one parameter, which specifies the location to connect to. Must be of the form host:port or service:jmx:rmi:///jndi/rmi://<host>:<port>/jmxrmi or service:jmx:rmi://<host>:<port>/jndi/rmi://<host>:<port>/jmxrmi
      Throws:
      Exception - if anything goes wrong