Package ai.djl.serving.wlm
Class Job
- java.lang.Object
-
- ai.djl.serving.wlm.Job
-
public class Job extends java.lang.ObjectA class represents an inference job.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBegin()Returns the job begin time.ai.djl.modality.InputgetInput()Returns the input data.ModelInfogetModel()Returns the model that associated with this job.longgetScheduled()Returns the job scheduled time.voidsetScheduled()Marks the job has been scheduled.
-
-
-
Constructor Detail
-
Job
public Job(ModelInfo modelInfo, ai.djl.modality.Input input)
Constructs a newJobinstance.- Parameters:
modelInfo- the model to run the jobinput- 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.
-
-