public class JobData extends CommonData
Job
,
Developer documentation: Plug-ins, jobs and job agentsModifier and Type | Field and Description |
---|---|
private int |
activeProjectId |
private java.util.Set<ArrayDesignData> |
arrayDesigns |
private java.lang.Integer |
contextItem |
private java.lang.Integer |
contextType |
private java.util.Date |
created |
private java.util.Set<DerivedBioAssayData> |
derivedBioAssays |
private boolean |
dryRun |
private java.util.Date |
ended |
private int |
estimatedExecutionTime |
private java.lang.String |
executeCommand |
private ExperimentData |
experiment |
private java.lang.String |
externalId |
private java.lang.Integer |
jobAgentId |
static int |
MAX_COMMAND_LENGTH
The maximum allowed length of the execute command.
|
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum allowed length of the external ID.
|
static int |
MAX_PLUGIN_VERSION_LENGTH
The maximum allowed length of the plugin version.
|
static int |
MAX_SERVER_LENGTH
The maximum allowed length of the server name.
|
static int |
MAX_SIGNAL_TRANSPORTER_LENGTH
The maximum allowed length of the signal transporter string.
|
static int |
MAX_STACK_TRACE_LENGTH
The maximum allowed length of the stack trace message.
|
static int |
MAX_STATUS_MESSAGE_LENGTH
The maximum allowed length of the status message.
|
static int |
MAX_SUBCONTEXT_LENGTH
The maximum allowed length of the subcontext name.
|
private java.util.Set<MessageData> |
messages |
private java.util.Map<java.lang.String,ParameterValueData<?>> |
parameters |
private int |
parameterVersion |
private int |
percentComplete |
private PluginConfigurationData |
pluginConfiguration |
private PluginDefinitionData |
pluginDefinition |
private java.lang.String |
pluginVersion |
private int |
priority |
private java.util.Set<RawBioAssayData> |
rawBioAssays |
private boolean |
removeJobWhenFinished |
private java.util.Date |
scheduled |
private boolean |
sendMessage |
private java.lang.String |
server |
private java.lang.String |
signalTransporter |
private java.lang.String |
stackTrace |
private java.util.Date |
started |
private int |
status |
private java.lang.String |
statusMessage |
private java.lang.String |
subContext |
private java.util.Set<TransformationData> |
transformations |
private int |
type |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
JobData() |
Modifier and Type | Method and Description |
---|---|
int |
getActiveProjectId()
The ID of the project that should be made active when running this job.
|
(package private) java.util.Set<ArrayDesignData> |
getArrayDesigns()
This is the inverse end.
|
java.lang.Integer |
getContextItem()
The item type of the context that was active when configuring
this job. null = no context was known
|
java.lang.Integer |
getContextType()
The context type that was active when configuring
this job. 0 = single item, 1 = list
|
java.util.Date |
getCreated()
Get the date and time the job was created.
|
(package private) java.util.Set<DerivedBioAssayData> |
getDerivedBioAssays()
This is the inverse end.
|
java.util.Date |
getEnded()
Get the date and time the job was ended or null if the job hasn't ended.
|
int |
getEstimatedExecutionTime()
Get the estimated execution time of the job.
0 = < 1 minute, 1 = 1 - 10 minutes, 2 = < 1 hour, 3 = > 1 hour
|
java.lang.String |
getExecuteCommand()
The command to send to the plug-in when starting to
execute it.
|
ExperimentData |
getExperiment()
The experiment this job is a part of.
|
java.lang.String |
getExternalId()
External ID of a job running on an external system.
|
java.lang.Integer |
getJobAgentId()
The ID of the job agent this job should run/is running/was running on.
|
(package private) java.util.Set<MessageData> |
getMessages()
This is the inverse end.
|
java.util.Map<java.lang.String,ParameterValueData<?>> |
getParameters()
The parameters for this job.
|
int |
getParameterVersion()
Get the parameter version of the configuration used for this job.
|
int |
getPercentComplete()
If the job is running, how many percent has been completed.
|
PluginConfigurationData |
getPluginConfiguration()
The plugin configuration for the plugin.
|
PluginDefinitionData |
getPluginDefinition()
The plugin that executes the job.
|
java.lang.String |
getPluginVersion()
Get the version of the plugin used to execute this job at the time the
job was executed or registered.
|
int |
getPriority()
The jobs priority.
|
(package private) java.util.Set<RawBioAssayData> |
getRawBioAssays()
This is the inverse end.
|
boolean |
getRemoveJobWhenFinished()
If the core should delete the job when it's finished successfully.
|
java.util.Date |
getScheduled()
Get the date and time the job was scheduled to the job queue, or null
if it hasn't been scheduled yet.
|
boolean |
getSendMessage()
If the core should send a message to the owner when the job is finished
or not.
|
java.lang.String |
getServer()
The name of the server where the job is executing.
|
java.lang.String |
getSignalTransporter()
Identifies the signal transporter to use.
|
java.lang.String |
getStackTrace()
Get the stack trace in case of an error
|
java.util.Date |
getStarted()
Get the date and time the job was started or null if the job hasn't been started.
|
int |
getStatus()
Get the status of the job. 1 = waiting, 2 = running, 3 = completed ok, 4 = error
|
java.lang.String |
getStatusMessage()
Get a status message.
|
java.lang.String |
getSubContext()
The name of the subcontext that was active whjen configuring
this job.
|
(package private) java.util.Set<TransformationData> |
getTransformations()
This is the inverse end.
|
int |
getType()
The type of job: 1 = run plugin, 2 = other
|
boolean |
isDryRun()
If the job should be/was executed as a dry-run job.
|
void |
setActiveProjectId(int activeProjectId) |
(package private) void |
setArrayDesigns(java.util.Set<ArrayDesignData> arrayDesigns) |
void |
setContextItem(java.lang.Integer contextItem) |
void |
setContextType(java.lang.Integer contextType) |
void |
setCreated(java.util.Date created) |
(package private) void |
setDerivedBioAssays(java.util.Set<DerivedBioAssayData> derivedBioAssays) |
void |
setDryRun(boolean dryRun) |
void |
setEnded(java.util.Date ended) |
void |
setEstimatedExecutionTime(int estimatedExecutionTime) |
void |
setExecuteCommand(java.lang.String command) |
void |
setExperiment(ExperimentData experiment) |
void |
setExternalId(java.lang.String externalId) |
void |
setJobAgentId(java.lang.Integer jobAgentId) |
(package private) void |
setMessages(java.util.Set<MessageData> messages) |
(package private) void |
setParameters(java.util.Map<java.lang.String,ParameterValueData<?>> parameters) |
void |
setParameterVersion(int parameterVersion) |
void |
setPercentComplete(int percentComplete) |
void |
setPluginConfiguration(PluginConfigurationData pluginConfiguration) |
void |
setPluginDefinition(PluginDefinitionData pluginDefinition) |
void |
setPluginVersion(java.lang.String pluginVersion) |
void |
setPriority(int priority) |
(package private) void |
setRawBioAssays(java.util.Set<RawBioAssayData> rawBioAssays) |
void |
setRemoveJobWhenFinished(boolean removeJobWhenFinished) |
void |
setScheduled(java.util.Date scheduled) |
void |
setSendMessage(boolean sendMessage) |
void |
setServer(java.lang.String server) |
void |
setSignalTransporter(java.lang.String signalTransporter) |
void |
setStackTrace(java.lang.String stackTrace) |
void |
setStarted(java.util.Date started) |
void |
setStatus(int status) |
void |
setStatusMessage(java.lang.String statusMessage) |
void |
setSubContext(java.lang.String subContext) |
(package private) void |
setTransformations(java.util.Set<TransformationData> transformations) |
void |
setType(int type) |
getDescription, getName, isRemoved, setDescription, setName, setRemoved
getItemKey, getProjectKey, setItemKey, setProjectKey
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
getOwner, setOwner
private int type
public static final int MAX_EXTERNAL_ID_LENGTH
private java.lang.String externalId
private PluginDefinitionData pluginDefinition
private PluginConfigurationData pluginConfiguration
private ExperimentData experiment
public static final int MAX_PLUGIN_VERSION_LENGTH
private java.lang.String pluginVersion
private int parameterVersion
private boolean sendMessage
private boolean removeJobWhenFinished
private int status
private boolean dryRun
public static final int MAX_COMMAND_LENGTH
private java.lang.String executeCommand
public static final int MAX_STATUS_MESSAGE_LENGTH
private java.lang.String statusMessage
public static final int MAX_STACK_TRACE_LENGTH
private java.lang.String stackTrace
private int estimatedExecutionTime
private int percentComplete
private int priority
private int activeProjectId
private java.util.Date created
private java.util.Date scheduled
private java.util.Date started
private java.util.Date ended
public static final int MAX_SERVER_LENGTH
private java.lang.String server
private java.lang.Integer contextItem
private java.lang.Integer contextType
public static final int MAX_SUBCONTEXT_LENGTH
private java.lang.String subContext
public static final int MAX_SIGNAL_TRANSPORTER_LENGTH
private java.lang.String signalTransporter
private java.lang.Integer jobAgentId
private java.util.Map<java.lang.String,ParameterValueData<?>> parameters
private java.util.Set<MessageData> messages
private java.util.Set<DerivedBioAssayData> derivedBioAssays
private java.util.Set<RawBioAssayData> rawBioAssays
private java.util.Set<ArrayDesignData> arrayDesigns
private java.util.Set<TransformationData> transformations
public int getType()
public void setType(int type)
public java.lang.String getExternalId()
public void setExternalId(java.lang.String externalId)
public PluginDefinitionData getPluginDefinition()
public void setPluginDefinition(PluginDefinitionData pluginDefinition)
public PluginConfigurationData getPluginConfiguration()
public void setPluginConfiguration(PluginConfigurationData pluginConfiguration)
public ExperimentData getExperiment()
public void setExperiment(ExperimentData experiment)
public java.lang.String getPluginVersion()
public void setPluginVersion(java.lang.String pluginVersion)
public int getParameterVersion()
public void setParameterVersion(int parameterVersion)
public boolean getSendMessage()
public void setSendMessage(boolean sendMessage)
public boolean getRemoveJobWhenFinished()
public void setRemoveJobWhenFinished(boolean removeJobWhenFinished)
public int getStatus()
public void setStatus(int status)
public boolean isDryRun()
public void setDryRun(boolean dryRun)
public java.lang.String getExecuteCommand()
public void setExecuteCommand(java.lang.String command)
public java.lang.String getStatusMessage()
public void setStatusMessage(java.lang.String statusMessage)
public java.lang.String getStackTrace()
public void setStackTrace(java.lang.String stackTrace)
public int getEstimatedExecutionTime()
public void setEstimatedExecutionTime(int estimatedExecutionTime)
public int getPercentComplete()
public void setPercentComplete(int percentComplete)
public int getPriority()
public void setPriority(int priority)
public int getActiveProjectId()
public void setActiveProjectId(int activeProjectId)
public java.util.Date getCreated()
public void setCreated(java.util.Date created)
public java.util.Date getScheduled()
public void setScheduled(java.util.Date scheduled)
public java.util.Date getStarted()
public void setStarted(java.util.Date started)
public java.util.Date getEnded()
public void setEnded(java.util.Date ended)
public java.lang.String getServer()
public void setServer(java.lang.String server)
public java.lang.Integer getContextItem()
public void setContextItem(java.lang.Integer contextItem)
public java.lang.Integer getContextType()
public void setContextType(java.lang.Integer contextType)
public java.lang.String getSubContext()
public void setSubContext(java.lang.String subContext)
public java.lang.String getSignalTransporter()
public void setSignalTransporter(java.lang.String signalTransporter)
public java.lang.Integer getJobAgentId()
JobAgentData
since it would then be impossible to delete a job agent without also deleting
all jobs that has been running on it.public void setJobAgentId(java.lang.Integer jobAgentId)
public java.util.Map<java.lang.String,ParameterValueData<?>> getParameters()
void setParameters(java.util.Map<java.lang.String,ParameterValueData<?>> parameters)
java.util.Set<MessageData> getMessages()
MessageData.getJob()
void setMessages(java.util.Set<MessageData> messages)
java.util.Set<DerivedBioAssayData> getDerivedBioAssays()
DerivedBioAssayData.getJob()
void setDerivedBioAssays(java.util.Set<DerivedBioAssayData> derivedBioAssays)
java.util.Set<RawBioAssayData> getRawBioAssays()
RawBioAssayData.getJob()
void setRawBioAssays(java.util.Set<RawBioAssayData> rawBioAssays)
java.util.Set<ArrayDesignData> getArrayDesigns()
ArrayDesignData.getJob()
void setArrayDesigns(java.util.Set<ArrayDesignData> arrayDesigns)
java.util.Set<TransformationData> getTransformations()
TransformationData.getJob()
void setTransformations(java.util.Set<TransformationData> transformations)