Class JmxClient


  • public class JmxClient
    extends java.lang.Object
    JMX utilities
    • Nested Class Summary

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

      Constructors 
      Constructor Description
      JmxClient()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.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 Detail

      • JmxClient

        public JmxClient()
    • Method Detail

      • restartWrapper

        public static void restartWrapper​(int pid)
                                   throws java.lang.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:
        java.lang.Exception
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Parameters:
        args - the command line arguments: must be -url , or -port [-host , or -help
        Throws:
        java.lang.Exception