public interface SpoolerEngine
Modifier and Type | Method and Description |
---|---|
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
|
Query |
getAllTasksAsQuery(int startrow,
int maxrow) |
int |
getClosedTaskCount() |
Query |
getClosedTasksAsQuery(int startrow,
int maxrow) |
java.lang.String |
getLabel()
return the label of the engine
|
int |
getOpenTaskCount() |
Query |
getOpenTasksAsQuery(int startrow,
int maxrow) |
void |
remove(SpoolerTask task)
remove that task from Spooler
|
void |
remove(java.lang.String id)
remove a task that match given id
|
java.lang.String getLabel()
void add(SpoolerTask task)
task
- void remove(SpoolerTask task)
task
- void remove(java.lang.String id)
id
- PageException execute(java.lang.String id)
id
- SpoolerException
PageException execute(SpoolerTask task)
task
- SpoolerException
Query getOpenTasksAsQuery(int startrow, int maxrow) throws PageException
PageException
Query getClosedTasksAsQuery(int startrow, int maxrow) throws PageException
PageException
Query getAllTasksAsQuery(int startrow, int maxrow) throws PageException
PageException
int getOpenTaskCount()
int getClosedTaskCount()