public class JobInfo extends Object
Modifier and Type | Field and Description |
---|---|
private int |
jobId |
private Job.ExecutionTime |
slot |
Constructor and Description |
---|
JobInfo(int jobId,
Map<String,List<String>> headers)
Create a new JobInfo object using information from the answer to a
JobAgentConnection request. |
JobInfo(Job job,
Job.ExecutionTime slot)
Create a new JobInfo object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
getJobId()
Get the ID of the job.
|
Job.ExecutionTime |
getSlot()
Get the slot the job is using on the job agent.
|
private String |
getValue(Map<String,List<String>> headers,
String header) |
int |
hashCode() |
String |
toString()
Convert the information to a string that is suitable for sening as an
answer to a
JobAgentConnection object. |
private int jobId
private Job.ExecutionTime slot
public JobInfo(Job job, Job.ExecutionTime slot)
JobInfo(int jobId, Map<String,List<String>> headers)
JobAgentConnection
request.public int getJobId()
public Job.ExecutionTime getSlot()
public String toString()
JobAgentConnection
object.