Package com.xpn.xwiki.plugin.scheduler
Class JobState
- java.lang.Object
-
- com.xpn.xwiki.plugin.scheduler.JobState
-
public class JobState extends Object
Wrapper around the Quartz trigger's inner state of a Scheduler Job. This class allows to query the actual status of a Job as a String, typically to be displayed inside the Wiki- Version:
- $Id: 0d3a83b106e3c2f3f012a66f8e68776333c2dd2a $
-
-
Field Summary
Fields Modifier and Type Field Description static String
STATE_BLOCKED
static String
STATE_COMPLETE
static String
STATE_ERROR
static String
STATE_NONE
static String
STATE_NORMAL
static String
STATE_PAUSED
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.quartz.Trigger.TriggerState
getQuartzState()
int
getState()
String
getValue()
void
setQuartzState(org.quartz.Trigger.TriggerState state)
void
setState(int state)
Deprecated.
-
-
-
Field Detail
-
STATE_NORMAL
public static final String STATE_NORMAL
- See Also:
- Constant Field Values
-
STATE_PAUSED
public static final String STATE_PAUSED
- See Also:
- Constant Field Values
-
STATE_BLOCKED
public static final String STATE_BLOCKED
- See Also:
- Constant Field Values
-
STATE_COMPLETE
public static final String STATE_COMPLETE
- See Also:
- Constant Field Values
-
STATE_ERROR
public static final String STATE_ERROR
- See Also:
- Constant Field Values
-
STATE_NONE
public static final String STATE_NONE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JobState
@Deprecated public JobState(int state)
Deprecated.
-
JobState
public JobState(org.quartz.Trigger.TriggerState state)
-
-
Method Detail
-
setState
@Deprecated public void setState(int state)
Deprecated.
-
setQuartzState
public void setQuartzState(org.quartz.Trigger.TriggerState state)
-
getState
public int getState()
-
getQuartzState
public org.quartz.Trigger.TriggerState getQuartzState()
-
getValue
public String getValue()
-
-