com.ibm.jbatch.container.impl
Class BatchKernelImpl

java.lang.Object
  extended by com.ibm.jbatch.container.impl.BatchKernelImpl
All Implemented Interfaces:
IBatchKernelService, IBatchServiceBase

public class BatchKernelImpl
extends Object
implements IBatchKernelService


Constructor Summary
BatchKernelImpl()
           
 
Method Summary
 BatchFlowInSplitWorkUnit buildNewFlowInSplitWorkUnit(FlowInSplitBuilderConfig config)
           
 List<BatchPartitionWorkUnit> buildNewParallelPartitions(PartitionsBuilderConfig config)
          Build a list of batch work units and set them up in STARTING state but don't start them yet.
 BatchFlowInSplitWorkUnit buildOnRestartFlowInSplitWorkUnit(FlowInSplitBuilderConfig config)
           
 List<BatchPartitionWorkUnit> buildOnRestartParallelPartitions(PartitionsBuilderConfig config)
           
 BatchSecurityHelper getBatchSecurityHelper()
           
 IJobExecution getJobExecution(long executionId)
           
 JobInstance getJobInstance(long executionId)
           
 int getJobInstanceCount(String jobName)
           
 void init(IBatchConfig pgcConfig)
           
 boolean isExecutionRunning(long executionId)
           
 void jobExecutionDone(RuntimeJobExecution jobExecution)
           
 void restartGeneratedJob(BatchWorkUnit batchWork)
           
 IJobExecution restartJob(long executionId)
           
 IJobExecution restartJob(long executionId, Properties jobOverrideProps)
           
 void shutdown()
           
 void startGeneratedJob(BatchWorkUnit batchWork)
           
 IJobExecution startJob(String jobXML)
           
 IJobExecution startJob(String jobXML, Properties jobParameters)
           
 void stopJob(long executionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchKernelImpl

public BatchKernelImpl()
Method Detail

getBatchSecurityHelper

public BatchSecurityHelper getBatchSecurityHelper()
Specified by:
getBatchSecurityHelper in interface IBatchKernelService

init

public void init(IBatchConfig pgcConfig)
          throws BatchContainerServiceException
Specified by:
init in interface IBatchServiceBase
Throws:
BatchContainerServiceException

shutdown

public void shutdown()
              throws BatchContainerServiceException
Specified by:
shutdown in interface IBatchServiceBase
Throws:
BatchContainerServiceException

startJob

public IJobExecution startJob(String jobXML)
                       throws JobStartException
Specified by:
startJob in interface IBatchKernelService
Throws:
JobStartException

startJob

public IJobExecution startJob(String jobXML,
                              Properties jobParameters)
                       throws JobStartException
Specified by:
startJob in interface IBatchKernelService
Throws:
JobStartException

stopJob

public void stopJob(long executionId)
             throws NoSuchJobExecutionException,
                    JobExecutionNotRunningException
Specified by:
stopJob in interface IBatchKernelService
Throws:
NoSuchJobExecutionException
JobExecutionNotRunningException

restartJob

public IJobExecution restartJob(long executionId)
                         throws JobRestartException,
                                JobExecutionAlreadyCompleteException,
                                JobExecutionNotMostRecentException,
                                NoSuchJobExecutionException
Specified by:
restartJob in interface IBatchKernelService
Throws:
JobRestartException
JobExecutionAlreadyCompleteException
JobExecutionNotMostRecentException
NoSuchJobExecutionException

restartJob

public IJobExecution restartJob(long executionId,
                                Properties jobOverrideProps)
                         throws JobRestartException,
                                JobExecutionAlreadyCompleteException,
                                JobExecutionNotMostRecentException,
                                NoSuchJobExecutionException
Specified by:
restartJob in interface IBatchKernelService
Throws:
JobRestartException
JobExecutionAlreadyCompleteException
JobExecutionNotMostRecentException
NoSuchJobExecutionException

jobExecutionDone

public void jobExecutionDone(RuntimeJobExecution jobExecution)
Specified by:
jobExecutionDone in interface IBatchKernelService

getJobExecution

public IJobExecution getJobExecution(long executionId)
                              throws NoSuchJobExecutionException
Specified by:
getJobExecution in interface IBatchKernelService
Throws:
NoSuchJobExecutionException

startGeneratedJob

public void startGeneratedJob(BatchWorkUnit batchWork)
Specified by:
startGeneratedJob in interface IBatchKernelService

getJobInstanceCount

public int getJobInstanceCount(String jobName)
Specified by:
getJobInstanceCount in interface IBatchKernelService

getJobInstance

public JobInstance getJobInstance(long executionId)
Specified by:
getJobInstance in interface IBatchKernelService

buildNewParallelPartitions

public List<BatchPartitionWorkUnit> buildNewParallelPartitions(PartitionsBuilderConfig config)
                                                        throws JobRestartException,
                                                               JobStartException
Build a list of batch work units and set them up in STARTING state but don't start them yet.

Specified by:
buildNewParallelPartitions in interface IBatchKernelService
Throws:
JobRestartException
JobStartException

buildOnRestartParallelPartitions

public List<BatchPartitionWorkUnit> buildOnRestartParallelPartitions(PartitionsBuilderConfig config)
                                                              throws JobRestartException,
                                                                     JobExecutionAlreadyCompleteException,
                                                                     JobExecutionNotMostRecentException
Specified by:
buildOnRestartParallelPartitions in interface IBatchKernelService
Throws:
JobRestartException
JobExecutionAlreadyCompleteException
JobExecutionNotMostRecentException

restartGeneratedJob

public void restartGeneratedJob(BatchWorkUnit batchWork)
                         throws JobRestartException
Specified by:
restartGeneratedJob in interface IBatchKernelService
Throws:
JobRestartException

buildNewFlowInSplitWorkUnit

public BatchFlowInSplitWorkUnit buildNewFlowInSplitWorkUnit(FlowInSplitBuilderConfig config)
Specified by:
buildNewFlowInSplitWorkUnit in interface IBatchKernelService

buildOnRestartFlowInSplitWorkUnit

public BatchFlowInSplitWorkUnit buildOnRestartFlowInSplitWorkUnit(FlowInSplitBuilderConfig config)
                                                           throws JobRestartException,
                                                                  JobExecutionAlreadyCompleteException,
                                                                  JobExecutionNotMostRecentException
Specified by:
buildOnRestartFlowInSplitWorkUnit in interface IBatchKernelService
Throws:
JobRestartException
JobExecutionAlreadyCompleteException
JobExecutionNotMostRecentException

isExecutionRunning

public boolean isExecutionRunning(long executionId)
Specified by:
isExecutionRunning in interface IBatchKernelService


Copyright © 2013. All Rights Reserved.