public class HadoopClusterManager extends Object
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Close the manager, removes shutdown hook and
 closes all running clusters. | 
| boolean | closeCluster(HadoopCluster cluster)Closes and remove  HadoopClusterfrom
 a manager cache. | 
| protected void | doClose()Bring down and un-register all the running clusters. | 
| HadoopCluster | getCluster(ClusterInfo clusterInfo)Gets and starts the mini cluster. | 
| static HadoopClusterManager | getInstance()Gets the singleton instance of  HadoopClusterManager. | 
| static HadoopClusterManager | getInstance(boolean registerShutdownHook)Gets the singleton instance of  HadoopClusterManager. | 
| void | registerShutdownHook()Register a jvm shutdown hook allowing manager
 to gracefully shutdown clusters in case that
 hasn't already happened. | 
public static HadoopClusterManager getInstance()
HadoopClusterManager.public static HadoopClusterManager getInstance(boolean registerShutdownHook)
HadoopClusterManager.registerShutdownHook - if true register shutdown hookpublic HadoopCluster getCluster(ClusterInfo clusterInfo)
clusterInfo - the info about the clusterpublic boolean closeCluster(HadoopCluster cluster)
HadoopCluster from
 a manager cache.cluster - the Hadoop clusterpublic void close()
public void registerShutdownHook()
protected void doClose()