Class JmxClient

java.lang.Object
de.hybris.platform.jmx.JmxClient

public class JmxClient extends Object
JMX utilities
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A helper class to analyze the command line and create a JMXServiceURL.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
     
    static void
    restartWrapper(int pid)
    restarts tomcat running with Tanukiwrapper on given pid if it was the tomcat that was started from this machine (it checks if the pid of the connected instance matches the pid given as argument.)

    Methods inherited from class java.lang.Object

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

    • JmxClient

      public JmxClient()
  • Method Details

    • restartWrapper

      public static void restartWrapper(int pid) throws Exception
      restarts tomcat running with Tanukiwrapper on given pid if it was the tomcat that was started from this machine (it checks if the pid of the connected instance matches the pid given as argument.)
      Throws:
      Exception
    • main

      public static void main(String[] args)
      Parameters:
      args - the command line arguments: must be -url <jmx-url>, or -port <port-number> [-host <host-or-ip], or -pid , or -help