org.springframework.data.hadoop.test.support
Class HadoopClusterDelegatingFactoryBean
java.lang.Object
org.springframework.data.hadoop.test.support.HadoopClusterDelegatingFactoryBean
- All Implemented Interfaces:
- DisposableBean, FactoryBean<HadoopCluster>, InitializingBean
public class HadoopClusterDelegatingFactoryBean
- extends Object
- implements InitializingBean, DisposableBean, FactoryBean<HadoopCluster>
Delegates to HadoopClusterManager for handling lifecycle
of HadoopCluster. This is needed order to clear and shutdown
cluster during the application context refresh if
DirtiesContext is used.
- Author:
- Janne Valkealahti
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HadoopClusterDelegatingFactoryBean
public HadoopClusterDelegatingFactoryBean()
getObject
public HadoopCluster getObject()
throws Exception
- Specified by:
getObject in interface FactoryBean<HadoopCluster>
- Throws:
Exception
getObjectType
public Class<HadoopCluster> getObjectType()
- Specified by:
getObjectType in interface FactoryBean<HadoopCluster>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface FactoryBean<HadoopCluster>
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy in interface DisposableBean
- Throws:
Exception
setId
public void setId(String id)
setNodes
public void setNodes(int nodes)