Package com.epam.admintool
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Tag that contains version of admin protocol.protected FIXSession
protected ICommandHandler
protected String
protected com.epam.fixengine.manager.ConfiguredSessionRegister
protected Lock
static final int
Tag that contains component time zone. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
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
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.
-
Field Details
-
TIMEZONE_TAG
public static final int TIMEZONE_TAGTag 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_TAGTag that contains version of admin protocol. Example: 2.0.12- See Also:
-
adminSession
-
commandPackageName
-
commandHandler
-
configuredSessionRegister
protected com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister -
lock
-
-
Constructor Details
-
AdminTool
public AdminTool()Creates theAdminTool
.
-
-
Method Details
-
setCommandHandler
Setter for command handler. -
setAdminSession
Setter for admin session. -
setSessionRegister
public void setSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister) - Specified by:
setSessionRegister
in interfacecom.epam.fixengine.acceptor.FIXAdminSessionListener
-
process
Process the request.- Parameters:
message
- the fix message
-
setSessionExternalPackageName
protected void setSessionExternalPackageName()Sets the package of commands. -
validateMessage
Validates the message.- Parameters:
message
- the fix message
-
validateRequestID
Validates the requestID.- Parameters:
commandRequestID
-
-
sendResponse
Sends the response.- Parameters:
problem
- the discriptioncode
- the result coderequestID
- the last request id
-
newFIXSession
Description copied from interface:FIXServerListener
This method is invoked every time when new FIXSession is created.- Specified by:
newFIXSession
in interfaceFIXServerListener
- Parameters:
session
- the new session- See Also:
-
getFormattedTimeZone
-