|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutableJob
Adds functionality to Job for execution purposes.
Method Summary | |
---|---|
void |
execute()
Perform the job. |
CaArrayFileSet |
getFileSet()
|
java.sql.PreparedStatement |
getUnexpectedErrorPreparedStatement(java.sql.Connection connection)
Returns a prepared statement for the executer of the job to run if the job fails with an unexpected error. |
void |
markAsCancelled()
Set the appropriate fileset and job status values, indicating that the job has been cancelled. |
void |
markAsInProgress()
Set the appropriate fileset and job status values, indicating that the job is in progress. |
void |
markAsInQueue()
Set the appropriate fileset and job status values, indicating that the job is in the queue. |
void |
markAsProcessed()
Set the appropriate job status values, indicating that the job has been processed. |
void |
setJobId(java.util.UUID id)
Set an uuid for the job. |
boolean |
userHasReadAccess(gov.nih.nci.security.authorization.domainobjects.User user)
|
boolean |
userHasWriteAccess(gov.nih.nci.security.authorization.domainobjects.User user)
|
Methods inherited from interface gov.nih.nci.caarray.domain.project.BaseJob |
---|
getChildren, getJobEntityId, getJobEntityName, getJobId, getJobStatus, getJobType, getOwnerName, getParent, getTimeRequested, getTimeStarted, isInProgress |
Method Detail |
---|
void execute()
void setJobId(java.util.UUID id)
id
- the uuid to set.void markAsInQueue()
void markAsCancelled()
void markAsInProgress()
void markAsProcessed()
boolean userHasReadAccess(gov.nih.nci.security.authorization.domainobjects.User user)
user
- the given user
boolean userHasWriteAccess(gov.nih.nci.security.authorization.domainobjects.User user)
user
- the given user
java.sql.PreparedStatement getUnexpectedErrorPreparedStatement(java.sql.Connection connection) throws java.sql.SQLException
connection
- the connection to prepare the statement on
java.sql.SQLException
- if a SQL error occursCaArrayFileSet getFileSet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |