public class VmComponent extends SedaComponent
BlockingQueue
within the classloader tree containing
the camel-core.jar. i.e. to handle communicating across CamelContext instances and possibly across
web application contexts, providing that camel-core.jar is on the system classpath.Modifier and Type | Field and Description |
---|---|
protected static Map<String,SedaEndpoint> |
ENDPOINTS |
protected static Map<String,QueueReference> |
QUEUES |
defaultConcurrentConsumers, log, maxConcurrentConsumers, queueSize
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
VmComponent() |
Modifier and Type | Method and Description |
---|---|
protected Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,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.
|
QueueReference |
getQueueReference(String key) |
Map<String,QueueReference> |
getQueues() |
getConcurrentConsumers, getDefaultQueueFactory, getOrCreateQueue, getOrCreateQueue, getOrCreateQueue, getQueueKey, getQueueSize, registerQueue, setConcurrentConsumers, setDefaultQueueFactory, setQueueSize
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, 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
protected static final Map<String,QueueReference> QUEUES
protected static final Map<String,SedaEndpoint> ENDPOINTS
public VmComponent()
public Map<String,QueueReference> getQueues()
getQueues
in class SedaComponent
public QueueReference getQueueReference(String key)
getQueueReference
in class SedaComponent
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultComponent
Exception
ServiceSupport.doStop()
protected void doStop() throws 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 SedaComponent
Exception
ServiceSupport.doStart()
protected Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
DefaultComponent
createEndpoint
in class SedaComponent
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed inException
- is thrown if error creating the endpointApache Camel