Class JMXService

  • All Implemented Interfaces:
    IService

    public class JMXService
    extends java.lang.Object
    implements IService
    • Constructor Summary

      Constructors 
      Constructor Description
      JMXService()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void deregisterMBean​(java.lang.String name)
      function for deregistering MBean.
      ServiceType getID()
      Get the name of the the service.
      static void registerMBean​(java.lang.Object mbean, java.lang.String name)
      function for registering MBean.
      void start()
      Start current service.
      void stop()
      Stop current service.
      • Methods inherited from class java.lang.Object

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

      • JMXService

        public JMXService()
    • Method Detail

      • registerMBean

        public static void registerMBean​(java.lang.Object mbean,
                                         java.lang.String name)
        function for registering MBean.
      • deregisterMBean

        public static void deregisterMBean​(java.lang.String name)
        function for deregistering MBean.
      • getID

        public ServiceType getID()
        Description copied from interface: IService
        Get the name of the the service.
        Specified by:
        getID in interface IService
        Returns:
        current service name
      • start

        public void start()
        Description copied from interface: IService
        Start current service.
        Specified by:
        start in interface IService
      • stop

        public void stop()
        Description copied from interface: IService
        Stop current service. If current service uses thread or thread pool, current service should guarantee to putBack thread or thread pool.
        Specified by:
        stop in interface IService