org.mmbase.applications.crontab
Class RunningCronEntry

java.lang.Object
  extended by org.mmbase.applications.crontab.RunningCronEntry
All Implemented Interfaces:
Serializable, Comparable<Delayed>, Delayed

public class RunningCronEntry
extends Object
implements Delayed, Serializable

Version:
$Id: RunningCronEntry.java 42084 2010-05-03 12:24:14Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected  CronEntry entry
           
protected  String machine
           
protected  String message
           
(package private) static long serialVersionUID
           
protected  Date started
           
protected  int thread
           
 
Constructor Summary
RunningCronEntry(CronEntry entry, Date started, String machine, int thread)
           
RunningCronEntry(CronEntry entry, Date started, String machine, int thread, String message)
           
 
Method Summary
 int compareTo(Delayed d)
           
 boolean equals(Object o)
           
 CronEntry getCronEntry()
           
 long getDelay(TimeUnit unit)
           
 int getId()
           
 String getMachine()
           
 String getMessage()
           
 Date getStart()
          Time when this jobs was supposed to be started.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

entry

protected final CronEntry entry

started

protected final Date started

thread

protected final int thread

machine

protected final String machine

message

protected final String message
Constructor Detail

RunningCronEntry

public RunningCronEntry(CronEntry entry,
                        Date started,
                        String machine,
                        int thread,
                        String message)

RunningCronEntry

public RunningCronEntry(CronEntry entry,
                        Date started,
                        String machine,
                        int thread)
Method Detail

getCronEntry

public CronEntry getCronEntry()

getStart

public Date getStart()
Time when this jobs was supposed to be started. Optional, and not essential for equals. Jobs is uniquely identify by id and thread.


getId

public int getId()

getMachine

public String getMachine()

getMessage

public String getMessage()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getDelay

public long getDelay(TimeUnit unit)
Specified by:
getDelay in interface Delayed

compareTo

public int compareTo(Delayed d)
Specified by:
compareTo in interface Comparable<Delayed>

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null