Package com.fs.pxe.sfwk.mngmt

Examples of com.fs.pxe.sfwk.mngmt.SystemAdminMBean


        ObjectName adminName = (ObjectName) this.server.getAttribute(new ObjectName("fivesight.pxe:mod=PXE"), "DomainAdminMBean");

        DomainAdminMBean _domainAdminMBean = (DomainAdminMBean) resolveJmx(adminName, DomainAdminMBean.class);
        SystemDescriptor desc = sdb.getDescriptor();
        ObjectName systemName = _domainAdminMBean.getSystem(desc.getName());
        SystemAdminMBean system = (SystemAdminMBean) resolveJmx(systemName, SystemAdminMBean.class);
        if (systemName != null && system != null) {
            logger.info("System '" + desc.getName() + "' already exist.  Undeploying...");
            system.undeploy();
        }

        systemName = _domainAdminMBean.deploySystemBundle(sdb);
        system = (SystemAdminMBean) resolveJmx(systemName, SystemAdminMBean.class);
        system.enable();

        logger.info("System " + sdb.getDescriptor().getName() + " successfully deployed.");
    }
View Full Code Here

TOP

Related Classes of com.fs.pxe.sfwk.mngmt.SystemAdminMBean

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.