public class MockRiverMouth extends Object implements RiverMouth<MockRiverContext>
| Constructor and Description |
|---|
MockRiverMouth() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterFetch() |
void |
beforeFetch() |
Map<IndexableObject,String> |
data() |
void |
delete(IndexableObject object) |
void |
flush() |
long |
getCounter() |
String |
getId() |
String |
getIndex() |
Metric |
getMetric() |
String |
getType() |
void |
index(IndexableObject object,
boolean create) |
RiverMouth<MockRiverContext> |
newInstance() |
void |
resume() |
RiverMouth |
setId(String id) |
RiverMouth |
setIndex(String index) |
RiverMouth |
setIndexSettings(org.elasticsearch.common.settings.Settings indexSettings) |
RiverMouth |
setIngestFactory(IngestFactory ingestFactory) |
MockRiverMouth |
setRiverContext(MockRiverContext context) |
RiverMouth |
setType(String type) |
RiverMouth |
setTypeMapping(Map<String,String> typeMapping) |
void |
shutdown() |
String |
strategy() |
void |
suspend() |
public MockRiverMouth()
public String strategy()
strategy in interface RiverMouth<MockRiverContext>public RiverMouth<MockRiverContext> newInstance()
newInstance in interface RiverMouth<MockRiverContext>public void beforeFetch() throws Exception
beforeFetch in interface RiverMouth<MockRiverContext>Exceptionpublic void afterFetch() throws Exception
afterFetch in interface RiverMouth<MockRiverContext>Exceptionpublic void index(IndexableObject object, boolean create) throws IOException
index in interface RiverMouth<MockRiverContext>IOExceptionpublic void delete(IndexableObject object) throws IOException
delete in interface RiverMouth<MockRiverContext>IOExceptionpublic Map<IndexableObject,String> data()
public MockRiverMouth setRiverContext(MockRiverContext context)
setRiverContext in interface RiverMouth<MockRiverContext>public RiverMouth setIngestFactory(IngestFactory ingestFactory)
setIngestFactory in interface RiverMouth<MockRiverContext>public RiverMouth setIndex(String index)
setIndex in interface RiverMouth<MockRiverContext>public String getIndex()
getIndex in interface RiverMouth<MockRiverContext>public RiverMouth setIndexSettings(org.elasticsearch.common.settings.Settings indexSettings)
setIndexSettings in interface RiverMouth<MockRiverContext>public RiverMouth setTypeMapping(Map<String,String> typeMapping)
setTypeMapping in interface RiverMouth<MockRiverContext>public RiverMouth setType(String type)
setType in interface RiverMouth<MockRiverContext>public String getType()
getType in interface RiverMouth<MockRiverContext>public RiverMouth setId(String id)
setId in interface RiverMouth<MockRiverContext>public String getId()
getId in interface RiverMouth<MockRiverContext>public void flush() throws IOException
flush in interface RiverMouth<MockRiverContext>IOExceptionpublic void shutdown() throws IOException
shutdown in interface RiverMouth<MockRiverContext>IOExceptionpublic void suspend() throws Exception
suspend in interface RiverMouth<MockRiverContext>Exceptionpublic void resume() throws Exception
resume in interface RiverMouth<MockRiverContext>Exceptionpublic Metric getMetric()
getMetric in interface RiverMouth<MockRiverContext>public long getCounter()
elasticsearch-river-jdbc