railo.runtime.spooler
Interface SpoolerEngine


public interface SpoolerEngine


Method Summary
 void add(SpoolerTask task)
          adds a task to the engine
 PageException execute(SpoolerTask task)
          execute task and return error throwed by task
 PageException execute(java.lang.String id)
          execute task by id and return error throwed by task
 SpoolerTask[] getClosedTasks()
          return all closed task that are inside the Engine
 java.lang.String getLabel()
          return the label of the engine
 SpoolerTask[] getOpenTasks()
          return all open task that are inside the Engine
 void remove(SpoolerTask task)
          remove that task from Spooler
 void remove(java.lang.String id)
          remove a task that match given id
 

Method Detail

getLabel

public java.lang.String getLabel()
return the label of the engine

Returns:
the label

add

public void add(SpoolerTask task)
adds a task to the engine

Parameters:
task -

getOpenTasks

public SpoolerTask[] getOpenTasks()
return all open task that are inside the Engine

Returns:
all open tasks

getClosedTasks

public SpoolerTask[] getClosedTasks()
return all closed task that are inside the Engine

Returns:
all closed tasks

remove

public void remove(SpoolerTask task)
remove that task from Spooler

Parameters:
task -

remove

public void remove(java.lang.String id)
remove a task that match given id

Parameters:
id -

execute

public PageException execute(java.lang.String id)
execute task by id and return error throwed by task

Parameters:
id -
Throws:
SpoolerException

execute

public PageException execute(SpoolerTask task)
execute task and return error throwed by task

Throws:
SpoolerException