public class QuickfixjComponent extends DefaultComponent implements StartupListener
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
QuickfixjComponent() |
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 |
doShutdown()
Implementations override this method to perform customized shutdown.
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
Map<String,QuickfixjConfiguration> |
getConfigurations() |
void |
onCamelContextStarted(CamelContext camelContext,
boolean alreadyStarted)
Callback invoked when the
CamelContext has just been started. |
void |
setConfigurations(Map<String,QuickfixjConfiguration> configurations) |
void |
setForcedShutdown(boolean forcedShutdown) |
void |
setLogFactory(quickfix.LogFactory logFactory) |
void |
setMessageFactory(quickfix.MessageFactory messageFactory) |
void |
setMessageStoreFactory(quickfix.MessageStoreFactory messageStoreFactory) |
afterConfiguration, createConfiguration, createEndpoint, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, validateParameters, validateURI
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
protected Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws 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 inException
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 DefaultComponent
Exception
ServiceSupport.doStart()
protected void doShutdown() throws Exception
ServiceSupport
doShutdown
in class ServiceSupport
Exception
public void setMessageFactory(quickfix.MessageFactory messageFactory)
public void setLogFactory(quickfix.LogFactory logFactory)
public void setMessageStoreFactory(quickfix.MessageStoreFactory messageStoreFactory)
public void setForcedShutdown(boolean forcedShutdown)
public Map<String,QuickfixjConfiguration> getConfigurations()
public void setConfigurations(Map<String,QuickfixjConfiguration> configurations)
public void onCamelContextStarted(CamelContext camelContext, boolean alreadyStarted) throws Exception
StartupListener
CamelContext
has just been started.onCamelContextStarted
in interface StartupListener
camelContext
- the Camel contextalreadyStarted
- whether or not the CamelContext
already has been started. For example the context
could already have been started, and then a service is added/started later which still
triggers this callback to be invoked.Exception
- can be thrown in case of errors to fail the startup process and have the application
fail on startup.Apache CAMEL