org.apache.whirr
Class ClusterControllerFactory
java.lang.Object
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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterControllerFactory
public ClusterControllerFactory()
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.