Class ManagementManager

  • public class ManagementManager
    extends Object
    Management interface for DataNucleus. Management operations and attributes are exposed through this interface that holds statistics linked to a NucleusContext instance.

    The mechanics for starting and stopping JMX servers are not defined here, and must be done by plug-ins, by providing the implementation of ManagementServer. This Manager controls the lifecycle of management servers. A management server is started when an instance of this class is created, and its shutdown when the close operation is invoked The management server startup is triggered when the Manager gets enabled.

    • Field Detail

      • random

        public static final Random random
        Random number generator, for use when needing unique names.
    • Constructor Detail

      • ManagementManager

        public ManagementManager​(NucleusContext ctxt)
        Constructor for Management.
        ctxt - the NucleusContext that we are operating for
    • Method Detail

      • getInstanceName

        public String getInstanceName()
        Instance name for this manager instance.
        Instance name
      • getDomainName

        public String getDomainName()
        Domain name for this manager instance.
        Domain name
      • registerMBean

        public void registerMBean​(Object mbean,
                                  String name)
        Register an MBean into the MBeanServer
        mbean - the MBean instance
        name - the mbean name
      • deregisterMBean

        public void deregisterMBean​(String name)
        Deregister an MBean from the MBeanServer
        name - the mbean name
      • isOpen

        public boolean isOpen()
        Whether this Manager is not closed
        true if this Manager is open
      • close

        public void close()
        Close a instance.
        NucleusException - if the manager is closed