public class ByonClusterController extends ClusterController
ClusterController, but for execution in BYON mode
("bring your own nodes").handlerMapFactory| Constructor and Description |
|---|
ByonClusterController() |
ByonClusterController(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute,
ClusterStateStoreFactory stateStoreFactory) |
| Modifier and Type | Method and Description |
|---|---|
Cluster |
bootstrapCluster(ClusterSpec clusterSpec)
Provisions the hardware for a BYON cluster.
|
Cluster |
configureServices(ClusterSpec clusterSpec,
Cluster cluster,
Set<String> targetRoles,
Set<String> targetInstanceIds)
Configures cluster services for a BYON cluster.
|
void |
destroyCluster(ClusterSpec clusterSpec)
Destroys a whirr BYON cluster.
|
void |
destroyInstance(ClusterSpec clusterSpec,
String instanceId) |
String |
getName() |
Set<? extends org.jclouds.compute.domain.NodeMetadata> |
getNodes(ClusterSpec clusterSpec) |
Map<? extends org.jclouds.compute.domain.NodeMetadata,org.jclouds.compute.domain.ExecResponse> |
runScriptOnNodesMatching(ClusterSpec spec,
com.google.common.base.Predicate<org.jclouds.compute.domain.NodeMetadata> condition,
org.jclouds.scriptbuilder.domain.Statement statement) |
cleanupCluster, cleanupCluster, configureServices, configureServices, defaultRunScriptOptionsForSpec, destroyCluster, getClusterStateStore, getCompute, getHandlerMapFactory, getInstances, getInstances, launchCluster, runningInGroup, runScriptOnNodesMatching, setHandlerMapFactory, startServices, startServices, startServices, stopServices, stopServices, stopServicespublic ByonClusterController()
public ByonClusterController(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute, ClusterStateStoreFactory stateStoreFactory)
public String getName()
getName in class ClusterControllerpublic void destroyCluster(ClusterSpec clusterSpec) throws IOException, InterruptedException
destroyCluster in class ClusterControllerIOException - if there is a problem while stopping the cluster. The cluster may
or may not have been stopped.InterruptedException - if the thread is interrupted.public Cluster bootstrapCluster(ClusterSpec clusterSpec) throws IOException, InterruptedException
bootstrapCluster in class ClusterControllerIOExceptionInterruptedExceptionpublic Cluster configureServices(ClusterSpec clusterSpec, Cluster cluster, Set<String> targetRoles, Set<String> targetInstanceIds) throws IOException, InterruptedException
configureServices in class ClusterControllerIOExceptionInterruptedExceptionpublic Map<? extends org.jclouds.compute.domain.NodeMetadata,org.jclouds.compute.domain.ExecResponse> runScriptOnNodesMatching(ClusterSpec spec, com.google.common.base.Predicate<org.jclouds.compute.domain.NodeMetadata> condition, org.jclouds.scriptbuilder.domain.Statement statement) throws IOException, org.jclouds.compute.RunScriptOnNodesException
runScriptOnNodesMatching in class ClusterControllerIOExceptionorg.jclouds.compute.RunScriptOnNodesExceptionpublic void destroyInstance(ClusterSpec clusterSpec, String instanceId) throws IOException
destroyInstance in class ClusterControllerIOExceptionpublic Set<? extends org.jclouds.compute.domain.NodeMetadata> getNodes(ClusterSpec clusterSpec) throws IOException, InterruptedException
getNodes in class ClusterControllerIOExceptionInterruptedExceptionCopyright © 2010–2016 Cloudera. All rights reserved.