com.epam.admintool
Class AdminTool

java.lang.Object
  extended by 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 Summary
protected  FIXSession adminSession
           
protected  ICommandHandler commandHandler
           
protected  String commandPackageName
           
protected  com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister
           
protected  Lock lock
           
protected static Log LOG
           
 
Constructor Summary
AdminTool()
          Creates the AdminTool .
 
Method Summary
 void newFIXSession(FIXSession session)
          This method is invoked every time when new FIXSession is created.
protected  void sendResponse(String problem, String code, Long requestID)
          Sends the response.
 void setAdminSession(FIXSession adminSession)
          Setter for admin session.
 void setCommandHandler(ICommandHandler commandHandler)
          Setter for command handler.
 void setSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static Log LOG

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 Detail

AdminTool

public AdminTool()
Creates the AdminTool .

Method Detail

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

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:
FIXServerListener.newFIXSession(com.epam.fixengine.FIXSession)


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