public class Engine extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Engine.DynamicAcceptorArgs
Dynamic acceptor event arguments.
|
static interface |
Engine.DynamicAcceptorListener
Dynamic acceptor event listener.
|
static class |
Engine.ErrorArgs
Error event arguments.
|
static interface |
Engine.ErrorListener
Engine error listener interface.
|
static class |
Engine.ErrorReason
Engine error reason.
|
static class |
Engine.State
Engine state.
|
static class |
Engine.StateChangedArgs
State changed event arguments.
|
static interface |
Engine.StateChangedListener
Engine state changed listener interface.
|
static class |
Engine.WarningArgs
Warning event arguments.
|
static interface |
Engine.WarningListener
Engine warning listener interface.
|
static class |
Engine.WarningReason
Engine warning reason.
|
Modifier and Type | Field and Description |
---|---|
static Engine.DynamicAcceptorListener |
NULL_DYNAMIC_ACCEPTOR_LISTENER
Deprecated.
will be removed soon as not necessary
|
static Engine.ErrorListener |
NULL_ERROR_LISTENER |
static Engine.StateChangedListener |
NULL_STATE_CHANGED_LISTENER |
static Engine.WarningListener |
NULL_WARNING_LISTENER |
Modifier and Type | Method and Description |
---|---|
void |
addDynamicAcceptorListener(Engine.DynamicAcceptorListener listener)
Adds dynamic acceptor event listener.
|
boolean |
addListeningPort(int port)
Adds listen port for incoming FIX connections to the engine.
|
boolean |
addSslListeningPort(int port,
SSLContext sslContext)
Adds SSL listen port for secure incoming FIX connections to the engine.
|
void |
addThreadStartedListener(ThreadStartedListener listener)
Adds thread started listener.
|
DictionaryManager |
getDictionaryManager()
Returns dictionary manager.
|
Engine.DynamicAcceptorListener |
getDynamicAcceptorListener()
Deprecated.
will be removed soon as not necessary
|
static Engine.ErrorListener |
getErrorListener()
Returns error listener.
|
static Engine |
getInstance()
The instance of the engine.
|
License |
getLicense() |
String |
getProductName()
Returns product name
|
String |
getProductNameAndVersion()
Returns product name and version
|
String |
getProductVersion()
Returns Engine version
|
EngineSettings |
getSettings()
Returns Engine settings.
|
static Engine.StateChangedListener |
getStateChangedListener()
Returns state changed listener.
|
StorageRepositoryManager |
getStorageRepositoryManager() |
static Engine.WarningListener |
getWarningListener()
Returns warning listener.
|
static Engine |
init()
Initializes the engine.
|
static Engine |
init(EngineSettings settings)
Initializes the engine.
|
static Engine |
init(EngineSettings settings,
SessionReactor sessionReactor)
Initializes the engine.
|
static Engine |
init(int listenPort)
Initializes the engine.
|
static Engine |
init(Properties settings)
Initializes the engine.
|
static Engine |
init(Settings settings)
Initializes the engine.
|
static boolean |
isInited()
Verify whether engine is inited.
|
static boolean |
isNotInited()
Verify whether engine is inited.
|
void |
removeDynamicAcceptorListener(Engine.DynamicAcceptorListener listener)
Removes dynamic acceptor event listener.
|
boolean |
removeListeningPort(int port)
Removes listen port for incoming FIX connections from the engine (SSL ports as well).
|
void |
removeThreadStartedListener(ThreadStartedListener listener)
Removes thread started listener.
|
void |
setDynamicAcceptorListener(Engine.DynamicAcceptorListener listener)
Deprecated.
will be removed soon, please use
addDynamicAcceptorListener(biz.onixs.fix.engine.Engine.DynamicAcceptorListener) instead |
static void |
setErrorListener(Engine.ErrorListener listener)
Sets error listener.
|
static void |
setNetworkInterface(InetSocketAddress bindAddress)
Sets the network interface bind address for establishing acceptor sessions.
|
static void |
setSSLContext(SSLContext sslContext)
Sets the SSL context for establishing secure acceptor sessions.
|
static void |
setStateChangedListener(Engine.StateChangedListener listener)
Sets state changed listener.
|
static void |
setWarningListener(Engine.WarningListener listener)
Sets warning listener.
|
void |
shutdown()
Shut downs the engine.
|
String |
toString() |
static void |
verifyEngineInited()
Verifies that Engine inited
|
static void |
verifyEngineNotInited()
Verifies that Engine is not inited
|
public static final Engine.DynamicAcceptorListener NULL_DYNAMIC_ACCEPTOR_LISTENER
public static final Engine.StateChangedListener NULL_STATE_CHANGED_LISTENER
public static final Engine.WarningListener NULL_WARNING_LISTENER
public static final Engine.ErrorListener NULL_ERROR_LISTENER
public static Engine init()
public static Engine init(Properties settings)
settings
- Configuration settings (e.g. Listen Port, FIX Dialect, etc.).public static Engine init(Settings settings)
settings
- Configuration settings (e.g. Listen Port, FIX Dialect, etc.).public static Engine init(int listenPort)
listenPort
- The engine listens on this port for incoming connections. If '0' then only session-initiators
can be created. If '-1' then the telecommunication level is disabled and only message
parsing/assembling can be used.public static Engine init(EngineSettings settings)
settings
- Engine configuration settingspublic static Engine init(EngineSettings settings, SessionReactor sessionReactor)
settings
- Engine configuration settingssessionReactor
- an instance of an externally managed reactor for acceptor sessions.public void shutdown()
public static Engine getInstance()
public static boolean isInited()
public static boolean isNotInited()
public static void verifyEngineInited()
EngineException
- if engine is not initedpublic static void verifyEngineNotInited()
EngineException
- if engine is initedpublic static void setSSLContext(SSLContext sslContext)
sslContext
- SSL contextpublic static void setNetworkInterface(InetSocketAddress bindAddress)
bindAddress
- bind addresspublic static Engine.StateChangedListener getStateChangedListener()
public static void setStateChangedListener(Engine.StateChangedListener listener)
listener
- state change listener or NULL_STATE_CHANGED_LISTENER
value to reset listener to defaultpublic static Engine.WarningListener getWarningListener()
public static void setWarningListener(Engine.WarningListener listener)
listener
- warning listener or NULL_WARNING_LISTENER
value to reset listener to defaultpublic static Engine.ErrorListener getErrorListener()
public static void setErrorListener(Engine.ErrorListener listener)
listener
- error listener or NULL_ERROR_LISTENER
value to reset listener to defaultpublic void addThreadStartedListener(ThreadStartedListener listener)
listener
- thread started listenerpublic void removeThreadStartedListener(ThreadStartedListener listener)
listener
- thread started listenerpublic boolean addListeningPort(int port)
port
- Listener port number to be added.public boolean addSslListeningPort(int port, SSLContext sslContext)
port
- Listener port number to be added.sslContext
- SSL context to be used for the port.public boolean removeListeningPort(int port)
port
- Listener port number to be removed.public void addDynamicAcceptorListener(Engine.DynamicAcceptorListener listener)
listener
- listener to addremoveDynamicAcceptorListener(biz.onixs.fix.engine.Engine.DynamicAcceptorListener)
public void removeDynamicAcceptorListener(Engine.DynamicAcceptorListener listener)
listener
- listener to removepublic Engine.DynamicAcceptorListener getDynamicAcceptorListener()
public void setDynamicAcceptorListener(Engine.DynamicAcceptorListener listener)
addDynamicAcceptorListener(biz.onixs.fix.engine.Engine.DynamicAcceptorListener)
insteadlistener
- listener to setpublic EngineSettings getSettings()
public DictionaryManager getDictionaryManager()
public StorageRepositoryManager getStorageRepositoryManager()
public License getLicense()
public String getProductVersion()
public String getProductName()
public String getProductNameAndVersion()
Copyright © 2005–2024 Onix Solutions. All rights reserved.