Package com.vmware.bdd.apitypes

Examples of com.vmware.bdd.apitypes.NodeStatus


            getFromJobExecutionContext(chunkContext,
                  JobConstants.NODE_OPERATION_SUCCESS, Boolean.class);
      if (success != null && !success) {
         throw ClusteringServiceException.CLUSTER_OPERATION_FAILED(clusterName);
      }
      NodeStatus expectedStatus =
            getFromJobExecutionContext(chunkContext,
                  JobConstants.EXPECTED_NODE_STATUS, NodeStatus.class);
      if (expectedStatus != null) {
         logger.info("the node should be in status " + expectedStatus);
         JobUtils.verifyNodeStatus(node, expectedStatus, true);
View Full Code Here


               if (!node.isDisconnected()
                     && node.getStatus().ordinal() >= NodeStatus.VM_READY
                           .ordinal()) {
                  logger.debug("Got node " + node.getVmName() + " status "
                        + nodeReport.getStatus().toString());
                  NodeStatus oldStatus = node.getStatus();
                  switch (nodeReport.getStatus()) {
                  case STARTED:
                     node.setStatus(NodeStatus.SERVICE_READY, false);
                     break;
                  case UNHEALTHY:
View Full Code Here

   public void testSetStatus() {
      NodeEntity node = new NodeEntity();
      node.setVmName(NODE_NAME);
      node.setPowerStatusChanged(false);

      NodeStatus formerStatus = NodeStatus.VM_READY;
      NodeStatus newStatus = NodeStatus.BOOTSTRAP_FAILED;
      node.setStatus(formerStatus, false);
      node.setStatus(newStatus);
      Assert.assertTrue(node.getStatus() == NodeStatus.BOOTSTRAP_FAILED);
      Assert.assertTrue(!node.isPowerStatusChanged());
View Full Code Here

   }

   @Transactional
   private void verifyNodeStatus(ChunkContext chunkContext, String clusterName) {
      Boolean success;
      NodeStatus expectedStatus =
            getFromJobExecutionContext(chunkContext,
                  JobConstants.EXPECTED_NODE_STATUS, NodeStatus.class);
      if (expectedStatus != null) {
         logger.info("all node should be in status " + expectedStatus);
         List<NodeEntity> nodes =
View Full Code Here

TOP

Related Classes of com.vmware.bdd.apitypes.NodeStatus

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.