Spring for Apache Hadoop

org.springframework.yarn.test.support
Class ClusterDelegatingFactoryBean

java.lang.Object
  extended by org.springframework.yarn.test.support.ClusterDelegatingFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<YarnCluster>, org.springframework.beans.factory.InitializingBean

public class ClusterDelegatingFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<YarnCluster>

Delegates to 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.

Author:
Janne Valkealahti

Constructor Summary
ClusterDelegatingFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 YarnCluster getObject()
           
 java.lang.Class<YarnCluster> 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

ClusterDelegatingFactoryBean

public ClusterDelegatingFactoryBean()
Method Detail

getObject

public YarnCluster getObject()
                      throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<YarnCluster>
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<YarnCluster> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<YarnCluster>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<YarnCluster>

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