public class Processor extends Object implements Interpreter
| Modifier and Type | Class and Description |
|---|---|
static class |
Processor.ProcessingType |
Interpreter.State| Modifier and Type | Method and Description |
|---|---|
void |
cancle() |
ChainManager |
chain()
The ChainManager object allows manipulation of the chain-of-command.
|
static ConsumableException |
convertException(String msg,
Throwable ex) |
static ConsumableException |
convertException(Throwable ex) |
void |
execute(Feed feed,
Log log,
DocumentMediator documentMediator,
SheetFactory sheetFactory,
Map<String,Object> presetVariables) |
void |
executeNested(Feed feed,
Log log,
InterpreterContext context)
Facilitates the nested execution of a specified feed and reporting to the
specified log.
|
Date |
getStartDate() |
Interpreter.State |
getState() |
LibraryManager |
libraries() |
void |
pause() |
ProcedureManager |
procedures() |
void |
publish(Event event)
Fired events are send to the libraries that are registered with the
executor.
|
void |
resume() |
void |
setSleep(long sleep) |
void |
setSource(DataSource externalSource) |
void |
validate(Feed feed,
Log log,
DocumentMediator documentMediator,
SheetFactory sheetFactory)
Validates all the instruction of the specified feed and report to the
specified log.
|
void |
validateNested(Feed feed,
Log log,
InterpreterContext context)
Facilitates the nested validation of a specified feed and reporting to
the specified log.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic Processor()
public Processor(Date startDate)
public static ConsumableException convertException(Throwable ex)
public static ConsumableException convertException(String msg, Throwable ex)
public void setSleep(long sleep)
setSleep in interface Interpreterpublic LibraryManager libraries()
libraries in interface Interpreterpublic ProcedureManager procedures()
procedures in interface Interpreterpublic ChainManager chain()
Interpreterchain in interface Interpreterpublic void publish(Event event)
Interpreterpublish in interface Interpreterevent - the event to publish to chain-of-command followed by the
libraries.public void setSource(DataSource externalSource)
setSource in interface Interpreterpublic void execute(Feed feed, Log log, DocumentMediator documentMediator, SheetFactory sheetFactory, Map<String,Object> presetVariables)
execute in interface Interpreterpublic void executeNested(Feed feed, Log log, InterpreterContext context)
InterpreterexecuteNested in interface Interpreterfeed - holding all the instruction to be executedlog - the reporting instancepublic void validate(Feed feed, Log log, DocumentMediator documentMediator, SheetFactory sheetFactory)
Interpretervalidate in interface Interpreterfeed - holding all the instruction to be validatedlog - the reporting instancepublic void validateNested(Feed feed, Log log, InterpreterContext context)
InterpretervalidateNested in interface Interpreterfeed - holding all the instruction to be validatedlog - the reporting instancepublic Interpreter.State getState()
getState in interface Interpreterpublic void pause()
pause in interface Interpreterpublic void resume()
resume in interface Interpreterpublic void cancle()
cancle in interface Interpreterpublic Date getStartDate()
getStartDate in interface InterpreterCopyright © 2015. All rights reserved.