@UriEndpoint(firstVersion="2.11.0",
scheme="controlbus",
title="Control Bus",
syntax="controlbus:command:language",
producerOnly=true,
category={CORE,MONITORING})
public class ControlBusEndpoint
extends org.apache.camel.support.DefaultEndpoint
| Constructor and Description |
|---|
ControlBusEndpoint(String endpointUri,
org.apache.camel.Component component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doInit() |
String |
getAction() |
ControlBusComponent |
getComponent() |
org.apache.camel.spi.Language |
getLanguage() |
org.apache.camel.LoggingLevel |
getLoggingLevel() |
int |
getRestartDelay() |
String |
getRouteId() |
boolean |
isAsync() |
void |
setAction(String action)
To denote an action that can be either: start, stop, or status.
|
void |
setAsync(boolean async)
Whether to execute the control bus task asynchronously.
|
void |
setLanguage(org.apache.camel.spi.Language language)
Allows you to specify the name of a Language to use for evaluating the message body.
|
void |
setLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)
Logging level used for logging when task is done, or if any exceptions occurred during processing the task.
|
void |
setRestartDelay(int restartDelay)
The delay in millis to use when restarting a route.
|
void |
setRouteId(String routeId)
To specify a route by its id.
|
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, 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 ControlBusEndpoint(String endpointUri, org.apache.camel.Component component)
protected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultEndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic ControlBusComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointpublic org.apache.camel.spi.Language getLanguage()
public void setLanguage(org.apache.camel.spi.Language language)
public String getRouteId()
public void setRouteId(String routeId)
public String getAction()
public void setAction(String action)
public int getRestartDelay()
public void setRestartDelay(int restartDelay)
public boolean isAsync()
public void setAsync(boolean async)
public org.apache.camel.LoggingLevel getLoggingLevel()
public void setLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)
Apache Camel