railo.runtime.spooler
Interface SpoolerEngine

All Known Implementing Classes:
SpoolerEngineImpl

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(String id)
          execute task by id and return error throwed by task
 SpoolerTask[] getClosedTasks()
          return all closed task that are inside the Engine
 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(String id)
          remove a task that match given id
 

Method Detail

getLabel

String getLabel()
return the label of the engine

Returns:
the label

add

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

Parameters:
task -

getOpenTasks

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

Returns:
all open tasks

getClosedTasks

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

Returns:
all closed tasks

remove

void remove(SpoolerTask task)
remove that task from Spooler

Parameters:
task -

remove

void remove(String id)
remove a task that match given id

Parameters:
id -

execute

PageException execute(String id)
execute task by id and return error throwed by task

Parameters:
id -
Throws:
SpoolerException

execute

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

Parameters:
task -
Throws:
SpoolerException


Copyright © 2012 Railo