org.springframework.yarn.container
Class YarnContainerFactoryBean
java.lang.Object
org.springframework.yarn.container.YarnContainerFactoryBean
- All Implemented Interfaces:
- FactoryBean<YarnContainer>, InitializingBean
public class YarnContainerFactoryBean
- extends Object
- implements InitializingBean, FactoryBean<YarnContainer>
Simple factory bean for YarnContainers.
- Author:
- Janne Valkealahti
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YarnContainerFactoryBean
public YarnContainerFactoryBean()
getObject
public YarnContainer getObject()
throws Exception
- Specified by:
getObject in interface FactoryBean<YarnContainer>
- Throws:
Exception
getObjectType
public Class<YarnContainer> getObjectType()
- Specified by:
getObjectType in interface FactoryBean<YarnContainer>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface FactoryBean<YarnContainer>
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
setContainerClass
public void setContainerClass(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