@Transactional(readOnly=true) public class JobBean extends AbstractStatefulBean implements ome.api.JobHandle, ProcessCallback
iQuery, iUpdate, modified, sec| Constructor and Description |
|---|
JobBean()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Does almost nothing.
|
ome.model.jobs.JobStatus |
attach(long id) |
void |
cancelJob() |
protected void |
checkAndRegister() |
void |
close() |
protected void |
errorIfInvalidState() |
ome.model.jobs.Job |
getJob() |
java.lang.Class<? extends ome.api.ServiceInterface> |
getServiceInterface() |
boolean |
jobError() |
java.sql.Timestamp |
jobFinished() |
java.lang.String |
jobMessage() |
boolean |
jobRunning() |
ome.model.jobs.JobStatus |
jobStatus() |
void |
passivate()
Does nothing.
|
void |
processCancelled(Process proc) |
void |
processFinished(Process proc) |
java.lang.String |
setMessage(java.lang.String message) |
void |
setProcessManager(IProcessManager procMgr)
Process Manager Bean injector.
|
java.lang.String |
setStatus(java.lang.String status) |
java.lang.String |
setStatusAndMessage(java.lang.String status,
java.lang.String message) |
void |
setTypesService(ome.api.ITypes typesService)
Types service Bean injector.
|
long |
submit(ome.model.jobs.Job newJob) |
getBeanHelper, getCurrentEventContext, isModified, modified, selfConfigure, setQueryService, setSecuritySystem, setUpdateServicepublic java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
getServiceInterface in interface ome.system.SelfConfigurableService@Transactional public void passivate()
passivate in interface ome.api.StatefulServiceInterface@Transactional public void activate()
jobId is non-null, then
this instance will need to handle re-loading on first
access. (Previously it could not be done here, because the
security system was not configured for transactions during
JavaEE callbacks. This is no longer true.)activate in interface ome.api.StatefulServiceInterface@Transactional(readOnly=true) public void close()
close in interface ome.api.StatefulServiceInterface@Transactional(readOnly=false) public long submit(ome.model.jobs.Job newJob)
submit in interface ome.api.JobHandlepublic ome.model.jobs.JobStatus attach(long id)
attach in interface ome.api.JobHandlepublic void setTypesService(ome.api.ITypes typesService)
typesService - an ITypes.public void setProcessManager(IProcessManager procMgr)
procMgr - a ProcessManager.protected void errorIfInvalidState()
protected void checkAndRegister()
public ome.model.jobs.Job getJob()
getJob in interface ome.api.JobHandlepublic java.sql.Timestamp jobFinished()
jobFinished in interface ome.api.JobHandlepublic ome.model.jobs.JobStatus jobStatus()
jobStatus in interface ome.api.JobHandlepublic java.lang.String jobMessage()
jobMessage in interface ome.api.JobHandlepublic boolean jobRunning()
jobRunning in interface ome.api.JobHandlepublic boolean jobError()
jobError in interface ome.api.JobHandle@Transactional(readOnly=false) public void cancelJob()
cancelJob in interface ome.api.JobHandle@Transactional(readOnly=false) public java.lang.String setStatus(java.lang.String status)
setStatus in interface ome.api.JobHandle@Transactional(readOnly=false) public java.lang.String setMessage(java.lang.String message)
setMessage in interface ome.api.JobHandle@Transactional(readOnly=false)
public java.lang.String setStatusAndMessage(java.lang.String status,
java.lang.String message)
setStatusAndMessage in interface ome.api.JobHandlepublic void processCancelled(Process proc)
processCancelled in interface ProcessCallbackpublic void processFinished(Process proc)
processFinished in interface ProcessCallback