public class HandlerSettings extends Object
| Constructor and Description |
|---|
HandlerSettings() |
| Modifier and Type | Method and Description |
|---|---|
ConnectionSettings |
getConnectionSettings()
Returns the connection settings.
|
int |
getHeartbeatInterval()
Returns the heartbeat interval in milliseconds.
|
String |
getLicenseContent()
Returns license file content if set explicitly.
|
String |
getLicenseDirectory()
Returns license directory.
|
String |
getLicenseFile()
Returns license file.
|
int |
getLogonTimeout()
Returns how long the handler waits for the exchange to answer a logon, in seconds.
|
int[] |
getReceivingThreadAffinity()
Returns a processor affinity mask for the receiving thread.
|
ReconnectionSettings |
getReconnectionSettings()
Returns reconnection settings.
|
String |
getRSAKeyPath()
Returns RSA Public Key path.
|
int[] |
getSendingThreadAffinity()
Returns a processor affinity mask for the sending thread.
|
int |
getTimeout()
Returns timeout in seconds.
|
void |
init(biz.onixs.util.settings.Settings settings)
Initializes the handler settings.
|
void |
init(String settingsResource)
Initializes the handler settings.
|
void |
setConnectionSettings(ConnectionSettings connectionSettings)
Sets the connection settings.
|
void |
setHeartbeatInterval(int heartbeatInterval)
Sets the heartbeat interval in milliseconds.
|
void |
setLicenseContent(String licenseContent)
Sets license file content explicitly.
|
void |
setLicenseDirectory(String licenseDirectory)
Sets license directory.
|
void |
setLicenseFile(String licenseFile)
Sets license file.
|
void |
setLogonTimeout(int timeoutInSeconds)
Sets how long the handler waits for the exchange to answer a logon, in seconds.
|
void |
setReceivingThreadAffinity(int[] affinity)
Sets a processor affinity mask for the receiving thread.
|
void |
setReconnectionSettings(ReconnectionSettings reconnectionSettings)
Sets reconnection settings.
|
void |
setRSAKeyPath(String rsaKeyPath)
Sets RSA Public Key path.
|
void |
setSendingThreadAffinity(int[] affinity)
Sets a processor affinity mask for the sending thread.
|
void |
setTimeout(int timeoutInSeconds)
Sets timeout in seconds.
|
String |
toString() |
public void init(String settingsResource) throws HandlerException
settingsResource - settings resource to load fromHandlerException - if a setting the resource carries is not usable - a Host left
at its placeholder value, or an RSAKeyPath naming a file that does not existpublic void init(biz.onixs.util.settings.Settings settings)
throws HandlerException
settings - to applyHandlerException - if a setting is not usable - a Host left at its placeholder value,
or an RSAKeyPath naming a file that does not existpublic int[] getSendingThreadAffinity()
null.public void setSendingThreadAffinity(int[] affinity)
null.affinity - affinity mask for the sending thread.public int[] getReceivingThreadAffinity()
null.public void setReceivingThreadAffinity(int[] affinity)
null.affinity - affinity mask for the receiving thread.public int getHeartbeatInterval()
public void setHeartbeatInterval(int heartbeatInterval)
heartbeatInterval - heartbeat interval, from 100 till 60000, default is 30000.public ConnectionSettings getConnectionSettings()
public void setConnectionSettings(ConnectionSettings connectionSettings)
connectionSettings - connection settingspublic String getLicenseFile()
public void setLicenseFile(String licenseFile)
licenseFile - license file.public String getLicenseDirectory()
public void setLicenseDirectory(String licenseDirectory)
licenseDirectory - license directorypublic String getLicenseContent()
public void setLicenseContent(String licenseContent)
licenseContent - license file contentpublic ReconnectionSettings getReconnectionSettings()
public void setReconnectionSettings(ReconnectionSettings reconnectionSettings)
reconnectionSettings - reconnection settingspublic int getTimeout()
public void setTimeout(int timeoutInSeconds)
This bounds establishing the connection; setLogonTimeout(int) bounds the logon
that follows it.
timeoutInSeconds - timeout in seconds, from 1 to 2147483IllegalArgumentException - if the value is outside that rangepublic int getLogonTimeout()
public void setLogonTimeout(int timeoutInSeconds)
A gateway that accepts the connection and then fails to answer the logon - saying nothing,
or sending part of an answer and stopping - ends the attempt once this elapses, rather than
leaving the handler
HandlerState.CONNECTING indefinitely. The attempt
then fails like any other, so
the reconnection settings apply to it.
This is separate from setTimeout(int), which bounds establishing the connection
rather than the logon that follows it, and it holds whether the exchange stays silent or
sends part of an answer and stops. Setting Timeout higher than this value does not
weaken it.
timeoutInSeconds - logon timeout in seconds, from 1 to 86400IllegalArgumentException - if the value is outside that rangepublic String getRSAKeyPath()
public void setRSAKeyPath(String rsaKeyPath)
rsaKeyPath - RSA Public Key path.Copyright © 2012–2026 Onix Solutions. All rights reserved.