public class KestrelComponent extends DefaultComponent
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
KestrelComponent() |
KestrelComponent(CamelContext context) |
KestrelComponent(KestrelConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
closeMemcachedClient(java.lang.String key,
net.spy.memcached.MemcachedClient memcachedClient) |
protected KestrelEndpoint |
createEndpoint(java.lang.String uri,
java.lang.String remaining,
java.util.Map<java.lang.String,java.lang.Object> parameters)
A factory method allowing derived components to create a new endpoint
from the given URI, remaining path and optional parameters
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
KestrelConfiguration |
getConfiguration() |
net.spy.memcached.MemcachedClient |
getMemcachedClient(KestrelConfiguration config,
java.lang.String queue) |
void |
setConfiguration(KestrelConfiguration configuration) |
afterConfiguration, createComponentConfiguration, createConfiguration, createEndpoint, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public KestrelComponent()
public KestrelComponent(KestrelConfiguration configuration)
public KestrelComponent(CamelContext context)
protected void doStart() throws java.lang.Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultComponent
java.lang.Exception
ServiceSupport.doStop()
public KestrelConfiguration getConfiguration()
public void setConfiguration(KestrelConfiguration configuration)
protected KestrelEndpoint createEndpoint(java.lang.String uri, java.lang.String remaining, java.util.Map<java.lang.String,java.lang.Object> parameters) throws java.lang.Exception
DefaultComponent
createEndpoint
in class DefaultComponent
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed injava.lang.Exception
- is thrown if error creating the endpointpublic net.spy.memcached.MemcachedClient getMemcachedClient(KestrelConfiguration config, java.lang.String queue)
public void closeMemcachedClient(java.lang.String key, net.spy.memcached.MemcachedClient memcachedClient)
protected void doStop() throws java.lang.Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.doStop
in class DefaultComponent
java.lang.Exception
ServiceSupport.doStart()
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.