org.apache.whirr
Class DynamicClusterControllerFactory
java.lang.Object
org.apache.whirr.ClusterControllerFactory
org.apache.whirr.DynamicClusterControllerFactory
public class DynamicClusterControllerFactory
- extends ClusterControllerFactory
A Dynamic Controller Factory.
This Factory can be used inside dynamic environments and leverage their dynamic nature.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicClusterControllerFactory
public DynamicClusterControllerFactory()
create
public ClusterController create(String serviceName)
- Create an instance of a
ClusterController
according to the given
name. If the name is null
then the default ClusterController
is returned.
- Overrides:
create
in class ClusterControllerFactory
availableServices
public Set<String> availableServices()
- Return a collection of available
ClusterController
names.
- Overrides:
availableServices
in class ClusterControllerFactory
- Returns:
- the available service names
bind
public void bind(ClusterController clusterController)
unbind
public void unbind(ClusterController clusterController)
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.