@UriEndpoint(scheme="pgevent",
title="PostgresSQL Event",
syntax="pgevent:host:port/database/channel",
consumerClass=PgEventConsumer.class,
label="database,sql")
public class PgEventEndpoint
extends org.apache.camel.impl.DefaultEndpoint
| Constructor and Description |
|---|
PgEventEndpoint(String uri,
PgEventComponent component) |
PgEventEndpoint(String uri,
PgEventComponent component,
DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getChannel() |
String |
getDatabase() |
DataSource |
getDatasource() |
String |
getHost() |
String |
getPass() |
Integer |
getPort() |
String |
getUser() |
com.impossibl.postgres.api.jdbc.PGConnection |
initJdbc() |
boolean |
isSingleton() |
protected void |
parseUri()
Parse the provided URI and extract available parameters
|
void |
setChannel(String channel) |
void |
setDatabase(String database) |
void |
setDatasource(DataSource datasource) |
void |
setHost(String host) |
void |
setPass(String pass) |
void |
setPort(Integer port) |
void |
setUser(String user) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic PgEventEndpoint(String uri, PgEventComponent component) throws InvalidAttributesException
InvalidAttributesExceptionpublic PgEventEndpoint(String uri, PgEventComponent component, DataSource dataSource) throws InvalidAttributesException
InvalidAttributesExceptionpublic final com.impossibl.postgres.api.jdbc.PGConnection initJdbc()
throws Exception
Exceptionprotected final void parseUri()
throws InvalidAttributesException
InvalidAttributesException - if there is an error in the parameterspublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic boolean isSingleton()
public String getHost()
public void setHost(String host)
host - the host to setpublic Integer getPort()
public void setPort(Integer port)
port - the port to setpublic String getDatabase()
public void setDatabase(String database)
database - the database to setpublic String getChannel()
public void setChannel(String channel)
channel - the channel to setpublic String getUser()
public void setUser(String user)
user - the user to setpublic String getPass()
public void setPass(String pass)
pass - the pass to setpublic DataSource getDatasource()
public void setDatasource(DataSource datasource)
datasource - the datasource to setApache Camel