railo.runtime.spooler
Class SpoolerTaskSupport

java.lang.Object
  extended by railo.runtime.spooler.SpoolerTaskSupport
All Implemented Interfaces:
Serializable, SpoolerTask
Direct Known Subclasses:
ChildSpoolerTask, MailSpoolerTask, SpoolerTaskWS, TestTask

public abstract class SpoolerTaskSupport
extends Object
implements SpoolerTask

See Also:
Serialized Form

Constructor Summary
SpoolerTaskSupport(ExecutionPlan[] plans)
          Constructor of the class
 
Method Summary
 boolean closed()
           
 long getCreation()
           
 Array getExceptions()
           
 String getId()
           
 ExecutionPlan[] getPlans()
           
 long lastExecution()
          return last execution of this task
 long nextExecution()
           
 void setClosed(boolean closed)
           
 void setId(String id)
           
 void setLastExecution(long lastExecution)
           
 void setNextExecution(long nextExecution)
           
 int tries()
          returns how many tries to send are already done
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface railo.runtime.spooler.SpoolerTask
detail, execute, getType, subject
 

Constructor Detail

SpoolerTaskSupport

public SpoolerTaskSupport(ExecutionPlan[] plans)
Constructor of the class

Parameters:
plans -
timeOffset - offset from the local time to the config time
Method Detail

getId

public final String getId()
Specified by:
getId in interface SpoolerTask

setId

public final void setId(String id)
Specified by:
setId in interface SpoolerTask

lastExecution

public final long lastExecution()
return last execution of this task

Specified by:
lastExecution in interface SpoolerTask
Returns:
last execution

setNextExecution

public final void setNextExecution(long nextExecution)
Specified by:
setNextExecution in interface SpoolerTask

nextExecution

public final long nextExecution()
Specified by:
nextExecution in interface SpoolerTask

tries

public final int tries()
returns how many tries to send are already done

Specified by:
tries in interface SpoolerTask
Returns:
tries

getExceptions

public final Array getExceptions()
Specified by:
getExceptions in interface SpoolerTask
Returns:
the exceptions

setClosed

public final void setClosed(boolean closed)
Specified by:
setClosed in interface SpoolerTask

closed

public final boolean closed()
Specified by:
closed in interface SpoolerTask

getPlans

public ExecutionPlan[] getPlans()
Specified by:
getPlans in interface SpoolerTask
Returns:
the plans

getCreation

public long getCreation()
Specified by:
getCreation in interface SpoolerTask
Returns:
the creation

setLastExecution

public void setLastExecution(long lastExecution)
Specified by:
setLastExecution in interface SpoolerTask


Copyright © 2012 Railo