2.17.2: 2011-06-17

net.sf.basedb.util.jobagent
Class JobInfo

java.lang.Object
  extended by 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: 2008-09-11 22:08:14 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  int jobId
           
private  Job.ExecutionTime slot
           
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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.

Parameters:
job -
slot -

JobInfo

JobInfo(int jobId,
        Map<String,List<String>> headers)
Create a new JobInfo object using information from the answer to a JobAgentConnection 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 a JobAgentConnection object.

Overrides:
toString in class Object

getValue

private String getValue(Map<String,List<String>> headers,
                        String header)

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

2.17.2: 2011-06-17