|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.operation.JobId
public class JobId
Simple object that encapsulates the individual pieces of data that make up an operation job ID.
This class has some JPA annotations to allow it to be an entity ID specified via @IdClass.
Constructor Summary | |
---|---|
|
JobId(String jobIdString)
|
protected |
JobId(String[] jobIdParts)
|
|
JobId(String jobName,
String jobGroup)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares the strings returned by toString() , assuming obj is another JobId . |
String |
getJobGroup()
The job group allows jobs to be grouped across an individual resource of group. |
String |
getJobName()
The job name makes the job unique among all other jobs in the system. |
int |
hashCode()
Returns the hash code of the string that is returned by toString() . |
protected static String |
joinPartsIntoJobIdString(String... parts)
|
protected void |
setJobGroup(String jobGroup)
This class is designed as a read-only immutable, however, this protected method will allow you to subclass it to make it mutable. |
protected void |
setJobName(String jobName)
This class is designed as a read-only immutable, however, this protected method will allow you to subclass it to make it mutable. |
protected static String[] |
splitJobIdStringIntoParts(String jobId)
|
String |
toString()
Returns the single string that identifies the unique job ID. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobId(String jobName, String jobGroup)
public JobId(String jobIdString)
protected JobId(String[] jobIdParts)
Method Detail |
---|
public String getJobName()
protected void setJobName(String jobName)
jobName
- public String getJobGroup()
protected void setJobGroup(String jobGroup)
jobGroup
- public String toString()
toString
in class Object
Object.toString()
public int hashCode()
toString()
.
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
toString()
, assuming obj
is another JobId
.
equals
in class Object
Object.equals(java.lang.Object)
protected static String[] splitJobIdStringIntoParts(String jobId)
protected static String joinPartsIntoJobIdString(String... parts)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |