Package net.sf.basedb.opengrid
Class JobIdentifier
java.lang.Object
net.sf.basedb.opengrid.JobIdentifier
public class JobIdentifier extends Object
Represents an identifier for a job on an Open Grid Scheduler
cluster. The cluster id and job id is required while the BASE
job id is optional.
- Since:
- 1.0
- Author:
- nicklas
-
Field Summary
Fields Modifier and Type Field Description private int
baseJobId
private String
clusterId
private String
clusterJobId
-
Constructor Summary
Constructors Constructor Description JobIdentifier(String clusterId, String clusterJobId)
Creates a job identifier for a job on a cluster that has no known job in BASE.JobIdentifier(String clusterId, String clusterJobId, int baseJobId)
Creates a job identifier for a job on a cluster that has a known job in BASE.JobIdentifier(String clusterId, String clusterJobId, Job baseJob)
Creates a job identifier for a job on a cluster that has a known job in BASE. -
Method Summary
Modifier and Type Method Description boolean
equals(Object other)
Equality is based on the cluster id and job id only.int
getBaseJobId()
Get the corresponding job id in BASE.String
getClusterId()
Get the ID of the cluster the job is located on.String
getClusterJobId()
Get the (Open Grid Schedulre) ID of the job.int
hashCode()
String
toString()
-
Field Details
-
clusterId
-
clusterJobId
-
baseJobId
private final int baseJobId
-
-
Constructor Details
-
JobIdentifier
Creates a job identifier for a job on a cluster that has a known job in BASE. -
JobIdentifier
Creates a job identifier for a job on a cluster that has no known job in BASE. -
JobIdentifier
Creates a job identifier for a job on a cluster that has a known job in BASE.
-
-
Method Details
-
getClusterId
Get the ID of the cluster the job is located on. -
getClusterJobId
Get the (Open Grid Schedulre) ID of the job. -
getBaseJobId
public int getBaseJobId()Get the corresponding job id in BASE. -
equals
Equality is based on the cluster id and job id only. BASE internal id is ignored. -
hashCode
public int hashCode() -
toString
-