org.apache.whirr
Class DynamicClusterControllerFactory

java.lang.Object
  extended by org.apache.whirr.ClusterControllerFactory
      extended by 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.


Constructor Summary
DynamicClusterControllerFactory()
           
 
Method Summary
 Set<String> availableServices()
          Return a collection of available ClusterController names.
 void bind(ClusterController clusterController)
           
 ClusterController create(String serviceName)
          Create an instance of a ClusterController according to the given name.
 void unbind(ClusterController clusterController)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicClusterControllerFactory

public DynamicClusterControllerFactory()
Method Detail

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.