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 intTag that contains version of admin protocol.protected FIXSessionprotected ICommandHandlerprotected Stringprotected com.epam.fixengine.manager.ConfiguredSessionRegisterprotected Lockstatic final intTag that contains component time zone. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringvoidnewFIXSession(FIXSession session) This method is invoked every time when new FIXSession is created.protected voidprocess(FIXFieldList message) Process the request.protected voidsendResponse(String problem, String code, Long requestID) Sends the response.voidsetAdminSession(FIXSession adminSession) Setter for admin session.voidsetCommandHandler(ICommandHandler commandHandler) Setter for command handler.protected voidSets the package of commands.voidsetSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister) protected booleanvalidateMessage(FIXFieldList message) Validates the message.protected booleanvalidateRequestID(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:
setSessionRegisterin 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:FIXServerListenerThis method is invoked every time when new FIXSession is created.- Specified by:
newFIXSessionin interfaceFIXServerListener- Parameters:
session- the new session- See Also:
-
getFormattedTimeZone
-