@UriEndpoint(firstVersion="2.18.0",
scheme="influxdb",
title="InfluxDB",
syntax="influxdb:connectionBean",
label="database",
producerOnly=true)
public class InfluxDbEndpoint
extends org.apache.camel.support.DefaultEndpoint
Constructor and Description |
---|
InfluxDbEndpoint(String uri,
InfluxDbComponent component) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStart() |
protected void |
doStop() |
String |
getConnectionBean() |
String |
getDatabaseName() |
org.influxdb.InfluxDB |
getInfluxDB() |
String |
getOperation() |
String |
getQuery() |
String |
getRetentionPolicy() |
boolean |
isBatch() |
void |
setBatch(boolean batch)
Define if this operation is a batch operation or not
|
void |
setConnectionBean(String connectionBean)
Connection to the influx database, of class InfluxDB.class
|
void |
setDatabaseName(String databaseName)
The name of the database where the time series will be stored
|
void |
setInfluxDB(org.influxdb.InfluxDB influxDB)
The Influx DB to use
|
void |
setOperation(String operation)
Define if this operation is an insert or a query
|
void |
setQuery(String query)
Define the query in case of operation query
|
void |
setRetentionPolicy(String retentionPolicy)
The string that defines the retention policy to the data created by the endpoint
|
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public InfluxDbEndpoint(String uri, InfluxDbComponent component)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.DefaultEndpoint
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.DefaultEndpoint
Exception
public org.influxdb.InfluxDB getInfluxDB()
public void setInfluxDB(org.influxdb.InfluxDB influxDB)
public String getDatabaseName()
public void setDatabaseName(String databaseName)
public String getRetentionPolicy()
public void setRetentionPolicy(String retentionPolicy)
public String getConnectionBean()
public void setConnectionBean(String connectionBean)
public boolean isBatch()
public void setBatch(boolean batch)
public String getOperation()
public void setOperation(String operation)
public String getQuery()
public void setQuery(String query)
Apache Camel