Spring for Apache Hadoop

org.springframework.yarn.test.support
Class ConfigurationDelegatingFactoryBean

java.lang.Object
  extended by org.springframework.yarn.test.support.ConfigurationDelegatingFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.apache.hadoop.conf.Configuration>, org.springframework.beans.factory.InitializingBean

public class ConfigurationDelegatingFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<org.apache.hadoop.conf.Configuration>

Simple factory bean delegating retrieval of hadoop Configuration from a StandaloneYarnCluster.

Author:
Janne Valkealahti

Constructor Summary
ConfigurationDelegatingFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.apache.hadoop.conf.Configuration getObject()
           
 java.lang.Class<org.apache.hadoop.conf.Configuration> getObjectType()
           
 boolean isSingleton()
           
 void setCluster(YarnCluster cluster)
          Sets the StandaloneYarnCluster
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationDelegatingFactoryBean

public ConfigurationDelegatingFactoryBean()
Method Detail

getObject

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

getObjectType

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

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.conf.Configuration>

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

setCluster

public void setCluster(YarnCluster cluster)
Sets the StandaloneYarnCluster

Parameters:
cluster - the StandaloneYarnCluster

Spring for Apache Hadoop