|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.spooler.SpoolerEngineImpl
public class SpoolerEngineImpl
Constructor Summary | |
---|---|
SpoolerEngineImpl(Config config,
Resource persisDirectory,
String label,
Log log,
int maxThreads)
|
Method Summary | |
---|---|
void |
add(SpoolerTask task)
adds a task to the engine |
int |
adds()
|
long |
calculateNextExecution(SpoolerTask task)
|
PageException |
execute(SpoolerTask task)
execute task and return error throwed by task |
PageException |
execute(String id)
execute task by id and return eror throwd by task |
Query |
getAllTasksAsQuery(int startrow,
int maxrow)
|
int |
getClosedTaskCount()
|
SpoolerTask[] |
getClosedTasks()
return all closed task that are inside the Engine |
Query |
getClosedTasksAsQuery(int startrow,
int maxrow)
|
String |
getLabel()
return the label of the engine |
int |
getMaxThreads()
|
int |
getOpenTaskCount()
|
SpoolerTask[] |
getOpenTasks()
return all open task that are inside the Engine |
Query |
getOpenTasksAsQuery(int startrow,
int maxrow)
|
void |
remove(SpoolerTask task)
remove that task from Spooler |
void |
remove(String id)
remove a task that match given id |
void |
removeAll()
|
void |
setConfig(Config config)
|
void |
setLabel(String label)
|
void |
setLog(Log log)
|
void |
setPersisDirectory(Resource persisDirectory)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpoolerEngineImpl(Config config, Resource persisDirectory, String label, Log log, int maxThreads) throws IOException
IOException
Method Detail |
---|
public int getMaxThreads()
public void add(SpoolerTask task)
SpoolerEngine
add
in interface SpoolerEngine
SpoolerEngine.add(railo.runtime.spooler.SpoolerTask)
public String getLabel()
SpoolerEngine
getLabel
in interface SpoolerEngine
SpoolerEngine.getLabel()
public long calculateNextExecution(SpoolerTask task)
railo.runtime.spooler.SpoolerEngine#calculateNextExecution(railo.runtime.spooler.SpoolerTask)
public SpoolerTask[] getOpenTasks()
SpoolerEngine
getOpenTasks
in interface SpoolerEngine
SpoolerEngine.getOpenTasks()
public SpoolerTask[] getClosedTasks()
SpoolerEngine
getClosedTasks
in interface SpoolerEngine
SpoolerEngine.getClosedTasks()
public Query getOpenTasksAsQuery(int startrow, int maxrow) throws PageException
PageException
public Query getClosedTasksAsQuery(int startrow, int maxrow) throws PageException
PageException
public Query getAllTasksAsQuery(int startrow, int maxrow) throws PageException
PageException
public int getOpenTaskCount()
public int getClosedTaskCount()
public void remove(SpoolerTask task)
remove
in interface SpoolerEngine
task
- public void removeAll()
public int adds()
public void remove(String id)
SpoolerEngine
remove
in interface SpoolerEngine
SpoolerEngine.remove(java.lang.String)
public PageException execute(String id)
execute
in interface SpoolerEngine
id
-
SpoolerException
public PageException execute(SpoolerTask task)
SpoolerEngine
execute
in interface SpoolerEngine
public void setLabel(String label)
railo.runtime.spooler.SpoolerEngine#setLabel(java.lang.String)
public void setPersisDirectory(Resource persisDirectory)
railo.runtime.spooler.SpoolerEngine#setPersisDirectory(railo.commons.io.res.Resource)
public void setLog(Log log)
railo.runtime.spooler.SpoolerEngine#setLog(railo.commons.io.log.Log)
public void setConfig(Config config)
railo.runtime.spooler.SpoolerEngine#setConfig(railo.runtime.config.Config)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |