com.epam.admintool.commands.util
Class CommandUtil

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

public class CommandUtil
extends Object


Field Summary
static String CONFIGURED_SESSION_STATUS
           
static com.epam.fixicc.message.StatusGroup CONFIGURED_SESSION_STATUS_GROUP
           
 
Constructor Summary
CommandUtil()
           
 
Method Summary
static FIXVersion getAppFIXVersion(com.epam.fixicc.message.ApplVerID applVerID)
           
static com.epam.fixicc.message.ApplVerID getApplVerID(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)
          Gets extra session params from FIX session parameters.
static FIXVersion getFIXVersion(com.epam.fixicc.message.FIXVersion version)
           
static com.epam.fixicc.message.FIXVersion getFixVesrion(String version)
           
static long getInSeqNum(SessionParameters parameters)
           
static long getOutSeqNum(SessionParameters parameters)
           
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 XMLGregorianCalendar getXmlGregorianCalendarValue(Date date)
           
static XMLGregorianCalendar getXmlGregorianCalendarValue(long time)
           
static com.epam.fixicc.message.BackupState isBackupHost(ExtendedFIXSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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:
Constant Field Values
Constructor Detail

CommandUtil

public CommandUtil()
Method Detail

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)
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:
getExtraSessionParams(com.epam.fixengine.session.ExtendedFIXSession)

getRole

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

getInSeqNum

public static long getInSeqNum(SessionParameters parameters)

getOutSeqNum

public static long getOutSeqNum(SessionParameters parameters)

getEncryptMethod

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

getFixVesrion

public static com.epam.fixicc.message.FIXVersion getFixVesrion(String version)

getApplVerID

public static com.epam.fixicc.message.ApplVerID getApplVerID(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)

getFIXVersion

public static FIXVersion getFIXVersion(com.epam.fixicc.message.FIXVersion version)

isBackupHost

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

getPropertyAsBollean

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

getAppFIXVersion

public static FIXVersion getAppFIXVersion(com.epam.fixicc.message.ApplVerID applVerID)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.