|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedg.workload.userinterface.jclient.JobId
Constructor Summary | |
JobId()
Instantiates an empty JobId object |
|
JobId(java.lang.String jid)
Instantiates a JobId object from the passed dg_jobId in String format. |
|
JobId(Url lbAddress,
java.lang.String unique)
Intantiates a JobId object providing full information: LB server address and unique string |
Method Summary | |
void |
clear()
Unsets the JobId instance. |
boolean |
equals(JobId jid)
Check if the job identifiers are equals |
void |
fromString(java.lang.String jid)
Set the JobId instance from the String given as input. |
Url |
getServer()
|
java.lang.String |
getUnique()
|
boolean |
isSet()
Check whether the jobId has been already created (true) or not (false) |
void |
setJobId(Url lbServer)
Set the JobId instance from the dg_jobId in String format given as input. |
java.lang.String |
toString()
Converts the jobId into a String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JobId()
public JobId(Url lbAddress, java.lang.String unique)
lbAddress
- the Logging and Bookkeeping server addresspublic JobId(java.lang.String jid) throws java.lang.IllegalArgumentException, java.lang.NumberFormatException
jid
- a String representig a classAd expression
java.lang.IllegalArgumentException
- - When the String is passed in a wrong format
java.lang.NumberFormatException
- Unable to find the integer LB server port number inside the jobidMethod Detail |
public boolean equals(JobId jid)
jid
- the JobId instance to check for equality
public void clear()
public boolean isSet()
public java.lang.String toString()
public void fromString(java.lang.String jid) throws java.lang.IllegalArgumentException, java.lang.NumberFormatException
jid
- the job identifier string representation
java.lang.IllegalArgumentException
- Wrong jobId format
java.lang.NumberFormatException
- Unable to find the integer LB server port number inside the jobidpublic void setJobId(Url lbServer) throws java.lang.RuntimeException
lbServer
- An Url instance representing the LB address
RunTimeException
- unable to create a JobId
java.lang.RuntimeException
public Url getServer() throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
- If the jobId has not been initialised yetpublic java.lang.String getUnique() throws java.lang.NoSuchFieldException
chFieldException
- If the jobId has not been initialised yet
java.lang.NoSuchFieldException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |