public abstract static class SchedulerDAO.SchedulerDBStore extends Object
| Constructor and Description |
|---|
SchedulerDAO.SchedulerDBStore() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
createJobInstanceRunTable()
Creates the job instance run table
|
abstract void |
createJobInstanceTable()
Creates the job instance table
|
abstract void |
createJobTable()
Creates the job table
|
List<SchedulerJobInstanceInfo> |
getAllJobInstances(String jobId)
Gets all the instance handle of a job
|
XJob |
getJob(String id)
Gets the job definition
|
SchedulerJobInstanceInfo |
getJobInstanceInfo(String idStr)
Gets the Job instance info corresponding to handle id.
|
List<SchedulerJobHandle> |
getJobs(String username,
String status,
Long starttime,
Long endtime)
Gets all the jobs which match the filter requirements.
|
List<SchedulerJobHandle> |
getJobsByName(String jobname)
Get the job handles given the job name
|
SchedulerJobState |
getJobState(String id)
Gets the job status
|
SchedulerJobInfo |
getSchedulerJobInfo(String idStr)
Gets the Job info object
|
String |
getUser(String id)
Get the user who submitted the job.
|
void |
init(org.apache.commons.dbcp.BasicDataSource ds)
Init the store.
|
int |
insertIntoJobInstanceRunTable(SchedulerJobInstanceRun instanceRun) |
int |
insertIntoJobInstanceTable(SchedulerJobInstanceInfo instanceInfo)
Inserts the job instance info object into job instance table
|
int |
insertIntoJobTable(SchedulerJobInfo jobInfo)
Inserts the Job info object into job table
|
int |
updateJob(String id,
XJob job,
long modifiedOn)
Update the XJob into the job table
|
int |
updateJobInstanceRun(SchedulerJobInstanceRun instanceRun)
Updates the status of a job instance.
|
int |
updateJobStatus(String id,
String status,
long modifiedOn)
Updates the job status into the job table
|
public void init(org.apache.commons.dbcp.BasicDataSource ds)
ds - public abstract void createJobTable()
throws SQLException
SQLExceptionpublic abstract void createJobInstanceTable()
throws SQLException
SQLExceptionpublic abstract void createJobInstanceRunTable()
throws SQLException
SQLExceptionpublic int insertIntoJobTable(SchedulerJobInfo jobInfo) throws SQLException
jobInfo - SQLExceptionpublic int insertIntoJobInstanceTable(SchedulerJobInstanceInfo instanceInfo) throws SQLException
instanceInfo - SQLExceptionpublic int insertIntoJobInstanceRunTable(SchedulerJobInstanceRun instanceRun) throws SQLException
SQLExceptionpublic SchedulerJobInfo getSchedulerJobInfo(String idStr) throws SQLException
idStr - SQLExceptionpublic XJob getJob(String id) throws SQLException
id - SQLExceptionpublic List<SchedulerJobHandle> getJobsByName(String jobname) throws SQLException
jobname - SQLExceptionpublic SchedulerJobState getJobState(String id) throws SQLException
id - SQLExceptionpublic List<SchedulerJobHandle> getJobs(String username, String status, Long starttime, Long endtime) throws SQLException
username - status - starttime - endtime - SQLExceptionpublic int updateJob(String id, XJob job, long modifiedOn) throws SQLException
id - job - modifiedOn - SQLExceptionpublic int updateJobStatus(String id, String status, long modifiedOn) throws SQLException
id - status - modifiedOn - SQLExceptionpublic SchedulerJobInstanceInfo getJobInstanceInfo(String idStr) throws SQLException
idStr - SQLExceptionpublic int updateJobInstanceRun(SchedulerJobInstanceRun instanceRun) throws SQLException
instanceRun - SQLExceptionpublic List<SchedulerJobInstanceInfo> getAllJobInstances(String jobId) throws SQLException
jobId - SQLExceptionpublic String getUser(String id) throws SQLException
id - SQLExceptionCopyright © 2014–2016 Apache Software Foundation. All rights reserved.