Spring for Apache Hadoop

org.springframework.yarn.batch.repository
Class RemoteJobExplorerFactoryBean

java.lang.Object
  extended by org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
      extended by org.springframework.yarn.batch.repository.RemoteJobExplorerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class RemoteJobExplorerFactoryBean
extends org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
implements org.springframework.beans.factory.InitializingBean

A FactoryBean that automates the creation of a SimpleJobExplorer using in-memory DAO implementations.

Author:
Janne Valkealahti

Constructor Summary
RemoteJobExplorerFactoryBean()
          Create a factory with no RemoteJobRepositoryFactoryBean.
RemoteJobExplorerFactoryBean(RemoteJobRepositoryFactoryBean repositoryFactory)
          Create an instance with the provided RemoteJobRepositoryFactoryBean as a source of Dao instances.
 
Method Summary
 void afterPropertiesSet()
           
protected  org.springframework.batch.core.repository.dao.ExecutionContextDao createExecutionContextDao()
           
protected  org.springframework.batch.core.repository.dao.JobExecutionDao createJobExecutionDao()
           
protected  org.springframework.batch.core.repository.dao.JobInstanceDao createJobInstanceDao()
           
protected  org.springframework.batch.core.repository.dao.StepExecutionDao createStepExecutionDao()
           
 java.lang.Object getObject()
           
 void setRepositoryFactory(RemoteJobRepositoryFactoryBean repositoryFactory)
          The repository factory that can be used to create daos for the explorer.
 
Methods inherited from class org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
getObjectType, isSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteJobExplorerFactoryBean

public RemoteJobExplorerFactoryBean(RemoteJobRepositoryFactoryBean repositoryFactory)
Create an instance with the provided RemoteJobRepositoryFactoryBean as a source of Dao instances.

Parameters:
repositoryFactory -

RemoteJobExplorerFactoryBean

public RemoteJobExplorerFactoryBean()
Create a factory with no RemoteJobRepositoryFactoryBean. It must be injected as a property.

Method Detail

setRepositoryFactory

public void setRepositoryFactory(RemoteJobRepositoryFactoryBean repositoryFactory)
The repository factory that can be used to create daos for the explorer.

Parameters:
repositoryFactory - a RemoteJobExplorerFactoryBean

afterPropertiesSet

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

createJobExecutionDao

protected org.springframework.batch.core.repository.dao.JobExecutionDao createJobExecutionDao()
                                                                                       throws java.lang.Exception
Specified by:
createJobExecutionDao in class org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
Throws:
java.lang.Exception

createJobInstanceDao

protected org.springframework.batch.core.repository.dao.JobInstanceDao createJobInstanceDao()
                                                                                     throws java.lang.Exception
Specified by:
createJobInstanceDao in class org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
Throws:
java.lang.Exception

createStepExecutionDao

protected org.springframework.batch.core.repository.dao.StepExecutionDao createStepExecutionDao()
                                                                                         throws java.lang.Exception
Specified by:
createStepExecutionDao in class org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
Throws:
java.lang.Exception

createExecutionContextDao

protected org.springframework.batch.core.repository.dao.ExecutionContextDao createExecutionContextDao()
                                                                                               throws java.lang.Exception
Specified by:
createExecutionContextDao in class org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
Throws:
java.lang.Exception

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

Spring for Apache Hadoop