Class CommandUtil

java.lang.Object
com.epam.admintool.commands.util.CommandUtil

public class CommandUtil extends Object
  • Field Details

    • CONFIGURED_SESSION_STATUS_GROUP

      public static final com.epam.fixicc.message.StatusGroup CONFIGURED_SESSION_STATUS_GROUP
    • CONFIGURED_SESSION_STATUS

      public static final String CONFIGURED_SESSION_STATUS
      See Also:
    • FIXVERSION_DELIMITER

      public static final String FIXVERSION_DELIMITER
      See Also:
    • FIX_VERSION_MAPPING

      public static final Map<String,FIXVersion> 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 method CommandUtil.getExtraSessionParams(com.epam.fixengine.session.ExtendedFIXSession)
      Parameters:
      parameters - the FIX session parameters
      See Also:
    • getRole

      public static com.epam.fixicc.message.SessionRole getRole(ExtendedFIXSession session)
    • getInSeqNum

      public static long getInSeqNum(SessionParameters parameters, FIXSessionRuntimeState runtimeState)
    • getOutSeqNum

      public static long getOutSeqNum(SessionParameters parameters, FIXSessionRuntimeState runtimeState)
    • getEncryptMethod

      public static com.epam.fixicc.message.EncryptMethod getEncryptMethod(com.epam.fixengine.encryption.EncryptionType encryptionType)
    • getSupportedVersions

      public static List<String> getSupportedVersions()
    • getVersion

      public static String getVersion(FIXVersion fixVersion, FIXVersion appVersion)
    • getFixVersion

      public static FIXVersion getFixVersion(String version)
    • getAppVersion

      public static FIXVersion getAppVersion(String version)
    • getStatusGroup

      public static com.epam.fixicc.message.StatusGroup getStatusGroup(ExtendedFIXSession session)
    • getXmlGregorianCalendarValue

      public static XMLGregorianCalendar getXmlGregorianCalendarValue(Date date)
    • getXmlGregorianCalendarValue

      public static XMLGregorianCalendar getXmlGregorianCalendarValue(long time)
    • isBackupHost

      public static com.epam.fixicc.message.BackupState isBackupHost(ExtendedFIXSession session)
    • getPropertyAsBollean

      protected static boolean getPropertyAsBollean(ExtendedFIXSession session, String name, boolean defaultVal)