railo.runtime.spooler
Interface SpoolerTask

All Superinterfaces:
java.io.Serializable

public interface SpoolerTask
extends java.io.Serializable


Method Summary
 boolean closed()
           
 Struct detail()
          returns advanced info to the task
 java.lang.Object execute(Config config)
          execute Task
 long getCreation()
           
 Array getExceptions()
           
 java.lang.String getId()
           
 ExecutionPlan[] getPlans()
           
 java.lang.String getType()
          returns task type as String
 long lastExecution()
          return last execution of this task
 long nextExecution()
           
 void setClosed(boolean closed)
           
 void setId(java.lang.String id)
           
 void setLastExecution(long lastExecution)
           
 void setNextExecution(long nextExecution)
           
 java.lang.String subject()
          returns a short info to the task
 int tries()
          returns how many tries to send are already done
 

Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

execute

public java.lang.Object execute(Config config)
                         throws PageException
execute Task

Parameters:
config -
Throws:
SpoolerException
PageException

subject

public java.lang.String subject()
returns a short info to the task

Returns:
Task subject

getType

public java.lang.String getType()
returns task type as String

Returns:
Task subject

detail

public Struct detail()
returns advanced info to the task

Returns:
Task detail

lastExecution

public long lastExecution()
return last execution of this task

Returns:
last execution

setNextExecution

public void setNextExecution(long nextExecution)

nextExecution

public long nextExecution()

tries

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

Returns:
tries

getExceptions

public Array getExceptions()
Returns:
the exceptions

setClosed

public void setClosed(boolean closed)

closed

public boolean closed()

getPlans

public ExecutionPlan[] getPlans()
Returns:
the plans

getCreation

public long getCreation()
Returns:
the creation

setLastExecution

public void setLastExecution(long lastExecution)