org.apache.camel.component.log
Class LogEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
org.apache.camel.impl.ProcessorEndpoint
org.apache.camel.component.log.LogEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId
public class LogEndpoint
- extends ProcessorEndpoint
Logger endpoint.
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, suspend |
LogEndpoint
public LogEndpoint()
LogEndpoint
public LogEndpoint(String endpointUri,
Component component)
LogEndpoint
public LogEndpoint(String endpointUri,
Component component,
CamelLogger logger)
getLogger
public CamelLogger getLogger()
start
public void start()
throws Exception
- Description copied from interface:
Service
- Starts the service
- Specified by:
start in interface Service- Overrides:
start in class ServiceSupport
- Throws:
Exception - is thrown if starting failed
stop
public void stop()
throws Exception
- Description copied from interface:
Service
- Stops the service
- Specified by:
stop in interface Service- Overrides:
stop in class ServiceSupport
- Throws:
Exception - is thrown if stopping failed
setLogger
public void setLogger(CamelLogger logger)
createProducer
public Producer createProducer()
throws Exception
- Description copied from interface:
Endpoint
- Creates a new producer which is used send messages into the endpoint
- Specified by:
createProducer in interface Endpoint- Overrides:
createProducer in class ProcessorEndpoint
- Returns:
- a newly created producer
- Throws:
Exception - can be thrown
createEndpointUri
protected String createEndpointUri()
- Description copied from class:
DefaultEndpoint
- A factory method to lazily create the endpointUri if none is specified
- Overrides:
createEndpointUri in class DefaultEndpoint
Apache CAMEL