org.mmbase.applications.crontab.builders
Class NodeCronEntry

Package class diagram package NodeCronEntry
java.lang.Object
  extended by org.mmbase.applications.crontab.CronEntry
      extended by org.mmbase.applications.crontab.builders.NodeCronEntry
All Implemented Interfaces:
Serializable

public class NodeCronEntry
extends CronEntry

CronEntries defined by nodes of the type 'cronjobs' store several aspects of the cron entries in fields. isActive() is implemented using related 'mmservers' objects.

Since:
MMBase-1.8.6
Version:
$Id: NodeCronEntry.java 42087 2010-05-03 12:46:24Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.applications.crontab.CronEntry
CronEntry.Type
 
Field Summary
 
Fields inherited from class org.mmbase.applications.crontab.CronEntry
ALL, count, cronTime, lastCost, lastRun, maxDuration
 
Constructor Summary
NodeCronEntry(Node node)
           
 
Method Summary
 boolean equals(Object o)
          Two NodeCronEntry's as considered equal if they have the same id
protected  Node getNode()
           
 String getServers()
          A String indicating on the servers on which this Job must run.
protected  void incCount()
           
 boolean isActive()
          Whether this Entry would run.
 void setConfiguration(String conf)
           
protected  void setCronTime(String ct)
           
protected  void setLastCost(int i)
           
protected  void setLastRun(Date d)
           
 String toString()
           
 
Methods inherited from class org.mmbase.applications.crontab.CronEntry
getClassName, getConfiguration, getCount, getCronTime, getDayOfMonthEntry, getDayOfWeekEntry, getHourEntry, getId, getLastCost, getLastRun, getMaxDuration, getMinuteEntry, getMonthEntry, getName, getThread, getThreads, getType, hashCode, init, interrupt, isAlive, isAlive, isMustBeOne, kick, stop
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeCronEntry

public NodeCronEntry(Node node)
              throws Exception
Throws:
Exception
Method Detail

getNode

protected Node getNode()

getServers

public String getServers()
Description copied from class: CronEntry
A String indicating on the servers on which this Job must run. This may be regular expression and used in the implementation of CronEntry.isActive(), but this is not required.

Overrides:
getServers in class CronEntry

isActive

public boolean isActive()
Description copied from class: CronEntry
Whether this Entry would run. It would not run if it is only scheduled to run on other machines.

Overrides:
isActive in class CronEntry

setCronTime

protected void setCronTime(String ct)
Overrides:
setCronTime in class CronEntry

setConfiguration

public void setConfiguration(String conf)
Overrides:
setConfiguration in class CronEntry

setLastRun

protected void setLastRun(Date d)
Overrides:
setLastRun in class CronEntry

incCount

protected void incCount()
Overrides:
incCount in class CronEntry

setLastCost

protected void setLastCost(int i)
Overrides:
setLastCost in class CronEntry

toString

public String toString()
Overrides:
toString in class CronEntry

equals

public boolean equals(Object o)
Two NodeCronEntry's as considered equal if they have the same id

Overrides:
equals in class CronEntry


MMBase Crontab 2.0-SNAPSHOT - 2013-05-29T22:12