public class JobInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
jobId |
private Job.ExecutionTime |
slot |
Constructor and Description |
---|
JobInfo(int jobId,
java.util.Map<java.lang.String,java.util.List<java.lang.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(java.lang.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 java.lang.String |
getValue(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers,
java.lang.String header) |
int |
hashCode() |
java.lang.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)
job
- slot
- JobInfo(int jobId, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
JobAgentConnection
request.public int getJobId()
public Job.ExecutionTime getSlot()
public java.lang.String toString()
JobAgentConnection
object.toString
in class java.lang.Object
private java.lang.String getValue(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.lang.String header)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object