B2BITS FIX Antenna C++ 2.33.0
|
FixEngine's configuration parameters. More...
#include <B2BITS_FAProperties.h>
Public Types | |
typedef std::map< std::string, CronSessionsScheduleParameters > | ConfiguredSchedulesMap |
typedef std::vector< SessionId > | ConfiguredSessionsList |
typedef std::map< SessionId, SessionExtraParameters > | ConfiguredSessionsMap |
enum | FAIL_OVER_ROLE { NA , PRIMARY , STAND_BY } |
Public Member Functions | |
bool | existsProperty (const std::string &propertyName) const |
Returns true if property is exists. | |
ForceSeqNumResetMode | forceSeqNumResetMode () const |
An option to automatically reset sequence number of the unregistered acceptors. | |
bool | getBinaryProperty (const std::string &propertyName) const |
Returns bool value of given property. | |
bool | getCheckOutgoingMsgsVer () const |
Returns true if it is necessary to check that the version of outgoing messages is equal to the version of the session otherwise false. | |
bool | getCheckRequiredGroupFields () const |
Returns true if it is necessary to check that the version of outgoing messages is equal to the version of the session otherwise false. | |
ConfiguredSchedulesMap | getConfiguredSchedules () const |
Returns map of configured schedules parameters. | |
ConfiguredSessionsMap | getConfiguredSessions (const SessionRole filterInRole=NA_SESSION_ROLE) const |
Returns map of configured sessions parameters that can be used during sessions creating with createSession() routine. | |
ConfiguredSessionsList | getConfiguredSessionsList () const |
Returns ids of configured sessions. | |
std::string | getConnectAddress () const |
Returns engine's local IP address to send from. | |
SessionExtraParameters | getDefaultSessionParameters () const |
Returns 'Default' session configured parameters. | |
int | getDeliveryTriesInterval () const |
Returns the time interval between tries to deliver application message (in milliseconds). | |
std::string const & | getDictionariesFilesList () const |
Returns value of "DictionariesFilesList" property. | |
int | getFailOverCommandPort () const |
Returns Failover Command Port. | |
int | getFailOverDataPort () const |
Returns Failover Data Port. | |
std::string | getFailOverHost () const |
Returns the stand-by node address. | |
FAIL_OVER_ROLE | getFailOverRole () const |
Returns the current failover role. | |
bool | getGatherSessionStatistic () const |
int | getIntegerProperty (const std::string &propertyName) const |
Returns int value of given property. | |
std::string const & | getLicenseFileName () const |
Returns the license file name. | |
std::string | getListenAddress () const |
Returns engine's local IP address to bind to. | |
int | getListenPort () const |
Returns engine listen port number. | |
ListenPorts | getListenPorts () const |
Returns engine listen ports. | |
std::string const & | getLogDir () const |
Returns log directory's name. | |
std::string const & | getLogFileName () const |
Returns engine's log file name. | |
bool | getLogIncomingMessages () const |
Returns true if the incoming messages from a remote FIX Engine must be logged, otherwise false. | |
int | getLogonTimeFrame () const |
Returns the logon time frame. | |
int | getLogoutTimeFrame () const |
Returns the logout time frame. | |
int | getMaxDeliveryTries () const |
Returns the maximum number of tryes to deliver application message. | |
size_t | getMaximumParsersAllowed () const |
Returns the number of parsers the engine can have. | |
int | getMaxReconnectTries () const |
Returns the maximum number of tries to to restore the telecommunications link. | |
bool | getMessageMustBeValidated () const |
Returns true if the validity of the input message must be checked, false otherwise. | |
int | getNumberOfWorkers () const |
Returns the number of workers. | |
int | getOutgoingMessagesStorageSize () const |
Returns the maximum number of outgoing messages that can be retransmitted in case of Resend Requests. | |
int | getReasonableTransmissionTime () const |
Returns reasonable transmission time - in % from HeartBeat value. | |
int | getReconnectInterval () const |
Returns the time interval between tries to restore the telecommunications link (in milliseconds) | |
unsigned int | getResendMessagesBlockSize () const |
std::string const & | getRoot () const |
Returns the top of the directory tree under which the engine's configuration, and log files are kept. | |
std::string const & | getSlicedStorageBackupDir () const |
Returns path to SlicedPersistentMsgStorage backup directory. | |
std::size_t | getSlicedStorageSliceSize () const |
Returns max slice size for SlicedPersistentMsgStorage. | |
std::string | getSSLCACertificatePath () const |
Returns SSL CA certificates path. | |
std::string | getSSLCertificatePath () const |
Returns SSL certificate path. | |
std::string | getSSLCiphersList () const |
Returns configured SSL ciphers list. | |
System::SSLClientContext | getSSLClientContext (const System::SSLContextConfiguratorPtr &configurator=System::SSLContextConfiguratorPtr()) const |
Returns client specific SSL context populated with properties configured values. | |
std::string | getSSLPrivateKeyPath () const |
Returns SSL private key path. | |
System::SSLServerContext | getSSLServerContext (const System::SSLContextConfiguratorPtr &configurator=System::SSLContextConfiguratorPtr()) const |
Returns server specific SSL context populated with properties configured values including certificate and private key data using getSSLCertificatePath() and getSSLPrivateKeyPath() respectively. | |
int | getSSLUseProtocols () const |
Returns SSL protocols value acceptable by SSLClientContext. | |
std::string | getStringProperty (const std::string &propertyName) const |
Returns std::string value of given property. | |
TimezoneConverterPtr | getTimezoneConverter () const |
Returns Timezones converter instance created using Timezones definition file configured. | |
const std::string | getTimezoneDB () const |
Returns path to Timezones definition file. | |
MessageStorageType | getUnregisteredAcceptorSessionStorageType () const |
Returns storage type of the unregistered sessions. | |
bool | isAllowEmptyFieldValue () const |
Returns true when "AllowEmptyFieldValue" defined and true, false otherwise. | |
bool | isAllowZeroNumInGroup () const |
Returns true when "AllowZeroNumInGroup" defined and true, false otherwise. | |
bool | isCreateUnregisteredAcceptorSessionMode () const |
Returns true if "CreateUnregisteredAcceptorSession" mode must be used, false otherwise. | |
bool | isExtraSafeMode () const |
bool | isFailOverMode () const |
Returns true if the automatic failover mechanism is on. | |
bool | isIgnoreseqNumTooLowAtLogon () const |
Returns true if "UnregisteredAcceptor.IgnoreSeqNumTooLowAtLogon" mode must be used, false otherwise. | |
bool | isIntradayLogoutToleranceMode () const |
Returns true if the Intraday Logout Tolerance mode is active, otherwise - false. | |
bool | isRebuildIndexEnabled () const |
bool | isRejectFlagSupportRequired () const |
bool | isResetSeqNumAfter24hoursMode () const |
An option to send a Logon message with the ResetSeqNumFlag set after each 24 hour period of session's activity to establish a new set of sequence numbers (starting with 1). | |
bool | isSSLValidatePeerCertificate () const |
Returns is SSL sould validate peer certificate. | |
bool | isThirdPartyRoutingEnabled () const |
Returns true if the third-party routing is enabled, false otherwise. | |
bool | isTimestampsInLogsMode () const |
An option to write timestamps in the log files. | |
int | messageTimeToLive () const |
Returns value of the "MessageTimeToLive". | |
bool | receiveTimestampsEnabled () const |
Returns true if receive timestamps are enabled. | |
bool | unregisteredAcceptorMessageRejectingEnabled () const |
Returns true if "UnregAcceptorsRejectMessageWhileNoConnection" contains true. | |
Static Public Member Functions | |
static bool | checkTagsDelimiterValue (unsigned char value) |
Returns True if tags delimiter value is allowed. | |
static System::SSLContextConfiguratorPtr | getSSLContextConfiguratorInstance (int protocols, const std::string &ciphersList, const std::string &caFile, const std::string &certificateFile, const std::string &privatekeyFile, const std::string &certificatePassword, const std::string &privateKeyPassword, bool validatePeerCertificate) |
Returns SSLContextConfigurator instance to use as configuration source in for SSLContext server specific SSL context (call to getSSLClientContext() for example). | |
Friends | |
class | FixEngine |
class | FixEngineImpl |
FixEngine's configuration parameters.
typedef std::map<std::string, CronSessionsScheduleParameters> Engine::FAProperties::ConfiguredSchedulesMap |
typedef std::vector<SessionId> Engine::FAProperties::ConfiguredSessionsList |
typedef std::map<SessionId, SessionExtraParameters> Engine::FAProperties::ConfiguredSessionsMap |
|
static |
Returns True if tags delimiter value is allowed.
bool Engine::FAProperties::existsProperty | ( | const std::string & | propertyName | ) | const |
Returns true if property is exists.
ForceSeqNumResetMode Engine::FAProperties::forceSeqNumResetMode | ( | ) | const |
An option to automatically reset sequence number of the unregistered acceptors.
bool Engine::FAProperties::getBinaryProperty | ( | const std::string & | propertyName | ) | const |
Returns bool value of given property.
bool Engine::FAProperties::getCheckOutgoingMsgsVer | ( | ) | const |
Returns true if it is necessary to check that the version of outgoing messages is equal to the version of the session otherwise false.
bool Engine::FAProperties::getCheckRequiredGroupFields | ( | ) | const |
Returns true if it is necessary to check that the version of outgoing messages is equal to the version of the session otherwise false.
ConfiguredSchedulesMap Engine::FAProperties::getConfiguredSchedules | ( | ) | const |
Returns map of configured schedules parameters.
ConfiguredSessionsMap Engine::FAProperties::getConfiguredSessions | ( | const SessionRole | filterInRole = NA_SESSION_ROLE | ) | const |
Returns map of configured sessions parameters that can be used during sessions creating with createSession() routine.
ConfiguredSessionsList Engine::FAProperties::getConfiguredSessionsList | ( | ) | const |
Returns ids of configured sessions.
std::string Engine::FAProperties::getConnectAddress | ( | ) | const |
Returns engine's local IP address to send from.
SessionExtraParameters Engine::FAProperties::getDefaultSessionParameters | ( | ) | const |
Returns 'Default' session configured parameters.
Please note that these perameters may be incomplete since 'Default' session is just a default set of parameters and not a real session.
int Engine::FAProperties::getDeliveryTriesInterval | ( | ) | const |
Returns the time interval between tries to deliver application message (in milliseconds).
std::string const & Engine::FAProperties::getDictionariesFilesList | ( | ) | const |
Returns value of "DictionariesFilesList" property.
int Engine::FAProperties::getFailOverCommandPort | ( | ) | const |
Returns Failover Command Port.
int Engine::FAProperties::getFailOverDataPort | ( | ) | const |
Returns Failover Data Port.
std::string Engine::FAProperties::getFailOverHost | ( | ) | const |
Returns the stand-by node address.
FAIL_OVER_ROLE Engine::FAProperties::getFailOverRole | ( | ) | const |
Returns the current failover role.
bool Engine::FAProperties::getGatherSessionStatistic | ( | ) | const |
int Engine::FAProperties::getIntegerProperty | ( | const std::string & | propertyName | ) | const |
Returns int value of given property.
std::string const & Engine::FAProperties::getLicenseFileName | ( | ) | const |
Returns the license file name.
std::string Engine::FAProperties::getListenAddress | ( | ) | const |
Returns engine's local IP address to bind to.
int Engine::FAProperties::getListenPort | ( | ) | const |
Returns engine listen port number.
ListenPorts Engine::FAProperties::getListenPorts | ( | ) | const |
Returns engine listen ports.
std::string const & Engine::FAProperties::getLogDir | ( | ) | const |
Returns log directory's name.
std::string const & Engine::FAProperties::getLogFileName | ( | ) | const |
Returns engine's log file name.
bool Engine::FAProperties::getLogIncomingMessages | ( | ) | const |
Returns true if the incoming messages from a remote FIX Engine must be logged, otherwise false.
int Engine::FAProperties::getLogonTimeFrame | ( | ) | const |
Returns the logon time frame.
int Engine::FAProperties::getLogoutTimeFrame | ( | ) | const |
Returns the logout time frame.
int Engine::FAProperties::getMaxDeliveryTries | ( | ) | const |
Returns the maximum number of tryes to deliver application message.
size_t Engine::FAProperties::getMaximumParsersAllowed | ( | ) | const |
Returns the number of parsers the engine can have.
int Engine::FAProperties::getMaxReconnectTries | ( | ) | const |
Returns the maximum number of tries to to restore the telecommunications link.
If -1 then the number of tries is unlimited.
bool Engine::FAProperties::getMessageMustBeValidated | ( | ) | const |
Returns true if the validity of the input message must be checked, false otherwise.
int Engine::FAProperties::getNumberOfWorkers | ( | ) | const |
Returns the number of workers.
int Engine::FAProperties::getOutgoingMessagesStorageSize | ( | ) | const |
Returns the maximum number of outgoing messages that can be retransmitted in case of Resend Requests.
If '-1' then the size is unlimited.
int Engine::FAProperties::getReasonableTransmissionTime | ( | ) | const |
Returns reasonable transmission time - in % from HeartBeat value.
int Engine::FAProperties::getReconnectInterval | ( | ) | const |
Returns the time interval between tries to restore the telecommunications link (in milliseconds)
unsigned int Engine::FAProperties::getResendMessagesBlockSize | ( | ) | const |
std::string const & Engine::FAProperties::getRoot | ( | ) | const |
Returns the top of the directory tree under which the engine's configuration, and log files are kept.
std::string const & Engine::FAProperties::getSlicedStorageBackupDir | ( | ) | const |
Returns path to SlicedPersistentMsgStorage backup directory.
std::size_t Engine::FAProperties::getSlicedStorageSliceSize | ( | ) | const |
Returns max slice size for SlicedPersistentMsgStorage.
std::string Engine::FAProperties::getSSLCACertificatePath | ( | ) | const |
Returns SSL CA certificates path.
std::string Engine::FAProperties::getSSLCertificatePath | ( | ) | const |
Returns SSL certificate path.
std::string Engine::FAProperties::getSSLCiphersList | ( | ) | const |
Returns configured SSL ciphers list.
System::SSLClientContext Engine::FAProperties::getSSLClientContext | ( | const System::SSLContextConfiguratorPtr & | configurator = System::SSLContextConfiguratorPtr() | ) | const |
Returns client specific SSL context populated with properties configured values.
configurator | - custom SSL context configurator. |
|
static |
Returns SSLContextConfigurator instance to use as configuration source in for SSLContext server specific SSL context (call to getSSLClientContext() for example).
std::string Engine::FAProperties::getSSLPrivateKeyPath | ( | ) | const |
Returns SSL private key path.
System::SSLServerContext Engine::FAProperties::getSSLServerContext | ( | const System::SSLContextConfiguratorPtr & | configurator = System::SSLContextConfiguratorPtr() | ) | const |
Returns server specific SSL context populated with properties configured values including certificate and private key data using getSSLCertificatePath() and getSSLPrivateKeyPath() respectively.
configurator | - custom SSL context configurator. |
int Engine::FAProperties::getSSLUseProtocols | ( | ) | const |
Returns SSL protocols value acceptable by SSLClientContext.
std::string Engine::FAProperties::getStringProperty | ( | const std::string & | propertyName | ) | const |
Returns std::string value of given property.
TimezoneConverterPtr Engine::FAProperties::getTimezoneConverter | ( | ) | const |
Returns Timezones converter instance created using Timezones definition file configured.
const std::string Engine::FAProperties::getTimezoneDB | ( | ) | const |
Returns path to Timezones definition file.
MessageStorageType Engine::FAProperties::getUnregisteredAcceptorSessionStorageType | ( | ) | const |
Returns storage type of the unregistered sessions.
bool Engine::FAProperties::isAllowEmptyFieldValue | ( | ) | const |
Returns true when "AllowEmptyFieldValue" defined and true, false otherwise.
bool Engine::FAProperties::isAllowZeroNumInGroup | ( | ) | const |
Returns true when "AllowZeroNumInGroup" defined and true, false otherwise.
bool Engine::FAProperties::isCreateUnregisteredAcceptorSessionMode | ( | ) | const |
Returns true if "CreateUnregisteredAcceptorSession" mode must be used, false otherwise.
bool Engine::FAProperties::isExtraSafeMode | ( | ) | const |
bool Engine::FAProperties::isFailOverMode | ( | ) | const |
Returns true if the automatic failover mechanism is on.
If false then it is off.
bool Engine::FAProperties::isIgnoreseqNumTooLowAtLogon | ( | ) | const |
Returns true if "UnregisteredAcceptor.IgnoreSeqNumTooLowAtLogon" mode must be used, false otherwise.
bool Engine::FAProperties::isIntradayLogoutToleranceMode | ( | ) | const |
Returns true if the Intraday Logout Tolerance mode is active, otherwise - false.
bool Engine::FAProperties::isRebuildIndexEnabled | ( | ) | const |
bool Engine::FAProperties::isRejectFlagSupportRequired | ( | ) | const |
bool Engine::FAProperties::isResetSeqNumAfter24hoursMode | ( | ) | const |
An option to send a Logon message with the ResetSeqNumFlag set after each 24 hour period of session's activity to establish a new set of sequence numbers (starting with 1).
bool Engine::FAProperties::isSSLValidatePeerCertificate | ( | ) | const |
Returns is SSL sould validate peer certificate.
bool Engine::FAProperties::isThirdPartyRoutingEnabled | ( | ) | const |
Returns true if the third-party routing is enabled, false otherwise.
bool Engine::FAProperties::isTimestampsInLogsMode | ( | ) | const |
An option to write timestamps in the log files.
int Engine::FAProperties::messageTimeToLive | ( | ) | const |
Returns value of the "MessageTimeToLive".
bool Engine::FAProperties::receiveTimestampsEnabled | ( | ) | const |
Returns true if receive timestamps are enabled.
bool Engine::FAProperties::unregisteredAcceptorMessageRejectingEnabled | ( | ) | const |
Returns true if "UnregAcceptorsRejectMessageWhileNoConnection" contains true.
|
friend |
|
friend |