com.ibm.batch.container.services.impl
Class AbstractMapBasedPersistenceManagerImpl

java.lang.Object
  extended by com.ibm.batch.container.services.impl.AbstractPersistenceManagerImpl
      extended by com.ibm.batch.container.services.impl.AbstractMapBasedPersistenceManagerImpl
All Implemented Interfaces:
IBatchServiceBase, IPersistenceManagerService
Direct Known Subclasses:
FileBasedPersistenceManagerImpl, InMemoryPersistenceManagerImpl

public abstract class AbstractMapBasedPersistenceManagerImpl
extends AbstractPersistenceManagerImpl
implements IPersistenceManagerService


Field Summary
protected static Hashtable<String,CheckpointData> _checkpointStore
           
protected static Object _checkpointStoreLock
           
protected static boolean _isInited
           
protected static Hashtable<Long,JobStatus> _jobStatusStore
           
protected static Object _jobStoreLock
           
protected static Hashtable<String,StepStatus> _stepStatusStore
           
protected static Object _stepStoreLock
           
 
Fields inherited from interface com.ibm.batch.container.services.IPersistenceManagerService
CHECKPOINT_STORE_ID, JOB_STATUS_STORE_ID, LOGICAL_TX_STORE_ID, PJM_JOBCONTEXT_STORE_ID, STEP_STATUS_STORE_ID, SUBMITTEDJOBS_STORE_ID
 
Constructor Summary
AbstractMapBasedPersistenceManagerImpl()
           
 
Method Summary
protected  void _createCheckpointData(CheckpointDataKey key, CheckpointData value)
           
protected  void _createJobStatus(JobStatusKey key, JobStatus value)
           
protected  void _createStepStatus(StepStatusKey key, StepStatus value)
           
protected  void _deleteCheckpointData(CheckpointDataKey key)
           
protected  void _deleteJobStatus(JobStatusKey key)
           
protected  void _deleteStepStatus(StepStatusKey key)
           
protected  List<CheckpointData> _getCheckpointData(CheckpointDataKey key)
           
protected  List<JobStatus> _getJobStatus(JobStatusKey key)
           
protected  List<StepStatus> _getStepStatus(StepStatusKey key)
           
protected abstract  void _loadDataStores()
           
protected abstract  void _saveStore(int storeId)
           
protected  void _updateCheckpointData(CheckpointDataKey key, CheckpointData value)
           
protected  void _updateJobStatus(JobStatusKey key, JobStatus value)
           
protected  void _updateStepStatus(StepStatusKey key, StepStatus value)
           
 void init(IBatchConfig pgcConfig)
           
 void shutdown()
           
 
Methods inherited from class com.ibm.batch.container.services.impl.AbstractPersistenceManagerImpl
createData, deleteData, getData, updateData
 
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
createData, deleteData, getData, jobExecutionStatusStringUpdate, jobExecutionTimestampUpdate, jobOperatorCreateExecutionData, jobOperatorCreateJobInstanceData, jobOperatorGetJobInstanceCount, jobOperatorgetJobInstanceIds, jobOperatorgetJobNames, jobOperatorQueryJobExecutionJobInstanceId, jobOperatorQueryJobExecutionStatus, jobOperatorQueryJobExecutionTimestamp, stepExecutionCreateStepExecutionData, stepExecutionQueryID, stepExecutionQueryIDList, updateData
 

Field Detail

_isInited

protected static boolean _isInited

_jobStatusStore

protected static Hashtable<Long,JobStatus> _jobStatusStore

_stepStatusStore

protected static Hashtable<String,StepStatus> _stepStatusStore

_checkpointStore

protected static Hashtable<String,CheckpointData> _checkpointStore

_jobStoreLock

protected static Object _jobStoreLock

_stepStoreLock

protected static Object _stepStoreLock

_checkpointStoreLock

protected static Object _checkpointStoreLock
Constructor Detail

AbstractMapBasedPersistenceManagerImpl

public AbstractMapBasedPersistenceManagerImpl()
Method Detail

_createCheckpointData

protected void _createCheckpointData(CheckpointDataKey key,
                                     CheckpointData value)
Specified by:
_createCheckpointData in class AbstractPersistenceManagerImpl

_createStepStatus

protected void _createStepStatus(StepStatusKey key,
                                 StepStatus value)
Specified by:
_createStepStatus in class AbstractPersistenceManagerImpl

_createJobStatus

protected void _createJobStatus(JobStatusKey key,
                                JobStatus value)
Specified by:
_createJobStatus in class AbstractPersistenceManagerImpl

_getJobStatus

protected List<JobStatus> _getJobStatus(JobStatusKey key)
Specified by:
_getJobStatus in class AbstractPersistenceManagerImpl

_getStepStatus

protected List<StepStatus> _getStepStatus(StepStatusKey key)
Specified by:
_getStepStatus in class AbstractPersistenceManagerImpl

_deleteCheckpointData

protected void _deleteCheckpointData(CheckpointDataKey key)
Specified by:
_deleteCheckpointData in class AbstractPersistenceManagerImpl

_deleteStepStatus

protected void _deleteStepStatus(StepStatusKey key)
Specified by:
_deleteStepStatus in class AbstractPersistenceManagerImpl

_deleteJobStatus

protected void _deleteJobStatus(JobStatusKey key)
Specified by:
_deleteJobStatus in class AbstractPersistenceManagerImpl

_getCheckpointData

protected List<CheckpointData> _getCheckpointData(CheckpointDataKey key)
Specified by:
_getCheckpointData in class AbstractPersistenceManagerImpl

_updateCheckpointData

protected void _updateCheckpointData(CheckpointDataKey key,
                                     CheckpointData value)
Specified by:
_updateCheckpointData in class AbstractPersistenceManagerImpl

_updateStepStatus

protected void _updateStepStatus(StepStatusKey key,
                                 StepStatus value)
Specified by:
_updateStepStatus in class AbstractPersistenceManagerImpl

_updateJobStatus

protected void _updateJobStatus(JobStatusKey key,
                                JobStatus value)
Specified by:
_updateJobStatus in class AbstractPersistenceManagerImpl

init

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

_loadDataStores

protected abstract void _loadDataStores()

_saveStore

protected abstract void _saveStore(int storeId)

shutdown

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


Copyright © 2013. All Rights Reserved.