Package com.cloud.agent.api

Examples of com.cloud.agent.api.MaintainCommand


    }

    private boolean doMaintain(final long hostId) {
        HostVO host = _hostDao.findById(hostId);
    MaintainAnswer answer = (MaintainAnswer) _agentMgr.easySend(hostId,
        new MaintainCommand());
        if (answer == null || !answer.getResult()) {
            s_logger.warn("Unable to send MaintainCommand to host: " + hostId);
        }

        try {
View Full Code Here


            return true;
        }

        if (host.getHypervisorType() == HypervisorType.KVM) {
      MaintainAnswer answer = (MaintainAnswer) _agentMgr.easySend(hostId,
          new MaintainCommand());
        }

    _agentMgr.disconnectWithoutInvestigation(hostId,
        Event.ShutdownRequested);
        return true;
View Full Code Here

TOP

Related Classes of com.cloud.agent.api.MaintainCommand

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.