Package com.epam.admintool.commands.util
Class CommandUtil
java.lang.Object
com.epam.admintool.commands.util.CommandUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final com.epam.fixicc.message.StatusGroup
static final Map<String,
FIXVersion> static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic FIXVersion
getAppVersion
(String version) static com.epam.fixicc.message.EncryptMethod
getEncryptMethod
(com.epam.fixengine.encryption.EncryptionType encryptionType) static com.epam.fixicc.message.ExtraSessionParams
getExtraSessionParams
(ExtendedFIXSession fixSession) Gets extra session params from fix session.static com.epam.fixicc.message.ExtraSessionParams
getExtraSessionParams
(SessionParameters parameters, FIXSessionRuntimeState runtimeState) Gets extra session params from FIX session parameters.static FIXVersion
getFixVersion
(String version) static long
getInSeqNum
(SessionParameters parameters, FIXSessionRuntimeState runtimeState) static long
getOutSeqNum
(SessionParameters parameters, FIXSessionRuntimeState runtimeState) protected static boolean
getPropertyAsBollean
(ExtendedFIXSession session, String name, boolean defaultVal) static com.epam.fixicc.message.SessionRole
getRole
(ExtendedFIXSession session) static com.epam.fixicc.message.StatusGroup
getStatusGroup
(ExtendedFIXSession session) static String
getVersion
(FIXVersion fixVersion, FIXVersion appVersion) static XMLGregorianCalendar
getXmlGregorianCalendarValue
(long time) static XMLGregorianCalendar
static com.epam.fixicc.message.BackupState
isBackupHost
(ExtendedFIXSession session)
-
Field Details
-
CONFIGURED_SESSION_STATUS_GROUP
public static final com.epam.fixicc.message.StatusGroup CONFIGURED_SESSION_STATUS_GROUP -
CONFIGURED_SESSION_STATUS
- See Also:
-
FIXVERSION_DELIMITER
- See Also:
-
FIX_VERSION_MAPPING
-
-
Method Details
-
getExtraSessionParams
public static com.epam.fixicc.message.ExtraSessionParams getExtraSessionParams(ExtendedFIXSession fixSession) Gets extra session params from fix session.- Parameters:
fixSession
- the fix session
-
getExtraSessionParams
public static com.epam.fixicc.message.ExtraSessionParams getExtraSessionParams(SessionParameters parameters, FIXSessionRuntimeState runtimeState) Gets extra session params from FIX session parameters. Use this method for preconfigured sessions. For active session use methodCommandUtil.getExtraSessionParams(com.epam.fixengine.session.ExtendedFIXSession)
- Parameters:
parameters
- the FIX session parameters- See Also:
-
getRole
-
getInSeqNum
-
getOutSeqNum
-
getEncryptMethod
public static com.epam.fixicc.message.EncryptMethod getEncryptMethod(com.epam.fixengine.encryption.EncryptionType encryptionType) -
getSupportedVersions
-
getVersion
-
getFixVersion
-
getAppVersion
-
getStatusGroup
-
getXmlGregorianCalendarValue
-
getXmlGregorianCalendarValue
-
isBackupHost
-
getPropertyAsBollean
protected static boolean getPropertyAsBollean(ExtendedFIXSession session, String name, boolean defaultVal)
-