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<org.springframework.yarn.integration.ip.mind.MindRpcMessageHolder>
              extended by org.springframework.yarn.integration.ip.mind.MindAppmasterService
                  extended by org.springframework.yarn.batch.repository.BatchAppmasterService
All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, org.springframework.yarn.am.AppmasterService

public class BatchAppmasterService
extends org.springframework.yarn.integration.ip.mind.MindAppmasterService

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

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  org.springframework.yarn.integration.ip.mind.MindRpcMessageHolder handleMindMessageInternal(org.springframework.yarn.integration.ip.mind.MindRpcMessageHolder message)
           
 void setInterceptors(List<JobRepositoryRemoteServiceInterceptor> interceptors)
          Set the list of channel interceptors.
 void setJobRepositoryRemoteService(JobRepositoryService 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 org.springframework.yarn.integration.ip.mind.MindRpcMessageHolder handleMindMessageInternal(org.springframework.yarn.integration.ip.mind.MindRpcMessageHolder message)
Specified by:
handleMindMessageInternal in class org.springframework.yarn.integration.ip.mind.MindAppmasterService

setJobRepositoryRemoteService

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

Parameters:
jobRepositoryRemoteService - the new job repository remote service

setInterceptors

public void setInterceptors(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