Class AdminTool

java.lang.Object
com.epam.admintool.AdminTool
All Implemented Interfaces:
com.epam.fixengine.acceptor.FIXAdminSessionListener, FIXServerListener

public class AdminTool extends Object implements com.epam.fixengine.acceptor.FIXAdminSessionListener
Main class for AdminTool Application.
  • Field Details

    • TIMEZONE_TAG

      public static final int TIMEZONE_TAG
      Tag that contains component time zone. TimeZone format "+|- HH:MM, e.g. +03:00 or -03:00".
      See Also:
    • ADMIN_PROTOCOL_VERSION_TAG

      public static final int ADMIN_PROTOCOL_VERSION_TAG
      Tag that contains version of admin protocol. Example: 2.0.12
      See Also:
    • adminSession

      protected FIXSession adminSession
    • commandPackageName

      protected String commandPackageName
    • commandHandler

      protected ICommandHandler commandHandler
    • configuredSessionRegister

      protected com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister
    • lock

      protected Lock lock
  • Constructor Details

    • AdminTool

      public AdminTool()
      Creates the AdminTool .
  • Method Details

    • setCommandHandler

      public void setCommandHandler(ICommandHandler commandHandler)
      Setter for command handler.
    • setAdminSession

      public void setAdminSession(FIXSession adminSession)
      Setter for admin session.
    • setSessionRegister

      public void setSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister)
      Specified by:
      setSessionRegister in interface com.epam.fixengine.acceptor.FIXAdminSessionListener
    • process

      protected void process(FIXFieldList message)
      Process the request.
      Parameters:
      message - the fix message
    • setSessionExternalPackageName

      protected void setSessionExternalPackageName()
      Sets the package of commands.
    • validateMessage

      protected boolean validateMessage(FIXFieldList message)
      Validates the message.
      Parameters:
      message - the fix message
    • validateRequestID

      protected boolean validateRequestID(Long commandRequestID)
      Validates the requestID.
      Parameters:
      commandRequestID -
    • sendResponse

      protected void sendResponse(String problem, String code, Long requestID)
      Sends the response.
      Parameters:
      problem - the discription
      code - the result code
      requestID - the last request id
    • newFIXSession

      public void newFIXSession(FIXSession session)
      Description copied from interface: FIXServerListener
      This method is invoked every time when new FIXSession is created.
      Specified by:
      newFIXSession in interface FIXServerListener
      Parameters:
      session - the new session
      See Also:
    • getFormattedTimeZone

      public static String getFormattedTimeZone()