public class ClusterControllerFactory extends Object
ClusterController instances.
Implementation note. ClusterController implementations are discovered
using a Service Provider
Interface (SPI), described in ServiceLoader.
| Constructor and Description |
|---|
ClusterControllerFactory() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public ClusterController create(String serviceName)
ClusterController according to the given
name. If the name is null then the default ClusterController
is returned.public Set<String> availableServices()
ClusterController names.Copyright © 2010–2016 Cloudera. All rights reserved.