public class AdminTool extends Object implements com.epam.fixengine.acceptor.FIXAdminSessionListener
Modifier and Type | Field and Description |
---|---|
static int |
ADMIN_PROTOCOL_VERSION_TAG
Tag that contains version of admin protocol.
|
protected FIXSession |
adminSession |
protected ICommandHandler |
commandHandler |
protected String |
commandPackageName |
protected com.epam.fixengine.manager.ConfiguredSessionRegister |
configuredSessionRegister |
protected Lock |
lock |
protected static Log |
LOG |
static int |
TIMEZONE_TAG
Tag that contains component time zone.
|
Constructor and Description |
---|
AdminTool()
Creates the
AdminTool . |
Modifier and Type | Method and Description |
---|---|
static String |
getFormattedTimeZone() |
void |
newFIXSession(FIXSession session)
This method is invoked every time when new FIXSession is created.
|
protected void |
process(FIXFieldList message)
Process the request.
|
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.
|
protected void |
setSessionExternalPackageName()
Sets the package of commands.
|
void |
setSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister) |
protected boolean |
validateMessage(FIXFieldList message)
Validates the message.
|
protected boolean |
validateRequestID(Long commandRequestID)
Validates the requestID.
|
protected static Log LOG
public static final int TIMEZONE_TAG
public static final int ADMIN_PROTOCOL_VERSION_TAG
protected FIXSession adminSession
protected String commandPackageName
protected ICommandHandler commandHandler
protected com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister
protected Lock lock
public void setCommandHandler(ICommandHandler commandHandler)
public void setAdminSession(FIXSession adminSession)
public void setSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister)
setSessionRegister
in interface com.epam.fixengine.acceptor.FIXAdminSessionListener
protected void process(FIXFieldList message)
message
- the fix messageprotected void setSessionExternalPackageName()
protected boolean validateMessage(FIXFieldList message)
message
- the fix messageprotected boolean validateRequestID(Long commandRequestID)
commandRequestID
- protected void sendResponse(String problem, String code, Long requestID)
problem
- the discriptioncode
- the result coderequestID
- the last request idpublic void newFIXSession(FIXSession session)
FIXServerListener
newFIXSession
in interface FIXServerListener
session
- the new sessionFIXServerListener.newFIXSession(com.epam.fixengine.FIXSession)
public static String getFormattedTimeZone()
Copyright © 2000–2022 EPAM Systems. All rights reserved.