org.mmbase.applications.crontab
Enum CronEntry.Type

java.lang.Object
  extended by java.lang.Enum<CronEntry.Type>
      extended by org.mmbase.applications.crontab.CronEntry.Type
All Implemented Interfaces:
Serializable, Comparable<CronEntry.Type>
Enclosing class:
CronEntry

public static enum CronEntry.Type
extends Enum<CronEntry.Type>


Enum Constant Summary
BALANCE
          A job of this type runs exactly once in the load balanced mmbase cluster.
BALANCE_MUSTBEONE
          As BALANCED, but no job is started as the previous was not yet finished.
CANBEMORE
          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.
DISABLED
          Don't run at all
MUSTBEONE
          The default job type is the 'must be one' job.
SHORT
          A CronEntry of this type will run without the overhead of an extra thread.
 
Field Summary
static CronEntry.Type DEFAULT
           
 
Method Summary
static CronEntry.Type valueOf(int i)
           
static CronEntry.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CronEntry.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SHORT

public static final CronEntry.Type SHORT
A CronEntry of this type will run without the overhead of an extra thread. This does mean though that such a job will halt the cron-daemon itself. Such jobs must therefore be extremely short-living, and used with care (only if you have a lot of those which must run very often) Since we use a thread-pool for other types of jobs now any way, it is doubtfull if it is ever usefull to opt for this type.


MUSTBEONE

public static final CronEntry.Type MUSTBEONE
The default job type is the 'must be one' job. Such jobs are not started if the same job is still running. They are wrapped in a seperate thread, so other jobs can be started during the execution of this one.


CANBEMORE

public static final CronEntry.Type CANBEMORE
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.


DISABLED

public static final CronEntry.Type DISABLED
Don't run at all


BALANCE

public static final CronEntry.Type BALANCE
A job of this type runs exactly once in the load balanced mmbase cluster. Before the job is started, communication between mmbase's in the server will be done, to negotiate who is going to do it.


BALANCE_MUSTBEONE

public static final CronEntry.Type BALANCE_MUSTBEONE
As BALANCED, but no job is started as the previous was not yet finished.

Field Detail

DEFAULT

public static CronEntry.Type DEFAULT
Method Detail

values

public static CronEntry.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CronEntry.Type c : CronEntry.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CronEntry.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

valueOf

public static CronEntry.Type valueOf(int i)


MMBase 2.0-SNAPSHOT - null