|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.wmsui.apij.Query
LB QeuryServer Class Wrapped.
This class is used to specify a filter while performing LB server jobs information It allows the user to specify the
Constructor Summary | |
Query()
Default Constructor |
Method Summary | |
void |
clean()
Clean all the filter in the current Query |
Query |
copy()
Make a deep copy of the current query |
boolean |
getExclude(int status_code)
Retrieve the value of the restriction for the specified status |
java.util.Calendar |
getFrom()
Retrieve the set from filter |
boolean |
getInclude(int status_code)
Retrieve the value of the restriction for the specified status |
boolean |
getOwned()
retrieve the owned flag |
java.util.Calendar |
getTo()
Retrieve the set to filter |
java.lang.String |
getUserTag(java.lang.String name)
retrieve UserTag value |
org.glite.jdl.Ad |
getUserTags()
Retrieve all the query user tags |
void |
setExclude(int status_code)
Exclude all the jobs in the specified status. |
void |
setInclude(int status_code)
Including only the jobs in the specified status. |
void |
setOwned()
Retrieve only current certificate owned jobs |
void |
setTimeFrom(java.util.Calendar time)
get all jobs submitted after the specified time |
void |
setTimeFrom(int time)
get all jobs submitted after the specified time |
void |
setTimeTo(java.util.Calendar time)
get all jobs submitted before the specified time |
void |
setTimeTo(int time)
get all jobs submitted before the specified time |
void |
setUserTag(java.lang.String name,
java.lang.String value)
get all jobs submitted with the specified user tag If the attribute already exists is automatically replaced |
void |
setUserTags(org.glite.jdl.Ad tags)
Set all userTags couples in the query. |
java.lang.String |
toString()
Retrieve current query string representation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Query()
Method Detail |
public Query copy()
public void clean()
public java.lang.String toString()
public void setTimeFrom(java.util.Calendar time)
time
- Calendar representing the specified timepublic void setTimeTo(java.util.Calendar time)
time
- Calendar representing the specified timepublic void setTimeFrom(int time)
time
- number of seconds since epochpublic void setTimeTo(int time)
time
- number of seconds since epochpublic void setUserTags(org.glite.jdl.Ad tags)
tags
- a valid ad containing all usertags informationpublic void setUserTag(java.lang.String name, java.lang.String value) throws javax.naming.directory.InvalidAttributeValueException
name
- the name of the user tagvalue
- the value of the user tag
javax.naming.directory.InvalidAttributeValueException
- when the couple name-value has classad syntax errorpublic void setOwned()
public void setInclude(int status_code)
status_code
- must be a valid JobStatus codeJobStatus.UNDEF
,
JobStatus.SUBMITTED
,
JobStatus.WAITING
,
JobStatus.READY
,
JobStatus.SCHEDULED
,
JobStatus.RUNNING
,
JobStatus.DONE
,
JobStatus.CLEARED
,
JobStatus.ABORTED
,
JobStatus.CANCELLED
,
JobStatus.UNKNOWN
,
JobStatus.PURGED
public void setExclude(int status_code)
status_code
- must be a valid JobStatus codeJobStatus.UNDEF
,
JobStatus.SUBMITTED
,
JobStatus.WAITING
,
JobStatus.READY
,
JobStatus.SCHEDULED
,
JobStatus.RUNNING
,
JobStatus.DONE
,
JobStatus.CLEARED
,
JobStatus.ABORTED
,
JobStatus.CANCELLED
,
JobStatus.UNKNOWN
,
JobStatus.PURGED
public java.util.Calendar getFrom()
public java.util.Calendar getTo()
public java.lang.String getUserTag(java.lang.String name) throws java.lang.NoSuchFieldException
name
- the name of the user tag looked for
java.lang.NoSuchFieldException
- if the specified attribute is not setpublic org.glite.jdl.Ad getUserTags()
public boolean getOwned()
public boolean getInclude(int status_code)
status_code
- must be a valid JobStatus code
JobStatus.UNDEF
,
JobStatus.SUBMITTED
,
JobStatus.WAITING
,
JobStatus.READY
,
JobStatus.SCHEDULED
,
JobStatus.RUNNING
,
JobStatus.DONE
,
JobStatus.CLEARED
,
JobStatus.ABORTED
,
JobStatus.CANCELLED
,
JobStatus.UNKNOWN
,
JobStatus.PURGED
public boolean getExclude(int status_code)
status_code
- must be a valid JobStatus code
JobStatus.UNDEF
,
JobStatus.SUBMITTED
,
JobStatus.WAITING
,
JobStatus.READY
,
JobStatus.SCHEDULED
,
JobStatus.RUNNING
,
JobStatus.DONE
,
JobStatus.CLEARED
,
JobStatus.ABORTED
,
JobStatus.CANCELLED
,
JobStatus.UNKNOWN
,
JobStatus.PURGED
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |