com.ibm.ia.global.jobs

Interface JobRunInfo



  • public interface JobRunInfo
    An encapsulation of JobRun information for administrative purposes. The JobRunInfo is retrieved through the GlobalRuntimeMXBean.
    See Also:
    JobRun
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.Date getAbortStartTime()
      Returns the time at which this JobRunInfo received an abort request or null if an abort request was not received.
      java.util.Date getCreationTime()
      Returns the creation time of this JobRunInfo.
      java.lang.String getDescription()
      Returns the optionally provided description of this JobRunInfo.
      java.util.Date getEndTime()
      Returns the end time of this JobRunInfo or null if the job run has not yet ended.
      JobRunId getId()
      Returns the JobRunId for this JobRunInfo.
      JobOrigin getJobOrigin()
      Returns the origin of this JobRunInfo.
      JobResultInfo getJobResultInfo()
      Returns the {@code JobResultInfo) for this job, or null if there is no result.
      long getRunDuration()
      Returns the duration of the job run in milliseconds.
      java.util.Date getStartTime()
      Returns the start time of this JobRunInfo or null if the job run has not yet started.
      JobStatus getStatus()
      Returns the status of the JobRunInfo.
      boolean isAbandoned()
      Returns whether or not this job run is abandoned.
      boolean isRestart()
      Returns whether or not this job run was restarted by the global runtime.
    • Method Detail

      • getId

        JobRunId getId()
        Returns the JobRunId for this JobRunInfo.
        Returns:
        the job run id.
      • getDescription

        java.lang.String getDescription()
        Returns the optionally provided description of this JobRunInfo. The name is inherited from the Job.
        Returns:
        the description or null.
      • getStatus

        JobStatus getStatus()
        Returns the status of the JobRunInfo.
        Returns:
        the job run status
      • getCreationTime

        java.util.Date getCreationTime()
        Returns the creation time of this JobRunInfo.
        Returns:
        the creation time.
      • getStartTime

        java.util.Date getStartTime()
        Returns the start time of this JobRunInfo or null if the job run has not yet started.
        Returns:
        the start time or null
      • getEndTime

        java.util.Date getEndTime()
        Returns the end time of this JobRunInfo or null if the job run has not yet ended.
        Returns:
        the end time of the JobRunInfo or null.
      • getRunDuration

        long getRunDuration()
        Returns the duration of the job run in milliseconds. If the job has not yet finished running, or was aborted, -1 is returned.
        Returns:
        The duration of the job run in milliseconds.
      • getAbortStartTime

        java.util.Date getAbortStartTime()
        Returns the time at which this JobRunInfo received an abort request or null if an abort request was not received.
        Returns:
        the abort start time.
      • getJobResultInfo

        JobResultInfo getJobResultInfo()
        Returns the {@code JobResultInfo) for this job, or null if there is no result.
        Returns:
        the {@code JobResultInfo).
      • isAbandoned

        boolean isAbandoned()
        Returns whether or not this job run is abandoned. Running jobs are abandoned when the global runtime is reset. When the global runtime restarts abandoned jobs are automatically resubmitted.
        Returns:
        Whether or not this JobRunInfo is abandoned.
      • isRestart

        boolean isRestart()
        Returns whether or not this job run was restarted by the global runtime. Jobs are automatically restarted by the global runtime if they have been abandoned due to the global runtime restarting.
        Returns:
        Whether or not this JobRunInfo is a restarted job run.
      • getJobOrigin

        JobOrigin getJobOrigin()
        Returns the origin of this JobRunInfo.
        Returns:
        The job origin.

© Copyright IBM 2017