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 CommandLineInterpreter
protected RiverFlow createRiverFlow(Map<String,Object> spec, org.elasticsearch.common.settings.Settings settings) throws IOException
IOException
public JDBCFeeder writeTo(Writer writer)
writeTo
in interface CommandLineInterpreter
public JDBCFeeder errorsTo(PrintStream printStream)
errorsTo
in interface CommandLineInterpreter
public JDBCFeeder start() throws Exception
start
in interface CommandLineInterpreter
Exception
public Thread shutdownHook()
shutdownHook
in interface CommandLineInterpreter
public void shutdown() throws Exception
shutdown
in interface CommandLineInterpreter
Exception
elasticsearch-river-jdbc