Spring for Apache Hadoop

org.springframework.yarn.container
Class YarnContainerFactoryBean

java.lang.Object
  extended by org.springframework.yarn.container.YarnContainerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<YarnContainer>, org.springframework.beans.factory.InitializingBean

public class YarnContainerFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<YarnContainer>

Simple factory bean for YarnContainers.

Author:
Janne Valkealahti

Constructor Summary
YarnContainerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 YarnContainer getObject()
           
 java.lang.Class<YarnContainer> getObjectType()
           
 boolean isSingleton()
           
 void setContainerClass(java.lang.Class<? extends YarnContainer> containerClass)
          Sets the container class.
 void setContainerRef(YarnContainer containerRef)
          Sets the container ref.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YarnContainerFactoryBean

public YarnContainerFactoryBean()
Method Detail

getObject

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

getObjectType

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

isSingleton

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

afterPropertiesSet

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

setContainerClass

public void setContainerClass(java.lang.Class<? extends YarnContainer> containerClass)
Sets the container class.

Parameters:
containerClass - the new container class

setContainerRef

public void setContainerRef(YarnContainer containerRef)
Sets the container ref.

Parameters:
containerRef - the new container ref

Spring for Apache Hadoop