com.sun.grid.jgdi.monitoring.filter
public class JobStateFilter extends java.lang.Object implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JobStateFilter.State |
Modifier and Type | Field and Description |
---|---|
static JobStateFilter.State |
ALL
This state includes a other states besides
ZOMBIE . |
static JobStateFilter.State |
HOLD
This state includes
HOLD_USER , HOLD_OPERATOR ,
HOLD_SYSTEM , HOLD_JOBARRAYHOLD , HOLD_JOBHOLD
and HOLD_STARTTIMEHOLD |
static JobStateFilter.State |
HOLD_JOBARRAYHOLD
Jobs in the state hold job array job (
qstat -s hd ) |
static JobStateFilter.State |
HOLD_JOBHOLD
Jobs in the state hold job hold (
qstat -s hj ) |
static JobStateFilter.State |
HOLD_OPERATOR
Jobs in the state hold operator (
qstat -s ho ) |
static JobStateFilter.State |
HOLD_STARTTIMEHOLD
Jobs in the state hold job hold (
qstat -s hj ) |
static JobStateFilter.State |
HOLD_SYSTEM
Jobs in the state hold system (
qstat -s hs ) |
static JobStateFilter.State |
HOLD_USER
Jobs in the state hold user (
qstat -s hu ) |
static JobStateFilter.State |
PENDING
Pending jobs (
qstat -s p ) |
static JobStateFilter.State |
RUNNING
Running jobs (
qstat -s r ) |
static JobStateFilter.State |
SUSPENDED
Suspended jobs (
qstat -s r ) |
static JobStateFilter.State |
ZOMBIE
Zombie jobs.
|
Constructor and Description |
---|
JobStateFilter() |
JobStateFilter(JobStateFilter.State[] states) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determine of this is equal to
obj . |
void |
exclude(JobStateFilter.State state) |
static JobStateFilter |
fill(java.lang.String stateString)
Parse a job state string.
|
int |
getStates() |
java.lang.String |
getStateString()
Get the state string as it can be used for qstat
|
int |
hashCode()
Get the hashcode of this object
|
boolean |
isSet(JobStateFilter.State state)
Determine if jobs in a specific state are included.
|
static JobStateFilter |
parse(java.lang.String stateString)
Parse a job state string.
|
void |
set(JobStateFilter.State state,
boolean flag)
Include/Exclude jobs in specific state
|
void |
setStates(int mask) |
java.lang.String |
toString()
Get a string representation of this object
|
public static final JobStateFilter.State HOLD_USER
qstat -s hu
)public static final JobStateFilter.State HOLD_OPERATOR
qstat -s ho
)public static final JobStateFilter.State HOLD_SYSTEM
qstat -s hs
)public static final JobStateFilter.State PENDING
qstat -s p
)public static final JobStateFilter.State RUNNING
qstat -s r
)public static final JobStateFilter.State SUSPENDED
qstat -s r
)public static final JobStateFilter.State ZOMBIE
qstat -s z
)public static final JobStateFilter.State HOLD_JOBARRAYHOLD
qstat -s hd
)public static final JobStateFilter.State HOLD_JOBHOLD
qstat -s hj
)public static final JobStateFilter.State HOLD_STARTTIMEHOLD
qstat -s hj
)public static final JobStateFilter.State HOLD
HOLD_USER
, HOLD_OPERATOR
,
HOLD_SYSTEM
, HOLD_JOBARRAYHOLD
, HOLD_JOBHOLD
and HOLD_STARTTIMEHOLD
public static final JobStateFilter.State ALL
ZOMBIE
.
Same as qstat -s a
or qstat -s prsh
public JobStateFilter(JobStateFilter.State[] states)
public JobStateFilter()
public static JobStateFilter parse(java.lang.String stateString)
stateString
- the job state stringpublic static JobStateFilter fill(java.lang.String stateString)
stateString
- the job state stringpublic void setStates(int mask)
public int getStates()
public void exclude(JobStateFilter.State state)
public void set(JobStateFilter.State state, boolean flag)
state
- the stateflag
- if true
jobs in the state are included
else they are excludedpublic boolean isSet(JobStateFilter.State state)
true
if jobs in the specific state are includespublic java.lang.String getStateString()
public boolean equals(java.lang.Object obj)
obj
.
Two JobStateFilter
objects are equals if they
include exactly the same jobs statesequals
in class java.lang.Object
obj
- the objtrue
if obj is equal to thispublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007 Sun Microsystems, Inc. All rights reserved.