Class Job


  • public class Job
    extends java.lang.Object
    A class represents an inference job.
    • Constructor Summary

      Constructors 
      Constructor Description
      Job​(ModelInfo modelInfo, ai.djl.modality.Input input)
      Constructs a new Job instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getBegin()
      Returns the job begin time.
      ai.djl.modality.Input getInput()
      Returns the input data.
      ModelInfo getModel()
      Returns the model that associated with this job.
      long getScheduled()
      Returns the job scheduled time.
      void setScheduled()
      Marks the job has been scheduled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Job

        public Job​(ModelInfo modelInfo,
                   ai.djl.modality.Input input)
        Constructs a new Job instance.
        Parameters:
        modelInfo - the model to run the job
        input - the input data
    • Method Detail

      • getModel

        public ModelInfo getModel()
        Returns the model that associated with this job.
        Returns:
        the model that associated with this job
      • getInput

        public ai.djl.modality.Input getInput()
        Returns the input data.
        Returns:
        the input data
      • getBegin

        public long getBegin()
        Returns the job begin time.
        Returns:
        the job begin time
      • getScheduled

        public long getScheduled()
        Returns the job scheduled time.
        Returns:
        the job scheduled time
      • setScheduled

        public void setScheduled()
        Marks the job has been scheduled.