Spring for Apache Hadoop

org.springframework.yarn.batch.repository
Class BatchAppmasterService

java.lang.Object
  extended by org.springframework.yarn.support.LifecycleObjectSupport
      extended by org.springframework.yarn.integration.support.IntegrationObjectSupport
          extended by org.springframework.yarn.integration.IntegrationAppmasterService<MindRpcMessageHolder>
              extended by org.springframework.yarn.integration.ip.mind.MindAppmasterService
                  extended by org.springframework.yarn.batch.repository.BatchAppmasterService
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, AppmasterService

public class BatchAppmasterService
extends MindAppmasterService

Application master service implementation which is used for remote Spring Batch steps to talk to Job Repository. Simply passes requests to JobRepositoryRemoteService.

Author:
Janne Valkealahti

Nested Class Summary
protected  class BatchAppmasterService.JobRepositoryServiceInterceptorList
          Convenient wrapper for interceptor list.
 
Constructor Summary
BatchAppmasterService()
           
 
Method Summary
 void addInterceptor(JobRepositoryRemoteServiceInterceptor interceptor)
          Add a service interceptor to the end of the list.
protected  BatchAppmasterService.JobRepositoryServiceInterceptorList getInterceptors()
          Exposes the interceptor list for subclasses.
protected  MindRpcMessageHolder handleMindMessageInternal(MindRpcMessageHolder message)
          Internal message handling for MindRpcMessageHolder.
 void setInterceptors(java.util.List<JobRepositoryRemoteServiceInterceptor> interceptors)
          Set the list of channel interceptors.
 void setJobRepositoryRemoteService(JobRepositoryRemoteService jobRepositoryRemoteService)
          Sets the job repository remote service.
 
Methods inherited from class org.springframework.yarn.integration.ip.mind.MindAppmasterService
handleMessageInternal
 
Methods inherited from class org.springframework.yarn.integration.IntegrationAppmasterService
doStart, doStop, getHost, getPort, hasPort, setMessageChannel, setSocketSupport
 
Methods inherited from class org.springframework.yarn.integration.support.IntegrationObjectSupport
getConversionService, setConversionService
 
Methods inherited from class org.springframework.yarn.support.LifecycleObjectSupport
afterPropertiesSet, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchAppmasterService

public BatchAppmasterService()
Method Detail

handleMindMessageInternal

protected MindRpcMessageHolder handleMindMessageInternal(MindRpcMessageHolder message)
Description copied from class: MindAppmasterService
Internal message handling for MindRpcMessageHolder.

Specified by:
handleMindMessageInternal in class MindAppmasterService
Parameters:
message - the MindRpcMessageHolder
Returns:
response as MindRpcMessageHolder

setJobRepositoryRemoteService

public void setJobRepositoryRemoteService(JobRepositoryRemoteService jobRepositoryRemoteService)
Sets the job repository remote service.

Parameters:
jobRepositoryRemoteService - the new job repository remote service

setInterceptors

public void setInterceptors(java.util.List<JobRepositoryRemoteServiceInterceptor> interceptors)
Set the list of channel interceptors. This will clear any existing interceptors.

Parameters:
interceptors - the new interceptors

addInterceptor

public void addInterceptor(JobRepositoryRemoteServiceInterceptor interceptor)
Add a service interceptor to the end of the list.

Parameters:
interceptor - the interceptor

getInterceptors

protected BatchAppmasterService.JobRepositoryServiceInterceptorList getInterceptors()
Exposes the interceptor list for subclasses.

Returns:
the interceptors

Spring for Apache Hadoop