Package net.sf.basedb.util.jobagent
Class JobInfo
- java.lang.Object
-
- net.sf.basedb.util.jobagent.JobInfo
-
public class JobInfo extends Object
Hold information about a job that is running on a job agent.- Version:
- 2.6
- Author:
- nicklas
- Last modified
- $Date: 2015-05-12 11:27:08 +0200 (ti, 12 maj 2015) $
-
-
Field Summary
Fields Modifier and Type Field Description private int
jobId
private Job.ExecutionTime
slot
-
Constructor Summary
Constructors Constructor Description JobInfo(int jobId, Map<String,List<String>> headers)
Create a new JobInfo object using information from the answer to aJobAgentConnection
request.JobInfo(Job job, Job.ExecutionTime slot)
Create a new JobInfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 aJobAgentConnection
object.
-
-
-
Field Detail
-
jobId
private int jobId
-
slot
private Job.ExecutionTime slot
-
-
Constructor Detail
-
JobInfo
public JobInfo(Job job, Job.ExecutionTime slot)
Create a new JobInfo object.
-
JobInfo
JobInfo(int jobId, Map<String,List<String>> headers)
Create a new JobInfo object using information from the answer to aJobAgentConnection
request.
-
-
Method Detail
-
getJobId
public int getJobId()
Get the ID of the job.
-
getSlot
public Job.ExecutionTime getSlot()
Get the slot the job is using on the job agent.
-
toString
public String toString()
Convert the information to a string that is suitable for sening as an answer to aJobAgentConnection
object.
-
-