public class TaskFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
configuration |
protected int |
count |
protected SimpleLogger |
logger |
protected Monitor |
monitor |
protected java.lang.String |
outputPackagePath |
protected WriterInterface[] |
writers |
| Constructor and Description |
|---|
TaskFactory(Configuration config,
Monitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Configuration |
getConfiguration() |
Monitor |
getMonitor() |
ReaderInterface |
getReader() |
WriterInterface |
getWriter() |
java.util.concurrent.Callable<TimedEvent[]> |
newTask(java.lang.String[] uris) |
protected SimpleLogger logger
protected final Configuration configuration
protected WriterInterface[] writers
protected java.lang.String outputPackagePath
protected volatile int count
protected Monitor monitor
public TaskFactory(Configuration config, Monitor monitor) throws SyncException
config - monitor - SyncExceptionpublic java.util.concurrent.Callable<TimedEvent[]> newTask(java.lang.String[] uris)
uris - public void close()
public Configuration getConfiguration()
public ReaderInterface getReader() throws SyncException
SyncExceptionpublic WriterInterface getWriter() throws SyncException
SyncExceptionpublic Monitor getMonitor()