|
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.yarn.test.support.YarnClusterManager
public class YarnClusterManager
Manager handling running mini clusters for tests.
Method Summary | |
---|---|
void |
close()
Close the manager, removes shutdown hook and closes all running clusters. |
boolean |
closeCluster(YarnCluster cluster)
Closes and remove YarnCluster from
a manager cache. |
protected void |
doClose()
Bring down and un-register all the running clusters. |
YarnCluster |
getCluster(ClusterInfo clusterInfo)
Gets and starts the mini cluster. |
static YarnClusterManager |
getInstance()
Gets the singleton instance of YarnClusterManager . |
static YarnClusterManager |
getInstance(boolean registerShutdownHook)
Gets the singleton instance of YarnClusterManager . |
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 YarnClusterManager getInstance()
YarnClusterManager
.
public static YarnClusterManager getInstance(boolean registerShutdownHook)
YarnClusterManager
.
registerShutdownHook
- if true register shutdown hook
public YarnCluster getCluster(ClusterInfo clusterInfo)
clusterInfo
- the info about the cluster
public boolean closeCluster(YarnCluster cluster)
YarnCluster
from
a manager cache.
cluster
- the Yarn 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 |