Class QuickfixjEngine
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.quickfixj.QuickfixjEngine
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
public class QuickfixjEngine
extends org.apache.camel.support.service.ServiceSupport
This is a wrapper class that provided QuickFIX/J initialization capabilities beyond those supported in the core
QuickFIX/J distribution.
Specifically, it infers dependencies on specific implementations of message stores and logs. It also supports
extended QuickFIX/J settings properties to specify threading models, custom store and log implementations, etc.
The wrapper will create an initiator or acceptor or both depending on the roles of sessions described in the settings
file.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final long
static final String
static final String
static final String
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
-
Constructor Summary
ConstructorsConstructorDescriptionQuickfixjEngine
(String uri, quickfix.SessionSettings settings, quickfix.MessageStoreFactory messageStoreFactoryOverride, quickfix.LogFactory sessionLogFactoryOverride, quickfix.MessageFactory messageFactoryOverride) QuickfixjEngine
(String uri, quickfix.SessionSettings settings, quickfix.MessageStoreFactory messageStoreFactoryOverride, quickfix.LogFactory sessionLogFactoryOverride, quickfix.MessageFactory messageFactoryOverride, boolean lazy) QuickfixjEngine
(org.apache.camel.CamelContext camelContext, String uri, String settingsResourceName) QuickfixjEngine
(org.apache.camel.CamelContext camelContext, String uri, String settingsResourceName, quickfix.MessageStoreFactory messageStoreFactoryOverride, quickfix.LogFactory sessionLogFactoryOverride, quickfix.MessageFactory messageFactoryOverride) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener
(QuickfixjEventListener listener) int
protected void
doInit()
protected void
protected void
doStart()
protected void
doStop()
getUri()
int
boolean
boolean
isLazy()
protected static quickfix.SessionSettings
loadSettings
(org.apache.camel.CamelContext camelContext, String settingsResourceName) void
removeEventListener
(QuickfixjEventListener listener) Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
DEFAULT_START_TIME
- See Also:
-
DEFAULT_END_TIME
- See Also:
-
DEFAULT_HEARTBTINT
public static final long DEFAULT_HEARTBTINT- See Also:
-
SETTING_THREAD_MODEL
- See Also:
-
SETTING_USE_JMX
- See Also:
-
-
Constructor Details
-
QuickfixjEngine
public QuickfixjEngine(org.apache.camel.CamelContext camelContext, String uri, String settingsResourceName) throws Exception - Throws:
Exception
-
QuickfixjEngine
public QuickfixjEngine(org.apache.camel.CamelContext camelContext, String uri, String settingsResourceName, quickfix.MessageStoreFactory messageStoreFactoryOverride, quickfix.LogFactory sessionLogFactoryOverride, quickfix.MessageFactory messageFactoryOverride) throws Exception - Throws:
Exception
-
QuickfixjEngine
public QuickfixjEngine(String uri, quickfix.SessionSettings settings, quickfix.MessageStoreFactory messageStoreFactoryOverride, quickfix.LogFactory sessionLogFactoryOverride, quickfix.MessageFactory messageFactoryOverride) throws Exception - Throws:
Exception
-
QuickfixjEngine
public QuickfixjEngine(String uri, quickfix.SessionSettings settings, quickfix.MessageStoreFactory messageStoreFactoryOverride, quickfix.LogFactory sessionLogFactoryOverride, quickfix.MessageFactory messageFactoryOverride, boolean lazy) throws Exception - Throws:
Exception
-
-
Method Details
-
incRefCount
public int incRefCount() -
decRefCount
public int decRefCount() -
loadSettings
protected static quickfix.SessionSettings loadSettings(org.apache.camel.CamelContext camelContext, String settingsResourceName) throws Exception - Throws:
Exception
-
doInit
- Overrides:
doInit
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStart
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doShutdown
- Overrides:
doShutdown
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
addEventListener
-
removeEventListener
-
getUri
-
getMessageCorrelator
-
isInitialized
public boolean isInitialized() -
isLazy
public boolean isLazy()
-