org.springframework.data.hadoop.test.support
Class HadoopClusterDelegatingFactoryBean
java.lang.Object
org.springframework.data.hadoop.test.support.HadoopClusterDelegatingFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<HadoopCluster>, org.springframework.beans.factory.InitializingBean
public class HadoopClusterDelegatingFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.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
org.springframework.test.annotation.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 java.lang.Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean<HadoopCluster>
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<HadoopCluster> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<HadoopCluster>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean<HadoopCluster>
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
setId
public void setId(java.lang.String id)
setNodes
public void setNodes(int nodes)