org.springframework.yarn.test.support
Class ConfigurationDelegatingFactoryBean
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationDelegatingFactoryBean
public ConfigurationDelegatingFactoryBean()
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