Package net.sf.basedb.opengrid
Class JobIdentifier
java.lang.Object
net.sf.basedb.opengrid.JobIdentifier
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
-
Constructor Summary
ConstructorDescriptionJobIdentifier
(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
-
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
-