RC
- public interface RiverFlow<RC extends RiverContext>
Modifier and Type | Method and Description |
---|---|
void |
execute(RC riverContext)
Execute this river flow
|
org.elasticsearch.client.Client |
getClient()
Get the client
|
org.elasticsearch.common.metrics.MeterMetric |
getMetric()
Get metric
|
Queue<RiverContext> |
getQueue()
Get queue for RiverContext processing
|
org.elasticsearch.river.RiverName |
getRiverName()
Gets the river name
|
org.elasticsearch.common.settings.Settings |
getSettings()
Get the settings
|
void |
logMetrics(RiverContext riverContext,
String cause)
Log metrics
|
RiverFlow<RC> |
newInstance() |
RC |
newRiverContext()
Create a new river context for a river run
|
RiverFlow |
setClient(org.elasticsearch.client.Client client) |
RiverFlow |
setIngestFactory(IngestFactory ingestFactory)
Set ingest factory
|
RiverFlow |
setMetric(org.elasticsearch.common.metrics.MeterMetric meterMetric)
Set metric
|
RiverFlow |
setQueue(Queue<RiverContext> queue)
Set queue for processing RiverContext requests
|
RiverFlow |
setRiverName(org.elasticsearch.river.RiverName riverName)
Sets the river name
|
RiverFlow |
setSettings(org.elasticsearch.common.settings.Settings settings)
Set the settings
|
String |
strategy()
The name of the strategy the river flow belongs to
|
String strategy()
RiverFlow<RC> newInstance()
RC newRiverContext()
RiverFlow setRiverName(org.elasticsearch.river.RiverName riverName)
riverName
- the river nameorg.elasticsearch.river.RiverName getRiverName()
RiverFlow setSettings(org.elasticsearch.common.settings.Settings settings)
settings
- the settingsorg.elasticsearch.common.settings.Settings getSettings()
RiverFlow setIngestFactory(IngestFactory ingestFactory)
ingestFactory
- ingest factoryorg.elasticsearch.client.Client getClient()
void logMetrics(RiverContext riverContext, String cause)
cause
- the cause why metrics are loggedRiverFlow setMetric(org.elasticsearch.common.metrics.MeterMetric meterMetric)
meterMetric
- the meter metricorg.elasticsearch.common.metrics.MeterMetric getMetric()
RiverFlow setQueue(Queue<RiverContext> queue)
queue
- the queueQueue<RiverContext> getQueue()
elasticsearch-river-jdbc