org.apache.camel.component.couchdb
Class CouchDbEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.couchdb.CouchDbEndpoint
- 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
public class CouchDbEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
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, configurePollingConsumer, 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, setProperties, setSynchronous, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
DEFAULT_STYLE
public static final String DEFAULT_STYLE
- See Also:
- Constant Field Values
DEFAULT_HEARTBEAT
public static final long DEFAULT_HEARTBEAT
- See Also:
- Constant Field Values
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
CouchDbEndpoint
public CouchDbEndpoint()
CouchDbEndpoint
public CouchDbEndpoint(String endpointUri,
String remaining,
CouchDbComponent component)
throws Exception
- Throws:
Exception
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
- Throws:
Exception
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Throws:
Exception
isSingleton
public boolean isSingleton()
createExchange
public org.apache.camel.Exchange createExchange(String seq,
String id,
com.google.gson.JsonObject obj,
boolean deleted)
createClient
protected CouchDbClientWrapper createClient()
getProtocol
public String getProtocol()
setProtocol
public void setProtocol(String protocol)
getHostname
public String getHostname()
setHostname
public void setHostname(String hostname)
getStyle
public String getStyle()
setStyle
public void setStyle(String style)
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
getDatabase
public String getDatabase()
setDatabase
public void setDatabase(String database)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getPort
public int getPort()
setPort
public void setPort(int port)
getHeartbeat
public long getHeartbeat()
setHeartbeat
public void setHeartbeat(long heartbeat)
isCreateDatabase
public boolean isCreateDatabase()
setCreateDatabase
public void setCreateDatabase(boolean createDatabase)
isDeletes
public boolean isDeletes()
setDeletes
public void setDeletes(boolean deletes)
isUpdates
public boolean isUpdates()
setUpdates
public void setUpdates(boolean updates)
Apache Camel