Class JobContext

  • Direct Known Subclasses:
    RunnerJobContext

    public class JobContext
    extends java.lang.Object
    • Constructor Detail

      • JobContext

        protected JobContext​(Job job)
        Keep constructor package protected to remove confusion on how to instantiate the JobContext. Tip - To use the JobContext in your Job, pass JobContext.Null
        Parameters:
        job - the job for this JobContext
    • Method Detail

      • getJobId

        public java.util.UUID getJobId()
      • getJobName

        public java.lang.String getJobName()
      • getJobState

        public StateName getJobState()
      • getCreatedAt

        public java.time.Instant getCreatedAt()
      • getUpdatedAt

        public java.time.Instant getUpdatedAt()
      • getSignature

        public java.lang.String getSignature()
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.Object> getMetadata()