org.apache.whirr
Class ByonClusterController
java.lang.Object
org.apache.whirr.ClusterController
org.apache.whirr.ByonClusterController
public class ByonClusterController
- extends ClusterController
Equivalent of ClusterController
, but for execution in BYON mode
("bring your own nodes").
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByonClusterController
public ByonClusterController()
getName
public String getName()
- Overrides:
getName
in class ClusterController
- Returns:
- the unique name of the service.
launchCluster
public Cluster launchCluster(ClusterSpec clusterSpec)
throws IOException,
InterruptedException
- Description copied from class:
ClusterController
- Start the cluster described by
clusterSpec
and block until the
cluster is
available. It is not guaranteed that the service running on the cluster
has started when this method returns.
- Overrides:
launchCluster
in class ClusterController
- Returns:
- an object representing the running cluster
- Throws:
IOException
- if there is a problem while starting the cluster. The
cluster may or may not have started.
InterruptedException
- if the thread is interrupted.
destroyCluster
public void destroyCluster(ClusterSpec clusterSpec)
throws IOException,
InterruptedException
- Description copied from class:
ClusterController
- Stop the cluster and destroy all resources associated with it.
- Overrides:
destroyCluster
in class ClusterController
- Throws:
IOException
- if there is a problem while stopping the cluster. The
cluster may or may not have been stopped.
InterruptedException
- if the thread is interrupted.
destroyInstance
public void destroyInstance(ClusterSpec clusterSpec,
String instanceId)
throws IOException
- Overrides:
destroyInstance
in class ClusterController
- Throws:
IOException
getNodes
public Set<? extends org.jclouds.compute.domain.NodeMetadata> getNodes(ClusterSpec clusterSpec)
throws IOException,
InterruptedException
- Overrides:
getNodes
in class ClusterController
- Throws:
IOException
InterruptedException
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.