|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.crontab.CronEntry
Defines one entry for CronDaemon. This class is used by the CronDaemon.
| Field Summary | |
static int |
CANBEMORE_JOB_TYPE
The 'can be more' type job is like a 'must be one' job, but the run() method of such jobs is even called (when scheduled) if it itself is still running. |
static String |
CANBEMORE_JOB_TYPE_STRING
|
static int |
DEFAULT_JOB_TYPE
|
static String |
DEFAULT_JOB_TYPE_STRING
|
static int |
MUSTBEONE_JOB_TYPE
The default job type is the 'must be one' job. |
static String |
MUSTBEONE_JOB_TYPE_STRING
|
static int |
SHORT_JOB_TYPE
A CronEntry of this type will run without the overhead of an extra thread. |
static String |
SHORT_JOB_TYPE_STRING
|
| Constructor Summary | |
CronEntry(String id,
String cronTime,
String name,
String className,
String configuration)
|
|
CronEntry(String id,
String cronTime,
String name,
String className,
String configuration,
int type)
|
|
CronEntry(String id,
String cronTime,
String name,
String className,
String configuration,
String typeString)
|
|
| Method Summary | |
boolean |
equals(Object o)
|
String |
getClassName()
|
String |
getConfiguration()
|
String |
getCronTime()
|
CronEntryField |
getDayOfMonthEntry()
|
CronEntryField |
getDayOfWeekEntry()
|
CronEntryField |
getHourEntry()
|
String |
getId()
|
CronEntryField |
getMinuteEntry()
|
CronEntryField |
getMonthEntry()
|
String |
getName()
|
Interruptable |
getThread(int i)
|
List |
getThreads()
|
String |
getType()
|
int |
hashCode()
|
void |
init()
|
boolean |
isAlive()
|
boolean |
isAlive(int i)
|
static String |
jobTypeToString(int type)
Convert a jobType int to a jobType String. |
boolean |
kick()
|
void |
setConfiguration(String conf)
|
protected void |
setCronTime(String cronTime)
|
void |
stop()
|
static int |
stringToJobType(String type)
Convert a jobType String to a jobType int. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SHORT_JOB_TYPE
public static final String SHORT_JOB_TYPE_STRING
public static final int MUSTBEONE_JOB_TYPE
public static final String MUSTBEONE_JOB_TYPE_STRING
public static final int CANBEMORE_JOB_TYPE
public static final String CANBEMORE_JOB_TYPE_STRING
public static final int DEFAULT_JOB_TYPE
public static final String DEFAULT_JOB_TYPE_STRING
| Constructor Detail |
public CronEntry(String id,
String cronTime,
String name,
String className,
String configuration)
throws Exception
public CronEntry(String id,
String cronTime,
String name,
String className,
String configuration,
String typeString)
throws Exception
public CronEntry(String id,
String cronTime,
String name,
String className,
String configuration,
int type)
throws Exception
ClassCastException - if className does not refer to a Runnable.
RuntimeException - if the cronTime format isn't correct
Exception| Method Detail |
public void init()
public void stop()
public Interruptable getThread(int i)
public List getThreads()
public boolean isAlive(int i)
public boolean isAlive()
public boolean kick()
protected void setCronTime(String cronTime)
public String getCronTime()
public String getId()
public String getName()
public void setConfiguration(String conf)
public String getConfiguration()
public String getType()
public String getClassName()
public CronEntryField getMinuteEntry()
public CronEntryField getHourEntry()
public CronEntryField getDayOfMonthEntry()
public CronEntryField getMonthEntry()
public CronEntryField getDayOfWeekEntry()
public String toString()
public int hashCode()
public boolean equals(Object o)
public static String jobTypeToString(int type)
type - the job type
public static int stringToJobType(String type)
type - the string representation of the job type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||