com.ibm.batch.container.services.impl
Class AbstractPersistenceManagerImpl
java.lang.Object
com.ibm.batch.container.services.impl.AbstractPersistenceManagerImpl
- All Implemented Interfaces:
- IBatchServiceBase, IPersistenceManagerService
- Direct Known Subclasses:
- AbstractMapBasedPersistenceManagerImpl, JDBCPersistenceManagerImpl
public abstract class AbstractPersistenceManagerImpl
- extends Object
- implements IPersistenceManagerService
|
Method Summary |
protected abstract void |
_createCheckpointData(CheckpointDataKey key,
CheckpointData value)
|
protected abstract void |
_createJobStatus(JobStatusKey key,
JobStatus value)
|
protected abstract void |
_createStepStatus(StepStatusKey key,
StepStatus value)
|
protected abstract void |
_deleteCheckpointData(CheckpointDataKey key)
|
protected abstract void |
_deleteJobStatus(JobStatusKey key)
|
protected abstract void |
_deleteStepStatus(StepStatusKey key)
|
protected abstract List<CheckpointData> |
_getCheckpointData(CheckpointDataKey key)
|
protected abstract List<JobStatus> |
_getJobStatus(JobStatusKey key)
|
protected abstract List<StepStatus> |
_getStepStatus(StepStatusKey key)
|
protected abstract void |
_updateCheckpointData(CheckpointDataKey key,
CheckpointData value)
|
protected abstract void |
_updateJobStatus(JobStatusKey key,
JobStatus value)
|
protected abstract void |
_updateStepStatus(StepStatusKey key,
StepStatus value)
|
void |
createData(int storeDestination,
IPersistenceDataKey key,
Serializable value)
(Required) Its purpose is to insert data into a particular store. |
void |
deleteData(int storeDestination,
IPersistenceDataKey key)
(Required) Its purpose is to delete the data items corresponding to the
given key from the given store. |
List |
getData(int storeDestination,
IPersistenceDataKey key)
(Required) Its purpose is to fetch data using the given key from a particular store |
void |
init(IBatchConfig batchConfig)
|
void |
shutdown()
|
void |
updateData(int storeDestination,
IPersistenceDataKey key,
Serializable value)
(Required) Its purpose is to update one or more fields of a data item identified by the
key from the given data store. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.batch.container.services.IPersistenceManagerService |
jobExecutionStatusStringUpdate, jobExecutionTimestampUpdate, jobOperatorCreateExecutionData, jobOperatorCreateJobInstanceData, jobOperatorGetJobInstanceCount, jobOperatorgetJobInstanceIds, jobOperatorgetJobNames, jobOperatorQueryJobExecutionJobInstanceId, jobOperatorQueryJobExecutionStatus, jobOperatorQueryJobExecutionTimestamp, stepExecutionCreateStepExecutionData, stepExecutionQueryID, stepExecutionQueryIDList |
AbstractPersistenceManagerImpl
public AbstractPersistenceManagerImpl()
createData
public void createData(int storeDestination,
IPersistenceDataKey key,
Serializable value)
throws PersistenceException
- Description copied from interface:
IPersistenceManagerService
- (Required) Its purpose is to insert data into a particular store.
- Specified by:
createData in interface IPersistenceManagerService
- Parameters:
storeDestination - The target store destination. One of
IPersistenceManagerService.JOB_STATUS_STORE_ID,
IPersistenceManagerService.STEP_STATUS_STORE_ID,
IPersistenceManagerService.CHECKPOINT_STORE_IDkey - A unique key under which the data should be stored.value - A serializable object that contains the actual payload. One of
JobStatus, StepStatus or CheckpointData
- Throws:
PersistenceException
deleteData
public void deleteData(int storeDestination,
IPersistenceDataKey key)
throws PersistenceException
- Description copied from interface:
IPersistenceManagerService
- (Required) Its purpose is to delete the data items corresponding to the
given key from the given store.
- Specified by:
deleteData in interface IPersistenceManagerService
- Parameters:
storeDestination - The store from which the data should be deleted. One of
IPersistenceManagerService.JOB_STATUS_STORE_ID,
IPersistenceManagerService.STEP_STATUS_STORE_ID,
IPersistenceManagerService.CHECKPOINT_STORE_ID
- Throws:
PersistenceException
getData
public List getData(int storeDestination,
IPersistenceDataKey key)
throws PersistenceException
- Description copied from interface:
IPersistenceManagerService
- (Required) Its purpose is to fetch data using the given key from a particular store
- Specified by:
getData in interface IPersistenceManagerService
- Parameters:
storeDestination - The store from which the data should be retrieved. One of
IPersistenceManagerService.JOB_STATUS_STORE_ID,
IPersistenceManagerService.STEP_STATUS_STORE_ID,
IPersistenceManagerService.CHECKPOINT_STORE_ID
- Returns:
- A list containing the data items that match the input key filter.
Depending on the type of the store the List should contain either
JobStatus, StepStatus or CheckpointData objects
- Throws:
PersistenceException
updateData
public void updateData(int storeDestination,
IPersistenceDataKey key,
Serializable value)
throws PersistenceException
- Description copied from interface:
IPersistenceManagerService
- (Required) Its purpose is to update one or more fields of a data item identified by the
key from the given data store.
- Specified by:
updateData in interface IPersistenceManagerService
- Parameters:
storeDestination - The store from which the data should be updated. One of
IPersistenceManagerService.JOB_STATUS_STORE_ID,
IPersistenceManagerService.STEP_STATUS_STORE_ID,
IPersistenceManagerService.CHECKPOINT_STORE_ID
- Throws:
PersistenceException
init
public void init(IBatchConfig batchConfig)
throws BatchContainerServiceException
- Specified by:
init in interface IBatchServiceBase
- Throws:
BatchContainerServiceException
shutdown
public void shutdown()
throws BatchContainerServiceException
- Specified by:
shutdown in interface IBatchServiceBase
- Throws:
BatchContainerServiceException
_createStepStatus
protected abstract void _createStepStatus(StepStatusKey key,
StepStatus value)
_createJobStatus
protected abstract void _createJobStatus(JobStatusKey key,
JobStatus value)
_createCheckpointData
protected abstract void _createCheckpointData(CheckpointDataKey key,
CheckpointData value)
_getStepStatus
protected abstract List<StepStatus> _getStepStatus(StepStatusKey key)
_getJobStatus
protected abstract List<JobStatus> _getJobStatus(JobStatusKey key)
_getCheckpointData
protected abstract List<CheckpointData> _getCheckpointData(CheckpointDataKey key)
_updateStepStatus
protected abstract void _updateStepStatus(StepStatusKey key,
StepStatus value)
_updateJobStatus
protected abstract void _updateJobStatus(JobStatusKey key,
JobStatus value)
_updateCheckpointData
protected abstract void _updateCheckpointData(CheckpointDataKey key,
CheckpointData value)
_deleteStepStatus
protected abstract void _deleteStepStatus(StepStatusKey key)
_deleteJobStatus
protected abstract void _deleteJobStatus(JobStatusKey key)
_deleteCheckpointData
protected abstract void _deleteCheckpointData(CheckpointDataKey key)
Copyright © 2013. All Rights Reserved.