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
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 Details
-
jobId
private int jobId -
slot
-
-
Constructor Details
-
JobInfo
Create a new JobInfo object. -
JobInfo
Create a new JobInfo object using information from the answer to aJobAgentConnection
request.
-
-
Method Details
-
getJobId
public int getJobId()Get the ID of the job. -
getSlot
Get the slot the job is using on the job agent. -
toString
Convert the information to a string that is suitable for sening as an answer to aJobAgentConnection
object. -
getValue
-
equals
-
hashCode
public int hashCode()
-