|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.fixengine.SessionParameters
public class SessionParameters
This bean contains all session level configuration for current session.
It is possible to confiniently define a list of custom FIX fields that will be added to each message. For more complex message customization take a look at
for more precise customization
Field Summary | |
---|---|
protected static boolean |
defUseBlockingSockets
|
protected static boolean |
defUseJavaNIO
|
protected static boolean |
defUseSpinningRead
|
Constructor Summary | |
---|---|
SessionParameters()
|
|
SessionParameters(Configuration config)
|
Method Summary | |
---|---|
void |
addHeaderField(FIXField field)
Add user defined field. |
void |
addIncomingLoginField(FIXField field)
Added incoming login field. |
void |
addOutgoingLoginField(FIXField field)
Deprecated. |
void |
addOutgoingLoginField(int tag,
byte value)
Add field to outgoing login fields list. |
void |
addOutgoingLoginField(int tag,
byte[] value)
Add field to outgoing login fields list. |
void |
addOutgoingLoginField(int tag,
byte[] value,
int offset,
int length)
Add field to outgoing login fields list. |
void |
addOutgoingLoginField(int tag,
Calendar value,
FIXDateFormatterFactory.FIX_DATE_TYPE type)
Add field to outgoing login fields list. |
void |
addOutgoingLoginField(int tag,
CharSequence value)
Add field to outgoing login fields list. |
void |
addOutgoingLoginField(int tag,
double value,
int precision)
Add field to outgoing login fields list. |
void |
addOutgoingLoginField(int tag,
long value)
Add field to outgoing login fields list. |
Object |
clone()
Creates and returns a copy of this object. |
FIXSession |
createNewFIXSession()
Creates initiator fix session. |
void |
decrementIncomingSequenceNumber()
Decrements incoming sequence number. |
void |
decrementOutgoingSequenceNumber()
Decrements outgoing sequence number. |
void |
disableResetInSeqNumsOnNextConnect()
|
void |
disableResetOutSeqNumsOnNextConnect()
|
boolean |
equals(Object o)
|
void |
fromProperties(Properties properties)
Creates the SessionParameters from properties. |
FIXVersion |
getAppVersion()
Gets App version. |
FIXVersionContainer |
getAppVersionContainer()
|
String |
getBackupHost()
Gets backup host. |
int |
getBackupPort()
Gets backup port. |
Configuration |
getConfiguration()
|
HashMap<String,Object> |
getConnectivityParams()
Get additional configuration properties for transport. |
com.epam.fixengine.encryption.EncryptionType |
getEncryptionType()
Gets encryption type. |
FIXFieldList |
getFixFieldList()
Gets user defined fields. |
FIXVersion |
getFixVersion()
Gets fix version. |
FIXVersionContainer |
getFixVersionContainer()
|
ForceSeqNumReset |
getForceSeqNumReset()
Gets force sequence reset. |
int |
getHeartbeatInterval()
Gets heartbeat interval. |
String |
getHost()
Gets host. |
FIXFieldList |
getIncomingLoginFixFieldList()
Gets incoming login fields. |
String |
getIncomingPassword()
|
long |
getIncomingSequenceNumber()
Gets incoming sequence number. |
String |
getIncomingUserName()
|
long |
getInSeqNumsForNextConnect()
|
long |
getLastSeqNumResetTimestamp()
Gets last seq num reset timestamp. |
FIXFieldList |
getOutgoingLoginFixFieldList()
Gets outgoing login fields. |
long |
getOutgoingSequenceNumber()
Gets outgoing sequence number. |
long |
getOutSeqNumsForNextConnect()
|
String |
getPassword()
|
int |
getPort()
Gets port. |
long |
getProcessedIncomingSequenceNumber()
Gets last valid incoming sequence number. |
String |
getSenderCompId()
Gets sender comp id. |
String |
getSenderLocationId()
Gets sender location id. |
String |
getSenderSubId()
Gets sender sub id. |
SessionID |
getSessionId()
|
String |
getSessionID()
|
String |
getSessionQualifier()
|
String |
getTargetCompId()
Gets target comp id. |
String |
getTargetLocationId()
Gets target location id. |
String |
getTargetSubId()
Gets target sub id. |
String |
getUserName()
|
int |
hashCode()
|
void |
incrementIncomingSequenceNumber()
Increment incoming sequence number. |
void |
incrementOutgoingSequenceNumber()
Increment outgoing sequence number. |
boolean |
isCustomSessionID()
|
boolean |
isNeedToIncludeLastProcessed()
|
boolean |
isResetInSeqNumsOnNextConnect()
|
boolean |
isResetOutSeqNumsOnNextConnect()
|
boolean |
isResetSeqNumsOnNextConnect()
|
boolean |
isSimilar(SessionParameters other)
Return true if parameter object describe the same FIX session. |
boolean |
isSimilar(SessionParameters other,
List<String> errors)
Return true if parameter object describe the same FIX session. |
protected boolean |
isUseBlockingSocket()
|
boolean |
isUseJavaNIO()
|
static boolean |
isUseJavaNIOByDefault()
|
protected boolean |
isUseSpinningRead()
|
void |
printConfiguration()
|
void |
setAppVersion(FIXVersion appVersion)
Sets App version. |
void |
setAppVersion(FIXVersionContainer appVersionContainer)
|
void |
setBackupHost(String backupHost)
Sets backup host. |
void |
setBackupPort(int backupPort)
Sets backup port. |
void |
setConfiguration(Configuration configuration)
Setter for Configuration. |
void |
setEncryptionType(com.epam.fixengine.encryption.EncryptionType encryptionType)
Sets encryption type. |
void |
setFixFieldList(FIXFieldList fixFieldList)
Sets user defined fields. |
void |
setFixVersion(FIXVersion fixVersion)
Sets fix version. |
void |
setFixVersion(FIXVersionContainer fixVersionContainer)
|
void |
setForceSeqNumReset(ForceSeqNumReset forceSeqNumReset)
Sets force sequence reset. |
void |
setHeartbeatInterval(int heartbeatInterval)
Sets heartbeat interval. |
void |
setHost(String host)
Sets host. |
void |
setIncomingLoginFixFieldList(FIXFieldList incomingLoginFixFieldList)
Sets incoming login fields. |
void |
setIncomingSequenceNumber(long incomingSequenceNumber)
Sets incoming sequence number. |
void |
setInSeqNumsForNextConnect(long inSeqNumsForNextConnect)
|
void |
setLastSeqNumResetTimestamp(long lastSeqNumResetTimestamp)
Sets last seq num reset timestamp. |
void |
setOutgoingLoginFixFieldList(FIXFieldList outgoingLoginFixFieldList)
Sets outgoing login fields. |
void |
setOutgoingSequenceNumber(long outgoingSequenceNumber)
Sets outgoing sequence number. |
void |
setOutSeqNumsForNextConnect(long outSeqNumsForNextConnect)
|
void |
setPassword(String password)
|
void |
setPort(int port)
Sets port. |
void |
setProcessedIncomingSequenceNumber(long lastProcessedIncomingSequenceNumber)
Sets last valid incoming sequence number. |
void |
setSenderCompId(String senderCompId)
Sets sender comp id. |
void |
setSenderLocationId(String senderLocationId)
Sets sender location id. |
void |
setSenderSubId(String senderSubId)
Sets sender sub id. |
void |
setSessionID(String sessionId)
Change session identifier |
void |
setSessionQualifier(String qualifier)
|
void |
setTargetCompId(String targetCompId)
Sets target comp id. |
void |
setTargetLocationId(String targetLocationId)
Sets target location id. |
void |
setTargetSubId(String targetSubId)
Sets target sub id. |
void |
setUserName(String username)
|
Properties |
toProperties()
Creates and returns a copy of this object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static boolean defUseSpinningRead
protected static boolean defUseBlockingSockets
protected static boolean defUseJavaNIO
Constructor Detail |
---|
public SessionParameters(Configuration config)
public SessionParameters()
Method Detail |
---|
public HashMap<String,Object> getConnectivityParams()
protected boolean isUseBlockingSocket()
protected boolean isUseSpinningRead()
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration
- the configurationpublic FIXVersion getFixVersion()
public void setFixVersion(FIXVersion fixVersion)
fixVersion
- the fix versionpublic FIXVersion getAppVersion()
public void setAppVersion(FIXVersion appVersion)
appVersion
- the app versionpublic FIXVersionContainer getFixVersionContainer()
public void setFixVersion(FIXVersionContainer fixVersionContainer)
public FIXVersionContainer getAppVersionContainer()
public void setAppVersion(FIXVersionContainer appVersionContainer)
public FIXFieldList getFixFieldList()
public void setFixFieldList(FIXFieldList fixFieldList)
fixFieldList
- the user defined fieldspublic void addHeaderField(FIXField field)
field
- the fieldpublic long getIncomingSequenceNumber()
public void setIncomingSequenceNumber(long incomingSequenceNumber)
incomingSequenceNumber
- the incoming seq numberpublic long getOutgoingSequenceNumber()
public void setOutgoingSequenceNumber(long outgoingSequenceNumber)
outgoingSequenceNumber
- the outgoing seq numberpublic long getProcessedIncomingSequenceNumber()
public void setProcessedIncomingSequenceNumber(long lastProcessedIncomingSequenceNumber)
lastProcessedIncomingSequenceNumber
- public String getSenderCompId()
public void setSenderCompId(String senderCompId)
senderCompId
- the sender comp idpublic String getTargetCompId()
public void setTargetCompId(String targetCompId)
targetCompId
- the target comp idpublic String getSenderSubId()
public void setSenderSubId(String senderSubId)
senderSubId
- the sender sub idpublic String getTargetSubId()
public void setTargetSubId(String targetSubId)
targetSubId
- the target sub idpublic String getSenderLocationId()
public void setSenderLocationId(String senderLocationId)
senderLocationId
- the sender location idpublic String getTargetLocationId()
public void setTargetLocationId(String targetLocationId)
targetLocationId
- the target location idpublic String getSessionID()
public SessionID getSessionId()
public void setSessionID(String sessionId)
sessionId
- unique string value. maximum 200 characters length. Allowed characters: a-z, A-Z, 0-9, '.',
'-', '_', ' '(space) and '!'public void setSessionQualifier(String qualifier)
public String getSessionQualifier()
public boolean isCustomSessionID()
public int getHeartbeatInterval()
public void setHeartbeatInterval(int heartbeatInterval)
heartbeatInterval
- the HBI, default value is 30.public String getHost()
public void setHost(String host)
host
- the hostpublic int getPort()
public void setPort(int port)
port
- the portpublic ForceSeqNumReset getForceSeqNumReset()
public void setForceSeqNumReset(ForceSeqNumReset forceSeqNumReset)
forceSeqNumReset
- the forceSeqNumResetpublic void incrementIncomingSequenceNumber()
public void incrementOutgoingSequenceNumber()
public void setUserName(String username)
public String getUserName()
public void setPassword(String password)
public String getPassword()
public String getIncomingUserName()
public String getIncomingPassword()
public void addIncomingLoginField(FIXField field)
field
- the login fieldpublic FIXFieldList getIncomingLoginFixFieldList()
public void setIncomingLoginFixFieldList(FIXFieldList incomingLoginFixFieldList)
incomingLoginFixFieldList
- the incoming login fix field listpublic FIXFieldList getOutgoingLoginFixFieldList()
public void setOutgoingLoginFixFieldList(FIXFieldList outgoingLoginFixFieldList)
outgoingLoginFixFieldList
- the list of outgoing fields@Deprecated public void addOutgoingLoginField(FIXField field)
field
- login fieldpublic void addOutgoingLoginField(int tag, CharSequence value)
tag
- value
- public void addOutgoingLoginField(int tag, byte value)
tag
- value
- public void addOutgoingLoginField(int tag, byte[] value)
tag
- value
- public void addOutgoingLoginField(int tag, byte[] value, int offset, int length)
tag
- value
- public void addOutgoingLoginField(int tag, long value)
tag
- value
- public void addOutgoingLoginField(int tag, double value, int precision)
tag
- value
- public void addOutgoingLoginField(int tag, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type)
tag
- value
- public com.epam.fixengine.encryption.EncryptionType getEncryptionType()
public void setEncryptionType(com.epam.fixengine.encryption.EncryptionType encryptionType)
encryptionType
- the encryption typepublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Properties toProperties()
public void fromProperties(Properties properties)
properties
- the propertiespublic void decrementIncomingSequenceNumber()
public void decrementOutgoingSequenceNumber()
public long getLastSeqNumResetTimestamp()
public void setLastSeqNumResetTimestamp(long lastSeqNumResetTimestamp)
lastSeqNumResetTimestamp
- the timestamppublic boolean isResetSeqNumsOnNextConnect()
public boolean isResetInSeqNumsOnNextConnect()
public boolean isResetOutSeqNumsOnNextConnect()
public void setInSeqNumsForNextConnect(long inSeqNumsForNextConnect)
public void setOutSeqNumsForNextConnect(long outSeqNumsForNextConnect)
public long getInSeqNumsForNextConnect()
public long getOutSeqNumsForNextConnect()
public void disableResetInSeqNumsOnNextConnect()
public void disableResetOutSeqNumsOnNextConnect()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getBackupHost()
public int getBackupPort()
public void setBackupHost(String backupHost)
backupHost
- the backup portpublic void setBackupPort(int backupPort)
backupPort
- the backup portpublic FIXSession createNewFIXSession() throws IOException
IOException
public void printConfiguration()
public boolean isNeedToIncludeLastProcessed()
public boolean isUseJavaNIO()
public static boolean isUseJavaNIOByDefault()
public boolean isSimilar(SessionParameters other)
other
-
public boolean isSimilar(SessionParameters other, List<String> errors)
other
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |