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,- ExpressionExperimentDataFetchCommand,- ExpressionExperimentLoadTaskCommand,- ExpressionExperimentReportTaskCommand,- IndexerTaskCommand,- LinkAnalysisTaskCommand,- PreprocessTaskCommand,- SimpleExpressionExperimentMetaData,- SvdTaskCommand,- TwoChannelMissingValueTaskCommand,- UpdateEEDetailsCommand,- UpdatePubMedCommand
 
 public 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 SummaryFields Modifier and Type Field Description static intMAX_QUEUING_MINUTESHow long we will queue a task before giving up and cancelling it (default value)static intMAX_RUNTIME_MINUTES
 - 
Constructor SummaryConstructors Constructor Description TaskCommand()TaskCommand(Long entityId)Convenience constructor for case where all the job needs to know is the id.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetEntityId()IntegergetMaxQueueMinutes()intgetMaxRuntime()BooleangetPersistJobDetails()org.springframework.security.core.context.SecurityContextgetSecurityContext()StringgetSubmitter()Class<?>getTaskClass()StringgetTaskId()booleanisEmailAlert()voidsetEmailAlert(boolean emailAlert)voidsetEntityId(Long entityId)voidsetMaxQueueMinutes(Integer maxQueueMinutes)How long we will allow this task to be queued before giving up.voidsetMaxRuntime(int maxRuntime)voidsetPersistJobDetails(Boolean persistJobDetails)voidsetTaskId(String taskId)
 
- 
- 
- 
Field Detail- 
MAX_RUNTIME_MINUTESpublic static final int MAX_RUNTIME_MINUTES - See Also:
- Constant Field Values
 
 - 
MAX_QUEUING_MINUTESpublic static final int MAX_QUEUING_MINUTES How long we will queue a task before giving up and cancelling it (default value)- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
TaskCommandpublic TaskCommand() 
 - 
TaskCommandpublic TaskCommand(Long entityId) Convenience constructor for case where all the job needs to know is the id.- Parameters:
- entityId- entity id
 
 
- 
 - 
Method Detail- 
getEntityIdpublic Long getEntityId() 
 - 
setEntityIdpublic void setEntityId(Long entityId) 
 - 
getMaxQueueMinutespublic Integer getMaxQueueMinutes() 
 - 
setMaxQueueMinutespublic void setMaxQueueMinutes(Integer maxQueueMinutes) How long we will allow this task to be queued before giving up. Default = TaskRunningService.MAX_QUEUING_MINUTES- Parameters:
- maxQueueMinutes- max queue minutes
 
 - 
getMaxRuntimepublic int getMaxRuntime() - Returns:
- the maxRuntime in minutes
 
 - 
setMaxRuntimepublic void setMaxRuntime(int maxRuntime) - Parameters:
- maxRuntime- the maxRuntime to set (in minutes) before we bail. Default is MAX_RUNTIME_MINUTES
 
 - 
getPersistJobDetailspublic Boolean getPersistJobDetails() - Returns:
- the persistJobDetails
 
 - 
setPersistJobDetailspublic void setPersistJobDetails(Boolean persistJobDetails) - Parameters:
- persistJobDetails- the persistJobDetails to set
 
 - 
getSecurityContextpublic org.springframework.security.core.context.SecurityContext getSecurityContext() 
 - 
getSubmitterpublic String getSubmitter() - Returns:
- the submitter
 
 - 
getTaskClasspublic Class<?> getTaskClass() 
 - 
getTaskIdpublic String getTaskId() 
 - 
setTaskIdpublic void setTaskId(String taskId) - Parameters:
- taskId- task id
 
 - 
isEmailAlertpublic boolean isEmailAlert() 
 - 
setEmailAlertpublic void setEmailAlert(boolean emailAlert) 
 
- 
 
-