Class PlatformManagementServer

  • All Implemented Interfaces:
    ManagementServer

    public class PlatformManagementServer
    extends java.lang.Object
    implements ManagementServer
    Wrapper for the JRE "Platform" JMX server.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.management.MBeanServer mbeanServer  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void registerMBean​(java.lang.Object mbean, java.lang.String name)
      Register a MBean into the MBeanServer
      void start()
      Start the Management Server.
      void stop()
      Stop the Management Server.
      void unregisterMBean​(java.lang.String name)
      Unregister a MBean from the MBeanServer
      • Methods inherited from class java.lang.Object

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

      • mbeanServer

        javax.management.MBeanServer mbeanServer
    • Constructor Detail

      • PlatformManagementServer

        public PlatformManagementServer()
    • Method Detail

      • start

        public void start()
        Description copied from interface: ManagementServer
        Start the Management Server. If this operation is invoked while the server is started, this operation is ignored. This operation can also connect to a remote MBeanServer, instead of creating a new MBeanServer instance. This depends on the configuration.
        Specified by:
        start in interface ManagementServer
      • stop

        public void stop()
        Description copied from interface: ManagementServer
        Stop the Management Server. If this operation is invoked while the server is stop, this operation is ignored. This operation can also disconnect from a remote MBeanServer, instead of destroying a MBeanServer instance. This depends on the configuration.
        Specified by:
        stop in interface ManagementServer
      • registerMBean

        public void registerMBean​(java.lang.Object mbean,
                                  java.lang.String name)
        Register a MBean into the MBeanServer
        Specified by:
        registerMBean in interface ManagementServer
        Parameters:
        mbean - the MBean instance
        name - the mbean name
      • unregisterMBean

        public void unregisterMBean​(java.lang.String name)
        Unregister a MBean from the MBeanServer
        Specified by:
        unregisterMBean in interface ManagementServer
        Parameters:
        name - the mbean name