Package ubic.gemma.core.job
Class TaskCommand
- java.lang.Object
-
- ubic.gemma.core.job.TaskCommand
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArrayDesignProbeMapTaskCommand
,ArrayDesignRepeatScanTaskCommand
,BioAssayOutlierProcessingTaskCommand
,CharacteristicUpdateCommand
,CoexSearchTaskCommand
,DifferentialExpressionAnalysisTaskCommand
,DifferentialExpressionSearchTaskCommand
,DiffExMetaAnalyzerTaskCommand
,EntityTaskCommand
,ExpressionExperimentDataFetchCommand
,ExpressionExperimentLoadTaskCommand
,ExpressionExperimentReportTaskCommand
,IndexerTaskCommand
,LinkAnalysisTaskCommand
,PreprocessTaskCommand
,SimpleExpressionExperimentLoadTaskCommand
,SvdTaskCommand
,TwoChannelMissingValueTaskCommand
,UpdateEEDetailsCommand
,UpdatePubMedCommand
public abstract class TaskCommand extends Object implements Serializable
This command class is used to allow communication of parameters for a task between a client and task running service, which might be on a different computer. This class can be used directly, or extended to create a command object to pass parameters for a specific task. See for exampleExpressionExperimentLoadTaskCommand
. A entityId field is provided as a convenience for the case when a primary key is all that is really needed.- Author:
- keshav
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
MAX_QUEUING_MILLIS
How long we will queue a task before giving up and cancelling it (default value)static long
MAX_RUNTIME_MILLIS
-
Constructor Summary
Constructors Constructor Description TaskCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Task<?>>
getTaskClass()
Obtain the class of theTask
object that will be run for this command.
-
-
-
Field Detail
-
MAX_RUNTIME_MILLIS
public static final long MAX_RUNTIME_MILLIS
- See Also:
- Constant Field Values
-
MAX_QUEUING_MILLIS
public static final long MAX_QUEUING_MILLIS
How long we will queue a task before giving up and cancelling it (default value)- See Also:
- Constant Field Values
-
-
Method Detail
-
getTaskClass
@Nullable public Class<? extends Task<?>> getTaskClass()
Obtain the class of theTask
object that will be run for this command.If null, the task command cannot be submitted through
TaskRunningService.submitTaskCommand(TaskCommand)
and a task object must be explicitly created.For now, this how we map from TaskCommand to Task that actually runs it. We have to have this mapping somewhere until we make Tasks themselves serializable. Tasks are not readily serializable because they have dependencies to Spring services. at which point TaskCommand can be deprecated(or remain as TaskContext).
-
-