Class TaskCommand

    • Field Detail

      • MAX_QUEUING_MINUTES

        public 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

      • TaskCommand

        public TaskCommand()
      • TaskCommand

        public TaskCommand​(Long entityId)
        Convenience constructor for case where all the job needs to know is the id.
        Parameters:
        entityId - entity id
    • Method Detail

      • getEntityId

        public Long getEntityId()
      • setEntityId

        public void setEntityId​(Long entityId)
      • getMaxQueueMinutes

        public Integer getMaxQueueMinutes()
      • setMaxQueueMinutes

        public 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
      • getMaxRuntime

        public int getMaxRuntime()
        Returns:
        the maxRuntime in minutes
      • setMaxRuntime

        public void setMaxRuntime​(int maxRuntime)
        Parameters:
        maxRuntime - the maxRuntime to set (in minutes) before we bail. Default is MAX_RUNTIME_MINUTES
      • getPersistJobDetails

        public Boolean getPersistJobDetails()
        Returns:
        the persistJobDetails
      • setPersistJobDetails

        public void setPersistJobDetails​(Boolean persistJobDetails)
        Parameters:
        persistJobDetails - the persistJobDetails to set
      • getSecurityContext

        public org.springframework.security.core.context.SecurityContext getSecurityContext()
      • getSubmitter

        public String getSubmitter()
        Returns:
        the submitter
      • getTaskClass

        public Class<?> getTaskClass()
      • getTaskId

        public String getTaskId()
      • setTaskId

        public void setTaskId​(String taskId)
        Parameters:
        taskId - task id
      • isEmailAlert

        public boolean isEmailAlert()
      • setEmailAlert

        public void setEmailAlert​(boolean emailAlert)