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.longgetWaitingTime()Returns the wait time of this job.
-
-
-
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
-
getWaitingTime
public long getWaitingTime()
Returns the wait time of this job.- Returns:
- the wait time of this job in mirco seconds
-
-