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