|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobRepository
Defines a repository that manages the processing Jobs inside the GRID.
Method Summary | |
---|---|
void |
addJobSources(com.trendmicro.grid.acl.l0.datatypes.Job job,
List<com.trendmicro.grid.acl.l0.datatypes.Source> sources)
Adds sources to a single processing job. |
void |
addJobSources(UUID jobId,
List<com.trendmicro.grid.acl.l0.datatypes.Source> sources)
Adds sources to a single processing job. |
UUID |
createJob()
Prepares a new processing job and returns the job's GUID. |
UUID |
createSubJob(UUID parentJobId)
Prepares a new processing job and returns the job's GUID. |
void |
finalizeJob(com.trendmicro.grid.acl.l0.datatypes.Job job,
com.trendmicro.grid.acl.l0.datatypes.Job.State finalJobState)
Finalizes the specified job (sets it to the final state) or removes the job if it hasn't been started. |
void |
finalizeJob(UUID jobId,
com.trendmicro.grid.acl.l0.datatypes.Job.State finalJobState)
Finalizes the specified job (sets it to the final state) or removes the job if it hasn't been started. |
SharedJobDetails |
getJobDetails(UUID jobId)
Returns the detailed information on a job, idenified by its id. |
Collection<SharedJob> |
getJobs(Collection<UUID> jobIds)
Returns the read & writable information on the jobs, idenified by its ids. |
com.trendmicro.grid.acl.l0.datatypes.UUIDListPage |
getJobsByStateInRange(com.trendmicro.grid.acl.l0.datatypes.Job.State jobState,
Date updatedFromDate,
Date updatedToDate,
int pageNumber)
Returns a paged list of running jobs. |
com.trendmicro.grid.acl.l0.datatypes.Job.State |
getJobState(UUID jobId)
Returns the state of the given job. |
void |
updateJob(com.trendmicro.grid.acl.l0.datatypes.Job job)
Updates the given job inside the persistent store (= the database) |
Method Detail |
---|
UUID createJob()
UUID createSubJob(UUID parentJobId)
parentJobId
- The id of the parent job to bind this job to.
void addJobSources(UUID jobId, List<com.trendmicro.grid.acl.l0.datatypes.Source> sources)
jobId
- the id of the job to add the source to.sources
- The sources to add.void addJobSources(com.trendmicro.grid.acl.l0.datatypes.Job job, List<com.trendmicro.grid.acl.l0.datatypes.Source> sources)
job
- the job to add the source to.sources
- The sources to add.void updateJob(com.trendmicro.grid.acl.l0.datatypes.Job job)
job
- the job to update.
IllegalArgumentException
- in case of the given value is null or doesn't reference an existing job.void finalizeJob(UUID jobId, com.trendmicro.grid.acl.l0.datatypes.Job.State finalJobState) throws IllegalArgumentException
jobId
- The GUID of the job to finalize.finalJobState
- the final state of the job or 'null' to finalize / remove a job that hasn't been started.
IllegalArgumentException
- in case of the final job state is set and not in Job.FINAL_STATES
.void finalizeJob(com.trendmicro.grid.acl.l0.datatypes.Job job, com.trendmicro.grid.acl.l0.datatypes.Job.State finalJobState) throws IllegalArgumentException
job
- The job to finalize.finalJobState
- the final state of the job or 'null' to finalize / remove a job that hasn't been started.
IllegalArgumentException
- in case of the final job state is set and not in Job.FINAL_STATES
.com.trendmicro.grid.acl.l0.datatypes.UUIDListPage getJobsByStateInRange(com.trendmicro.grid.acl.l0.datatypes.Job.State jobState, Date updatedFromDate, Date updatedToDate, int pageNumber)
jobState
- The state of the jobs to list.updatedFromDate
- The inclusive lower bound for the last-update date value
or 'null' if there is no lower bound.updatedToDate
- The exclusive upper bound for the last-update date value
or 'null' if there is no upper bound.pageNumber
- The page number of the list page to return (0 is first page).
com.trendmicro.grid.acl.l0.datatypes.Job.State getJobState(UUID jobId)
jobId
- the id of the job to validate the state of.
Collection<SharedJob> getJobs(Collection<UUID> jobIds)
jobIds
- The GUIDs of the jobs to retur.
SharedJobDetails getJobDetails(UUID jobId)
jobId
- The GUID of the job to return the details for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |