Package com.vmware.bdd.placement.exception

Examples of com.vmware.bdd.placement.exception.PlacementException


      filteredHosts.put(PlacementUtil.NO_DATASTORE_HOSTS, Arrays.asList("host5"));
      filteredHosts.put(PlacementUtil.NO_DATASTORE_HOSTS_NODE_GROUP, Arrays.asList("worker"));

      filteredHosts.put(PlacementUtil.OUT_OF_SYNC_HOSTS, Arrays.asList("host3", "host4"));

      PlacementException pe = PlacementException.PLACEMENT_ERROR(
            PlacementException.OUT_OF_STORAGE_ON_HOST("host1"), placedNodes, filteredHosts);
      System.out.println(pe.getMessage());

      Assert.assertEquals(pe.getMessage(),
            "Cannot find enough storage on host host1. Possible fixes:\n" +
            "You must synchronize the time of the following hosts [host3, host4] with the Serengeti Management Server to use them.\n" +
                  "You must add these hosts [hbase5-worker-01, hbase5-worker-02] to the network [defaultNetwork, dhcp] to use them.\n" +
                  "You must add datastores on these hosts [host5] to use them with the node group [worker].\n" +
                  "Current node placement plan:\n" +
View Full Code Here

TOP

Related Classes of com.vmware.bdd.placement.exception.PlacementException

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.