@UriEndpoint(firstVersion="2.19.0",
scheme="drill",
title="Drill",
syntax="drill:host",
producerOnly=true,
category={DATABASE,SQL})
public class DrillEndpoint
extends org.apache.camel.support.DefaultPollingEndpoint
| Constructor and Description |
|---|
DrillEndpoint(String uri,
DrillComponent component)
creates a drill endpoint
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getClusterId() |
String |
getDirectory() |
String |
getHost() |
DrillConnectionMode |
getMode()
Connection mode: zk: Zookeeper drillbit: Drillbit direct connection
https://drill.apache.org/docs/using-the-jdbc-driver/
|
Integer |
getPort() |
List<?> |
queryForList(ResultSet rs) |
void |
setClusterId(String clusterId)
Cluster ID https://drill.apache.org/docs/using-the-jdbc-driver/#determining-the-cluster-id
|
void |
setDirectory(String directory)
Drill directory in ZooKeeper
|
void |
setHost(String host)
ZooKeeper host name or IP address.
|
void |
setMode(DrillConnectionMode mode) |
void |
setPort(Integer port)
ZooKeeper port number
|
String |
toJDBCUri() |
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic DrillEndpoint(String uri, DrillComponent component)
uri - the endpoint uricomponent - the componentpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointcreateConsumer in class org.apache.camel.support.DefaultPollingEndpointExceptionpublic String toJDBCUri()
public List<?> queryForList(ResultSet rs) throws SQLException
SQLExceptionpublic String getHost()
public void setHost(String host)
host - public Integer getPort()
public void setPort(Integer port)
port - public String getDirectory()
public void setDirectory(String directory)
directory - public String getClusterId()
public void setClusterId(String clusterId)
clusterId - public DrillConnectionMode getMode()
public void setMode(DrillConnectionMode mode)
Apache Camel