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

java.lang.Object
  extended by com.ibm.batch.container.services.impl.AbstractPersistenceManagerImpl
      extended by com.ibm.batch.container.services.impl.JDBCPersistenceManagerImpl
All Implemented Interfaces:
IBatchServiceBase, IPersistenceManagerService

public class JDBCPersistenceManagerImpl
extends AbstractPersistenceManagerImpl
implements IPersistenceManagerService


Field Summary
static String BATCH_STATUS
           
static String CREATE_TIME
           
protected  DataSource dataSource
           
protected  String driver
           
static String END_TIME
           
static String EXIT_STATUS
           
static String INSTANCE_ID
           
protected  String jndiName
           
static String JOBEXEC_ID
           
protected  String pwd
           
static String START_TIME
           
static String STEPCONTEXT
           
static String STEPEXEC_ID
           
static String UPDATE_TIME
           
protected  String url
           
protected  String userId
           
 
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
JDBCPersistenceManagerImpl()
           
 
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  void _updateCheckpointData(CheckpointDataKey key, CheckpointData value)
           
protected  void _updateJobStatus(JobStatusKey key, JobStatus value)
           
protected  void _updateStepStatus(StepStatusKey key, StepStatus value)
           
protected  Connection getConnection()
           
 void init(IBatchConfig batchConfig)
           
 void jobExecutionStatusStringUpdate(long key, String statusToUpdate, String statusString, Timestamp updatets)
           
 void jobExecutionTimestampUpdate(long key, String timestampToUpdate, Timestamp ts)
           
 void jobOperatorCreateExecutionData(long key, Timestamp createTime, Timestamp starttime, Timestamp endtime, Timestamp updateTime, Properties parms, long instanceID, String batchstatus, String exitstatus)
           
 void jobOperatorCreateJobInstanceData(long key, String Value)
          JOB OPERATOR METHODS
 int jobOperatorGetJobInstanceCount(String jobName)
           
 List<Long> jobOperatorgetJobInstanceIds(String jobName, int start, int count)
           
 Set<String> jobOperatorgetJobNames()
           
 long jobOperatorQueryJobExecutionJobInstanceId(long executionID)
           
 String jobOperatorQueryJobExecutionStatus(long key, String requestedStatus)
           
 Timestamp jobOperatorQueryJobExecutionTimestamp(long key, String requestedTimestamp)
           
 void stepExecutionCreateStepExecutionData(String stepExecutionKey, long jobExecutionID, long stepExecutionID)
           
 long stepExecutionQueryID(String key, String idtype)
           
 List<StepExecution> stepExecutionQueryIDList(long key, String idtype)
           
 
Methods inherited from class com.ibm.batch.container.services.impl.AbstractPersistenceManagerImpl
createData, deleteData, getData, shutdown, 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, updateData
 
Methods inherited from interface com.ibm.batch.container.services.IBatchServiceBase
shutdown
 

Field Detail

START_TIME

public static final String START_TIME
See Also:
Constant Field Values

CREATE_TIME

public static final String CREATE_TIME
See Also:
Constant Field Values

END_TIME

public static final String END_TIME
See Also:
Constant Field Values

UPDATE_TIME

public static final String UPDATE_TIME
See Also:
Constant Field Values

BATCH_STATUS

public static final String BATCH_STATUS
See Also:
Constant Field Values

EXIT_STATUS

public static final String EXIT_STATUS
See Also:
Constant Field Values

INSTANCE_ID

public static final String INSTANCE_ID
See Also:
Constant Field Values

JOBEXEC_ID

public static final String JOBEXEC_ID
See Also:
Constant Field Values

STEPEXEC_ID

public static final String STEPEXEC_ID
See Also:
Constant Field Values

STEPCONTEXT

public static final String STEPCONTEXT
See Also:
Constant Field Values

dataSource

protected DataSource dataSource

jndiName

protected String jndiName

driver

protected String driver

url

protected String url

userId

protected String userId

pwd

protected String pwd
Constructor Detail

JDBCPersistenceManagerImpl

public JDBCPersistenceManagerImpl()
Method Detail

init

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

_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

_updateJobStatus

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

_deleteJobStatus

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

_createStepStatus

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

_getStepStatus

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

_updateStepStatus

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

_deleteStepStatus

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

_createCheckpointData

protected void _createCheckpointData(CheckpointDataKey key,
                                     CheckpointData value)
Specified by:
_createCheckpointData 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

_deleteCheckpointData

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

getConnection

protected Connection getConnection()
                            throws SQLException
Returns:
the database connection.
Throws:
SQLException

jobExecutionTimestampUpdate

public void jobExecutionTimestampUpdate(long key,
                                        String timestampToUpdate,
                                        Timestamp ts)
Specified by:
jobExecutionTimestampUpdate in interface IPersistenceManagerService

jobExecutionStatusStringUpdate

public void jobExecutionStatusStringUpdate(long key,
                                           String statusToUpdate,
                                           String statusString,
                                           Timestamp updatets)
Specified by:
jobExecutionStatusStringUpdate in interface IPersistenceManagerService

jobOperatorCreateJobInstanceData

public void jobOperatorCreateJobInstanceData(long key,
                                             String Value)
JOB OPERATOR METHODS

Specified by:
jobOperatorCreateJobInstanceData in interface IPersistenceManagerService

jobOperatorGetJobInstanceCount

public int jobOperatorGetJobInstanceCount(String jobName)
Specified by:
jobOperatorGetJobInstanceCount in interface IPersistenceManagerService

jobOperatorgetJobInstanceIds

public List<Long> jobOperatorgetJobInstanceIds(String jobName,
                                               int start,
                                               int count)
Specified by:
jobOperatorgetJobInstanceIds in interface IPersistenceManagerService

jobOperatorgetJobNames

public Set<String> jobOperatorgetJobNames()
Specified by:
jobOperatorgetJobNames in interface IPersistenceManagerService

jobOperatorCreateExecutionData

public void jobOperatorCreateExecutionData(long key,
                                           Timestamp createTime,
                                           Timestamp starttime,
                                           Timestamp endtime,
                                           Timestamp updateTime,
                                           Properties parms,
                                           long instanceID,
                                           String batchstatus,
                                           String exitstatus)
Specified by:
jobOperatorCreateExecutionData in interface IPersistenceManagerService

jobOperatorQueryJobExecutionTimestamp

public Timestamp jobOperatorQueryJobExecutionTimestamp(long key,
                                                       String requestedTimestamp)
Specified by:
jobOperatorQueryJobExecutionTimestamp in interface IPersistenceManagerService

jobOperatorQueryJobExecutionStatus

public String jobOperatorQueryJobExecutionStatus(long key,
                                                 String requestedStatus)
Specified by:
jobOperatorQueryJobExecutionStatus in interface IPersistenceManagerService

jobOperatorQueryJobExecutionJobInstanceId

public long jobOperatorQueryJobExecutionJobInstanceId(long executionID)
Specified by:
jobOperatorQueryJobExecutionJobInstanceId in interface IPersistenceManagerService

stepExecutionCreateStepExecutionData

public void stepExecutionCreateStepExecutionData(String stepExecutionKey,
                                                 long jobExecutionID,
                                                 long stepExecutionID)
Specified by:
stepExecutionCreateStepExecutionData in interface IPersistenceManagerService

stepExecutionQueryIDList

public List<StepExecution> stepExecutionQueryIDList(long key,
                                                    String idtype)
Specified by:
stepExecutionQueryIDList in interface IPersistenceManagerService

stepExecutionQueryID

public long stepExecutionQueryID(String key,
                                 String idtype)
Specified by:
stepExecutionQueryID in interface IPersistenceManagerService


Copyright © 2013. All Rights Reserved.