Class MasterEndpoint
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultEndpoint
-
- org.apache.camel.component.zookeepermaster.MasterEndpoint
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.DelegateEndpoint,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasId,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@ManagedResource(description="Managed ZooKeeper Master Endpoint") @UriEndpoint(firstVersion="2.19.0", scheme="zookeeper-master", syntax="zookeeper-master:groupName:consumerEndpointUri", consumerOnly=true, title="ZooKeeper Master", lenientProperties=true, category={CLUSTERING,MANAGEMENT,BIGDATA}) public class MasterEndpoint extends org.apache.camel.support.DefaultEndpoint implements org.apache.camel.DelegateEndpointHave only a single consumer in a cluster consuming from a given endpoint; with automatic failover if the JVM dies.
-
-
Constructor Summary
Constructors Constructor Description MasterEndpoint(String uri, MasterComponent component, String groupName, String consumerEndpointUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor)org.apache.camel.ProducercreateProducer()MasterComponentgetComponent()org.apache.camel.EndpointgetConsumerEndpoint()StringgetConsumerEndpointUri()org.apache.camel.EndpointgetEndpoint()StringgetGroupName()booleanisLenientProperties()-
Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, 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, suspend
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.camel.Endpoint
configureExchange, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isSingletonProducer, setCamelContext
-
-
-
-
Constructor Detail
-
MasterEndpoint
public MasterEndpoint(String uri, MasterComponent component, String groupName, String consumerEndpointUri)
-
-
Method Detail
-
getEndpoint
public org.apache.camel.Endpoint getEndpoint()
- Specified by:
getEndpointin interfaceorg.apache.camel.DelegateEndpoint
-
getConsumerEndpoint
public org.apache.camel.Endpoint getConsumerEndpoint()
-
getConsumerEndpointUri
@ManagedAttribute(description="The consumer endpoint url to use in master/slave mode", mask=true) public String getConsumerEndpointUri()
-
getGroupName
@ManagedAttribute(description="The name of the cluster group to use") public String getGroupName()
-
createProducer
public org.apache.camel.Producer createProducer() throws Exception- Specified by:
createProducerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception- Specified by:
createConsumerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
isLenientProperties
public boolean isLenientProperties()
- Specified by:
isLenientPropertiesin interfaceorg.apache.camel.Endpoint- Overrides:
isLenientPropertiesin classorg.apache.camel.support.DefaultEndpoint
-
getComponent
public MasterComponent getComponent()
- Overrides:
getComponentin classorg.apache.camel.support.DefaultEndpoint
-
-