org.apache.camel.component.zookeeper
Class ZooKeeperEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.zookeeper.ZooKeeperEndpoint
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, 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="ZooKeeper Endpoint")
public class ZooKeeperEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
ZooKeeperEndpoint
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
ZooKeeperEndpoint
public ZooKeeperEndpoint(String uri,
ZooKeeperComponent component,
ZooKeeperConfiguration configuration)
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Throws:
Exception
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
- Throws:
Exception
isSingleton
public boolean isSingleton()
setConfiguration
public void setConfiguration(ZooKeeperConfiguration configuration)
getConfiguration
public ZooKeeperConfiguration getConfiguration()
getSessionPassword
@ManagedAttribute(description="Session Password")
public byte[] getSessionPassword()
getSessionId
@ManagedAttribute
public int getSessionId()
setPath
@ManagedAttribute
public void setPath(String path)
getPath
@ManagedAttribute
public String getPath()
getTimeout
@ManagedAttribute
public int getTimeout()
setTimeout
@ManagedAttribute
public void setTimeout(int timeout)
getRepeat
@ManagedAttribute
public boolean getRepeat()
setRepeat
@ManagedAttribute
public void setRepeat(boolean shouldRepeat)
getServers
@ManagedAttribute
public List<String> getServers()
setServers
@ManagedAttribute
public void setServers(List<String> servers)
getListChildren
@ManagedAttribute
public boolean getListChildren()
setListChildren
@ManagedAttribute
public void setListChildren(boolean listChildren)
getCreate
@ManagedAttribute
public boolean getCreate()
setCreate
@ManagedAttribute
public void setCreate(boolean shouldCreate)
getBackoff
@ManagedAttribute
public long getBackoff()
setBackoff
@ManagedAttribute
public void setBackoff(long backoff)
getAwaitExistence
@Deprecated
@ManagedAttribute
public boolean getAwaitExistence()
- Deprecated. The usage of this property has no effect at all.
setAwaitExistence
@Deprecated
@ManagedAttribute
public void setAwaitExistence(boolean awaitExistence)
- Deprecated. The usage of this property has no effect at all.
addServer
@ManagedOperation
public void addServer(String server)
clearServers
@ManagedOperation
public void clearServers()
getManagedObject
public Object getManagedObject(ZooKeeperEndpoint arg0)
isSendEmptyMessageOnDelete
@ManagedAttribute
public boolean isSendEmptyMessageOnDelete()
setSendEmptyMessageOnDelete
@ManagedAttribute
public void setSendEmptyMessageOnDelete(boolean sendEmptyMessageOnDelete)
Apache CAMEL