Package org.apache.whirr

Examples of org.apache.whirr.ClusterControllerFactory


    if (System.getProperty("config") != null) {
      config.addConfiguration(new PropertiesConfiguration(System.getProperty("config")));
    }
    config.addConfiguration(new PropertiesConfiguration("whirr-ganglia-test.properties"));
    clusterSpec = ClusterSpec.withTemporaryKeys(config);
    controller = new ClusterControllerFactory().create(clusterSpec.getServiceName());
   
    cluster = controller.launchCluster(clusterSpec);
  }
View Full Code Here


public class AbstractClusterCommandTest {

  @Test
  public void testOverrides() throws Exception {
    AbstractClusterCommand clusterCommand = new AbstractClusterCommand("name",
        "description", new ClusterControllerFactory()) {
      @Override
      public int run(InputStream in, PrintStream out, PrintStream err,
          List<String> args) throws Exception {
        return 0;
      }
View Full Code Here

   * warning).
   */
  @Test
  public void testCreateServerWithInvalidClusterControllerName() throws Exception {
    AbstractClusterCommand clusterCommand = new AbstractClusterCommand("name",
        "description", new ClusterControllerFactory()) {
      @Override
      public int run(InputStream in, PrintStream out, PrintStream err,
          List<String> args) throws Exception {
        return 0;
      }
View Full Code Here

  @Test(timeout = TestConstants.ITEST_TIMEOUT)
  public void testNoRemoteExecutionOverlap() throws Exception {
    ClusterSpec spec = getTestClusterSpec();
    ClusterController controller =
      (new ClusterControllerFactory()).create(spec.getServiceName());

    try {
      controller.launchCluster(spec);
      Map<? extends NodeMetadata, ExecResponse> responseMap = controller.runScriptOnNodesMatching(
        spec,
View Full Code Here

    if (System.getProperty("config") != null) {
      config.addConfiguration(new PropertiesConfiguration(System.getProperty("config")));
    }
    config.addConfiguration(new PropertiesConfiguration("whirr-zookeeper-test.properties"));
    clusterSpec = ClusterSpec.withTemporaryKeys(config);
    controller = new ClusterControllerFactory().create(clusterSpec.getServiceName());
   
    cluster = controller.launchCluster(clusterSpec);
    hosts = ZooKeeperCluster.getHosts(cluster);
  }
View Full Code Here

* A command to destroy a running cluster (terminate and cleanup).
*/
public class DestroyClusterCommand extends AbstractClusterCommand {

  public DestroyClusterCommand() throws IOException {
    this(new ClusterControllerFactory());
  }
View Full Code Here

    .accepts("script", "Path to script file to execute.")
    .withRequiredArg()
    .ofType(String.class);

  public RunScriptCommand() {
    this(new ClusterControllerFactory());
  }
View Full Code Here

* A command to restart the cluster services
*/
public class RestartServicesCommand extends RoleLifecycleCommand {

  public RestartServicesCommand() throws IOException {
    this(new ClusterControllerFactory());
  }
View Full Code Here

  Set<String> testedComputeProviders = ImmutableSet.of("aws-ec2",
      "cloudservers-us", "cloudservers-uk", "byon");

  public ListProvidersCommand() {
    super("list-providers", "Show a list of the supported providers",
        new ClusterControllerFactory());
  }
View Full Code Here

* A command to stop the cluster services
*/
public class StopServicesCommand extends RoleLifecycleCommand {

  public StopServicesCommand() throws IOException {
    this(new ClusterControllerFactory());
  }
View Full Code Here

TOP

Related Classes of org.apache.whirr.ClusterControllerFactory

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.