Spring for Apache Hadoop

org.springframework.yarn.integration
Class IntegrationAppmasterServiceFactoryBean

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

public class IntegrationAppmasterServiceFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<AppmasterService>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.BeanFactoryAware

Bean factory for building AppmasterService instances supported by this module.

Author:
Janne Valkealahti

Constructor Summary
IntegrationAppmasterServiceFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 AppmasterService getObject()
           
 java.lang.Class<AppmasterService> getObjectType()
           
 boolean isSingleton()
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setChannel(org.springframework.messaging.SubscribableChannel messageChannel)
          Sets the message channel for service dispatching.
 void setServiceImpl(java.lang.Class<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 AppmasterService getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<AppmasterService>
Throws:
java.lang.Exception

getObjectType

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

isSingleton

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

afterPropertiesSet

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

destroy

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

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

setChannel

public void setChannel(org.springframework.messaging.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(java.lang.Class<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

Spring for Apache Hadoop