public class ClusterDelegatingFactoryBean extends java.lang.Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<YarnCluster>
YarnClusterManager
for handling lifecycle
of YarnCluster
. This is needed order to clear and shutdown
cluster during the application context refresh if
org.springframework.test.annotation.DirtiesContext
is used.Constructor and Description |
---|
ClusterDelegatingFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
YarnCluster |
getObject() |
java.lang.Class<YarnCluster> |
getObjectType() |
boolean |
isSingleton() |
void |
setId(java.lang.String id) |
void |
setNodes(int nodes) |
public YarnCluster getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<YarnCluster>
java.lang.Exception
public java.lang.Class<YarnCluster> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<YarnCluster>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<YarnCluster>
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void destroy() throws java.lang.Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
java.lang.Exception
public void setId(java.lang.String id)
public void setNodes(int nodes)