org.springframework.yarn.integration
Class IntegrationAppmasterServiceFactoryBean

java.lang.Object
  extended by org.springframework.yarn.integration.IntegrationAppmasterServiceFactoryBean
All Implemented Interfaces:
Aware, BeanFactoryAware, DisposableBean, FactoryBean<org.springframework.yarn.am.AppmasterService>, InitializingBean

public class IntegrationAppmasterServiceFactoryBean
extends Object
implements FactoryBean<org.springframework.yarn.am.AppmasterService>, InitializingBean, DisposableBean, BeanFactoryAware

Bean factory for building AppmasterService instances supported by this module.

Author:
Janne Valkealahti

Constructor Summary
IntegrationAppmasterServiceFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 org.springframework.yarn.am.AppmasterService getObject()
           
 Class<org.springframework.yarn.am.AppmasterService> getObjectType()
           
 boolean isSingleton()
           
 void setBeanFactory(BeanFactory beanFactory)
           
 void setChannel(SubscribableChannel messageChannel)
          Sets the message channel for service dispatching.
 void setServiceImpl(Class<org.springframework.yarn.am.AppmasterService> serviceImpl)
          Set the class implementing appmaster service.
 void setServiceRef(IntegrationAppmasterService<?> serviceRef)
          Sets the appmaster service as an instance.
 void setSocketSupport(PortExposingTcpSocketSupport socketSupport)
          Sets the socket support to be used to get port info from a server socket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegrationAppmasterServiceFactoryBean

public IntegrationAppmasterServiceFactoryBean()
Method Detail

getObject

public org.springframework.yarn.am.AppmasterService getObject()
                                                       throws Exception
Specified by:
getObject in interface FactoryBean<org.springframework.yarn.am.AppmasterService>
Throws:
Exception

getObjectType

public Class<org.springframework.yarn.am.AppmasterService> getObjectType()
Specified by:
getObjectType in interface FactoryBean<org.springframework.yarn.am.AppmasterService>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<org.springframework.yarn.am.AppmasterService>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException

setChannel

public void setChannel(SubscribableChannel messageChannel)
Sets the message channel for service dispatching.

Parameters:
messageChannel - the message channel

setSocketSupport

public void setSocketSupport(PortExposingTcpSocketSupport socketSupport)
Sets the socket support to be used to get port info from a server socket.

Parameters:
socketSupport - the socket support

setServiceImpl

public void setServiceImpl(Class<org.springframework.yarn.am.AppmasterService> serviceImpl)
Set the class implementing appmaster service.

Parameters:
serviceImpl - the implementing class

setServiceRef

public void setServiceRef(IntegrationAppmasterService<?> serviceRef)
Sets the appmaster service as an instance. This is used if service is created externally and we just inject it into this factory.

Parameters:
serviceRef - the service instance