Package com.ibm.jbatch.container.impl
Class BatchKernelImpl
- java.lang.Object
-
- com.ibm.jbatch.container.impl.BatchKernelImpl
-
- All Implemented Interfaces:
IBatchKernelService,IBatchServiceBase
public class BatchKernelImpl extends Object implements IBatchKernelService
-
-
Constructor Summary
Constructors Constructor Description BatchKernelImpl()
-
Method Summary
-
-
-
Method Detail
-
getBatchSecurityHelper
public com.ibm.jbatch.spi.BatchSecurityHelper getBatchSecurityHelper()
- Specified by:
getBatchSecurityHelperin interfaceIBatchKernelService
-
init
public void init(IBatchConfig pgcConfig) throws BatchContainerServiceException
- Specified by:
initin interfaceIBatchServiceBase- Throws:
BatchContainerServiceException
-
shutdown
public void shutdown() throws BatchContainerServiceException- Specified by:
shutdownin interfaceIBatchServiceBase- Throws:
BatchContainerServiceException
-
startJob
public IJobExecution startJob(String jobXML) throws jakarta.batch.operations.JobStartException
- Specified by:
startJobin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.JobStartException
-
startJob
public IJobExecution startJob(String jobXML, Properties jobParameters) throws jakarta.batch.operations.JobStartException
- Specified by:
startJobin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.JobStartException
-
stopJob
public void stopJob(long executionId) throws jakarta.batch.operations.NoSuchJobExecutionException, jakarta.batch.operations.JobExecutionNotRunningException- Specified by:
stopJobin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.NoSuchJobExecutionExceptionjakarta.batch.operations.JobExecutionNotRunningException
-
restartJob
public IJobExecution restartJob(long executionId) throws jakarta.batch.operations.JobRestartException, jakarta.batch.operations.JobExecutionAlreadyCompleteException, jakarta.batch.operations.JobExecutionNotMostRecentException, jakarta.batch.operations.NoSuchJobExecutionException
- Specified by:
restartJobin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.JobRestartExceptionjakarta.batch.operations.JobExecutionAlreadyCompleteExceptionjakarta.batch.operations.JobExecutionNotMostRecentExceptionjakarta.batch.operations.NoSuchJobExecutionException
-
restartJob
public IJobExecution restartJob(long executionId, Properties jobOverrideProps) throws jakarta.batch.operations.JobRestartException, jakarta.batch.operations.JobExecutionAlreadyCompleteException, jakarta.batch.operations.JobExecutionNotMostRecentException, jakarta.batch.operations.NoSuchJobExecutionException
- Specified by:
restartJobin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.JobRestartExceptionjakarta.batch.operations.JobExecutionAlreadyCompleteExceptionjakarta.batch.operations.JobExecutionNotMostRecentExceptionjakarta.batch.operations.NoSuchJobExecutionException
-
jobExecutionDone
public void jobExecutionDone(RuntimeJobExecution jobExecution)
- Specified by:
jobExecutionDonein interfaceIBatchKernelService
-
getJobExecution
public IJobExecution getJobExecution(long executionId) throws jakarta.batch.operations.NoSuchJobExecutionException
- Specified by:
getJobExecutionin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.NoSuchJobExecutionException
-
startGeneratedJob
public void startGeneratedJob(BatchWorkUnit batchWork)
- Specified by:
startGeneratedJobin interfaceIBatchKernelService
-
getJobInstanceCount
public int getJobInstanceCount(String jobName)
- Specified by:
getJobInstanceCountin interfaceIBatchKernelService
-
getJobInstance
public jakarta.batch.runtime.JobInstance getJobInstance(long executionId)
- Specified by:
getJobInstancein interfaceIBatchKernelService
-
buildNewParallelPartitions
public List<BatchPartitionWorkUnit> buildNewParallelPartitions(PartitionsBuilderConfig config) throws jakarta.batch.operations.JobRestartException, jakarta.batch.operations.JobStartException
Build a list of batch work units and set them up in STARTING state but don't start them yet.- Specified by:
buildNewParallelPartitionsin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.JobRestartExceptionjakarta.batch.operations.JobStartException
-
buildOnRestartParallelPartitions
public List<BatchPartitionWorkUnit> buildOnRestartParallelPartitions(PartitionsBuilderConfig config) throws jakarta.batch.operations.JobRestartException, jakarta.batch.operations.JobExecutionAlreadyCompleteException, jakarta.batch.operations.JobExecutionNotMostRecentException
- Specified by:
buildOnRestartParallelPartitionsin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.JobRestartExceptionjakarta.batch.operations.JobExecutionAlreadyCompleteExceptionjakarta.batch.operations.JobExecutionNotMostRecentException
-
restartGeneratedJob
public void restartGeneratedJob(BatchWorkUnit batchWork) throws jakarta.batch.operations.JobRestartException
- Specified by:
restartGeneratedJobin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.JobRestartException
-
buildNewFlowInSplitWorkUnit
public BatchFlowInSplitWorkUnit buildNewFlowInSplitWorkUnit(FlowInSplitBuilderConfig config)
- Specified by:
buildNewFlowInSplitWorkUnitin interfaceIBatchKernelService
-
buildOnRestartFlowInSplitWorkUnit
public BatchFlowInSplitWorkUnit buildOnRestartFlowInSplitWorkUnit(FlowInSplitBuilderConfig config) throws jakarta.batch.operations.JobRestartException, jakarta.batch.operations.JobExecutionAlreadyCompleteException, jakarta.batch.operations.JobExecutionNotMostRecentException
- Specified by:
buildOnRestartFlowInSplitWorkUnitin interfaceIBatchKernelService- Throws:
jakarta.batch.operations.JobRestartExceptionjakarta.batch.operations.JobExecutionAlreadyCompleteExceptionjakarta.batch.operations.JobExecutionNotMostRecentException
-
isExecutionRunning
public boolean isExecutionRunning(long executionId)
- Specified by:
isExecutionRunningin interfaceIBatchKernelService
-
-