org.apache.whirr
Class ClusterControllerFactory

java.lang.Object
  extended by org.apache.whirr.ClusterControllerFactory
Direct Known Subclasses:
DynamicClusterControllerFactory

public class ClusterControllerFactory
extends Object

This class is used to create ClusterController instances.

Implementation note. ClusterController implementations are discovered using a Service Provider Interface (SPI), described in ServiceLoader.


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

Constructor Detail

ClusterControllerFactory

public ClusterControllerFactory()
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.


availableServices

public Set<String> availableServices()
Return a collection of available ClusterController names.

Returns:
the available service names


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.