|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.engine.EngineSettings
public class EngineSettings
The Engine configuration settings.
Field Summary | |
---|---|
protected static String |
DEFAULT_STORAGE_FOLDER
|
Constructor Summary | |
---|---|
EngineSettings()
|
Method Summary | |
---|---|
void |
addListenPort(int listenPort)
Adds listen port for incoming FIX connections. |
int |
getConnectionInputStreamBufferSize()
|
int |
getConnectionOutputQueueDrainAmount()
Returns the max number of messages to take from the outgoing queue and send to the socket in a single call. |
int |
getConnectionOutputQueueSize()
|
int |
getConnectionOutputStreamBufferSize()
|
int |
getConnectionPerfPreferenceBandwidth()
|
int |
getConnectionPerfPreferenceConnectionTime()
|
int |
getConnectionPerfPreferenceLatency()
|
int |
getConnectionRetriesInterval()
Returns reconnection interval in milliseconds. |
int |
getConnectionRetriesNumber()
Returns reconnection attempts number. |
int |
getConnectionTcpReceiveBufferSize()
|
int |
getConnectionTcpSendBufferSize()
|
int |
getDefaultHeartbeatInterval()
Returns the default heartbeat interval in seconds. |
String |
getDialects()
Returns the location of one or several files with the FIX dialects definition. |
String |
getFullStorageFolder()
|
MessageFilter |
getInboundMessageLogFilter()
|
String |
getLicense()
Returns the content of the license file if it is set explicitly using setLicense(String) . |
String |
getLicenseFile()
Returns the name of the license file resource. |
Integer[] |
getListenPorts()
Returns listen port(s) for incoming FIX connections. |
int |
getReasonableTransmissionTime()
Returns reasonable transmission time as % from heartbeat interval value. |
int |
getSessionListenerDelayWarningThreshold()
|
String |
getStorageFolder()
|
void |
init(biz.onixs.util.settings.Settings settings)
|
boolean |
isCheckCompIdsMatch()
Returns whether SenderCompId and TargetCompId must match session values in every inbound FIX message. |
boolean |
isConnectionTcpNoDelay()
|
boolean |
isLogInboundMessages()
|
boolean |
isProcessLogonNextExpectedMsgSeqNum()
|
boolean |
isSessionEventArgReuse()
Returns whether to re-use session event argument objects in each session. |
boolean |
isSessionSendLogoutOnException()
Returns option to send the Logout message before dropping the telecommunication link in case of Exception during the processing of incoming FIX message. |
boolean |
isValidateFieldValues()
|
boolean |
isValidateInboundMessages()
|
boolean |
isValidateNumberOfRepeatingGroupInstances()
|
boolean |
isValidateOutboundMessages()
|
boolean |
isValidateRequiredFields()
|
boolean |
isValidateUnknownFields()
|
void |
setCheckCompIdsMatch(boolean checkCompIdsMatch)
Sets whether SenderCompId and TargetCompId must match session values in every inbound FIX message. |
void |
setConnectionInputStreamBufferSize(int connectionInputStreamBufferSize)
|
void |
setConnectionOutputQueueDrainAmount(int connectionOutputQueueDrainAmount)
Sets the max number of messages to take from the outgoing queue and send to the socket in a single call. |
void |
setConnectionOutputQueueSize(int connectionOutputQueueSize)
|
void |
setConnectionOutputStreamBufferSize(int connectionOutputStreamBufferSize)
|
void |
setConnectionPerfPreferenceBandwidth(int connectionPerfPreferenceBandwidth)
|
void |
setConnectionPerfPreferenceConnectionTime(int connectionPerfPreferenceConnectionTime)
|
void |
setConnectionPerfPreferenceLatency(int connectionPerfPreferenceLatency)
|
void |
setConnectionRetriesInterval(int connectionRetriesInterval)
Sets the reconnection interval in milliseconds. |
void |
setConnectionRetriesNumber(int connectionRetries)
Sets reconnection attempts number. |
void |
setConnectionTcpNoDelay(boolean connectionTcpNoDelay)
|
void |
setConnectionTcpReceiveBufferSize(int connectionTcpReceiveBufferSize)
|
void |
setConnectionTcpSendBufferSize(int connectionTcpSendBufferSize)
|
void |
setDefaultHeartbeatInterval(int defaultHeartbeatInterval)
Sets the default heartbeat interval in seconds. |
void |
setDialects(String dialects)
Sets the location of one or several files with the FIX dialects definition. |
void |
setInboundMessageLogFilter(MessageFilter inboundMessageLogFilter)
|
void |
setLicense(String license)
Sets the content of the license file. |
void |
setLicenseFile(String licenseFile)
Sets the name of the license file resource. |
void |
setListenPorts(String listenPorts)
Sets listen port(s) for incoming FIX connections. |
void |
setLogInboundMessages(boolean logInboundMessages)
|
void |
setProcessLogonNextExpectedMsgSeqNum(boolean processLogonNextExpectedMsgSeqNum)
|
void |
setReasonableTransmissionTime(int reasonableTransmissionTime)
Sets reasonable transmission time as % from heartbeat interval value. |
void |
setSessionEventArgReuse(boolean sessionEventArgReuse)
Sets whether to re-use session event argument objects in each session. |
void |
setSessionListenerDelayWarningThreshold(int sessionListenerDelayWarningThreshold)
|
void |
setSessionSendLogoutOnException(boolean sessionSendLogoutOnException)
Sets option to send the Logout message before dropping the telecommunication link in case of Exception during the processing of incoming FIX message. |
void |
setStorageFolder(String storageFolder)
|
void |
setValidateFieldValues(boolean validateFieldValues)
|
void |
setValidateInboundMessages(boolean validateInboundMessages)
|
void |
setValidateNumberOfRepeatingGroupInstances(boolean validateNumberOfRepeatingGroupInstances)
|
void |
setValidateOutboundMessages(boolean validateOutboundMessages)
|
void |
setValidateRequiredFields(boolean validateRequiredFields)
|
void |
setValidateUnknownFields(boolean validateUnknownFields)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String DEFAULT_STORAGE_FOLDER
Constructor Detail |
---|
public EngineSettings()
Method Detail |
---|
public int getSessionListenerDelayWarningThreshold()
public void setSessionListenerDelayWarningThreshold(int sessionListenerDelayWarningThreshold)
public boolean isProcessLogonNextExpectedMsgSeqNum()
public void setProcessLogonNextExpectedMsgSeqNum(boolean processLogonNextExpectedMsgSeqNum)
public MessageFilter getInboundMessageLogFilter()
public void setInboundMessageLogFilter(MessageFilter inboundMessageLogFilter)
public int getConnectionOutputQueueDrainAmount()
public void setConnectionOutputQueueDrainAmount(int connectionOutputQueueDrainAmount)
connectionOutputQueueDrainAmount
- max number of messages to send at once
EngineException
- if (connectionOutputQueueDrainAmount < 1)public boolean isValidateOutboundMessages()
public void setValidateOutboundMessages(boolean validateOutboundMessages)
public boolean isValidateInboundMessages()
public void setValidateInboundMessages(boolean validateInboundMessages)
public boolean isSessionSendLogoutOnException()
public void setSessionSendLogoutOnException(boolean sessionSendLogoutOnException)
sessionSendLogoutOnException
- option to send or not to sendpublic boolean isCheckCompIdsMatch()
public void setCheckCompIdsMatch(boolean checkCompIdsMatch)
checkCompIdsMatch
- check flagpublic int getConnectionRetriesNumber()
public void setConnectionRetriesNumber(int connectionRetries)
connectionRetries
- reconnection attempts number.
EngineException
- if (connectionRetries < 0)public int getConnectionRetriesInterval()
public void setConnectionRetriesInterval(int connectionRetriesInterval)
connectionRetriesInterval
- reconnection interval in milliseconds
EngineException
- if (connectionRetriesInterval <= 0)public int getDefaultHeartbeatInterval()
public void setDefaultHeartbeatInterval(int defaultHeartbeatInterval)
defaultHeartbeatInterval
- default heartbeat interval in seconds
EngineException
- if (defaultHeartbeatInterval < 0)public String getFullStorageFolder()
public void setDialects(String dialects)
dialects
- dialect files or empty string to set not dialectspublic String getDialects()
public void init(biz.onixs.util.settings.Settings settings)
public String getLicenseFile()
public void setLicenseFile(String licenseFile)
licenseFile
- license file resourcepublic void setLicense(String license)
license
- license file content, null to reset the valuepublic String getLicense()
setLicense(String)
.
public void setListenPorts(String listenPorts)
listenPorts
- comma delimited list of listen portspublic Integer[] getListenPorts()
public void addListenPort(int listenPort)
0
then only session-initiators can be created.
If it is set to -1
then the telecommunication level is disabled and only message parsing/assembling.
listenPort
- listen portpublic String getStorageFolder()
public void setStorageFolder(String storageFolder)
public boolean isLogInboundMessages()
public void setLogInboundMessages(boolean logInboundMessages)
public int getReasonableTransmissionTime()
public void setReasonableTransmissionTime(int reasonableTransmissionTime)
reasonableTransmissionTime
- reasonable transmission timepublic boolean isValidateFieldValues()
public boolean isValidateNumberOfRepeatingGroupInstances()
public boolean isValidateRequiredFields()
public boolean isValidateUnknownFields()
public int getConnectionPerfPreferenceBandwidth()
public int getConnectionPerfPreferenceLatency()
public int getConnectionPerfPreferenceConnectionTime()
public void setConnectionPerfPreferenceConnectionTime(int connectionPerfPreferenceConnectionTime)
public void setConnectionPerfPreferenceLatency(int connectionPerfPreferenceLatency)
public void setConnectionPerfPreferenceBandwidth(int connectionPerfPreferenceBandwidth)
public int getConnectionTcpReceiveBufferSize()
public int getConnectionTcpSendBufferSize()
public void setConnectionTcpReceiveBufferSize(int connectionTcpReceiveBufferSize)
public void setConnectionTcpSendBufferSize(int connectionTcpSendBufferSize)
public boolean isConnectionTcpNoDelay()
public void setConnectionTcpNoDelay(boolean connectionTcpNoDelay)
public int getConnectionInputStreamBufferSize()
public void setConnectionInputStreamBufferSize(int connectionInputStreamBufferSize)
public int getConnectionOutputStreamBufferSize()
public void setConnectionOutputStreamBufferSize(int connectionOutputStreamBufferSize)
public int getConnectionOutputQueueSize()
public void setConnectionOutputQueueSize(int connectionOutputQueueSize)
public void setValidateFieldValues(boolean validateFieldValues)
public void setValidateRequiredFields(boolean validateRequiredFields)
public void setValidateUnknownFields(boolean validateUnknownFields)
public void setValidateNumberOfRepeatingGroupInstances(boolean validateNumberOfRepeatingGroupInstances)
public boolean isSessionEventArgReuse()
public void setSessionEventArgReuse(boolean sessionEventArgReuse)
sessionEventArgReuse
- whether to re-use session event argument objectspublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |