Package org.rhq.core.domain.cloud

Examples of org.rhq.core.domain.cloud.Server.addStatus()


        if (serverIds.length > 0) {
            try {
                for (Integer id : serverIds) {
                    Server server = entityManager.find(Server.class, id);
                    if (manualMaintenance) {
                        server.addStatus(Server.Status.MANUAL_MAINTENANCE_MODE);
                    } else {
                        server.clearStatus(Server.Status.MANUAL_MAINTENANCE_MODE);
                    }
                }
            } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.