org.mmbase.applications.crontab.builders
Class NodeCronEntry
java.lang.Object
org.mmbase.applications.crontab.CronEntry
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
| 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 |
NodeCronEntry
public NodeCronEntry(Node node)
throws Exception
- Throws:
Exception
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