Package com.massivecraft.mcore.xlib.mongodb.util.management

Examples of com.massivecraft.mcore.xlib.mongodb.util.management.JMException


    @Override
    public void unregisterMBean(String mBeanName) throws JMException {
        try {
            server.unregisterMBean(createObjectName(mBeanName));
        } catch (InstanceNotFoundException e) {
            throw new JMException(e);
        } catch (MBeanRegistrationException e) {
            throw new JMException(e);
        }
    }
View Full Code Here


    @Override
    public void registerMBean(Object mBean, String mBeanName) throws JMException {
        try {
            server.registerMBean(mBean, createObjectName(mBeanName));
        } catch (InstanceAlreadyExistsException e) {
            throw new JMException(e);
        } catch (MBeanRegistrationException e) {
            throw new JMException(e);
        } catch (NotCompliantMBeanException e) {
            throw new JMException(e);
        }
    }
View Full Code Here

    private ObjectName createObjectName(String mBeanName) throws JMException {
        try {
            return new ObjectName(mBeanName);
        } catch (MalformedObjectNameException e) {
            throw new JMException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.massivecraft.mcore.xlib.mongodb.util.management.JMException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.