public class JDBCFeeder extends Object implements CommandLineInterpreter
| Modifier and Type | Field and Description |
|---|---|
protected IngestFactory |
ingestFactory |
protected PrintStream |
printStream |
protected Reader |
reader |
protected Writer |
writer |
| Constructor and Description |
|---|
JDBCFeeder()
Constructor for running this from command line
|
| Modifier and Type | Method and Description |
|---|---|
protected RiverFlow |
createRiverFlow(Map<String,Object> spec,
org.elasticsearch.common.settings.Settings settings) |
JDBCFeeder |
errorsTo(PrintStream printStream) |
JDBCFeeder |
readFrom(Reader reader) |
void |
shutdown() |
Thread |
shutdownHook()
Shut down feeder instance by Ctrl-C
|
JDBCFeeder |
start() |
JDBCFeeder |
writeTo(Writer writer) |
protected PrintStream printStream
protected IngestFactory ingestFactory
public JDBCFeeder()
public JDBCFeeder readFrom(Reader reader)
readFrom in interface CommandLineInterpreterprotected RiverFlow createRiverFlow(Map<String,Object> spec, org.elasticsearch.common.settings.Settings settings) throws IOException
IOExceptionpublic JDBCFeeder writeTo(Writer writer)
writeTo in interface CommandLineInterpreterpublic JDBCFeeder errorsTo(PrintStream printStream)
errorsTo in interface CommandLineInterpreterpublic JDBCFeeder start() throws Exception
start in interface CommandLineInterpreterExceptionpublic Thread shutdownHook()
shutdownHook in interface CommandLineInterpreterpublic void shutdown() throws Exception
shutdown in interface CommandLineInterpreterExceptionelasticsearch-river-jdbc