Spring for Apache Hadoop

org.springframework.data.hadoop.test.support
Class HadoopClusterDelegatingFactoryBean

java.lang.Object
  extended by 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

Constructor Summary
HadoopClusterDelegatingFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 HadoopCluster getObject()
           
 java.lang.Class<HadoopCluster> getObjectType()
           
 boolean isSingleton()
           
 void setId(java.lang.String id)
           
 void setNodes(int nodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopClusterDelegatingFactoryBean

public HadoopClusterDelegatingFactoryBean()
Method Detail

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)

Spring for Apache Hadoop