|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.hadoop.test.support.HadoopClusterManager
public class HadoopClusterManager
Manager handling running mini clusters for tests.
Method Summary | |
---|---|
void |
close()
Close the manager, removes shutdown hook and closes all running clusters. |
boolean |
closeCluster(HadoopCluster cluster)
Closes and remove HadoopCluster from
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HadoopClusterManager getInstance()
HadoopClusterManager
.
public static HadoopClusterManager getInstance(boolean registerShutdownHook)
HadoopClusterManager
.
registerShutdownHook
- if true register shutdown hook
public HadoopCluster getCluster(ClusterInfo clusterInfo)
clusterInfo
- the info about the cluster
public boolean closeCluster(HadoopCluster cluster)
HadoopCluster
from
a manager cache.
cluster
- the Hadoop cluster
public void close()
public void registerShutdownHook()
protected void doClose()
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |