Package com.epam.admintool.commands
Class Command
java.lang.Object
com.epam.admintool.commands.Command
- Direct Known Subclasses:
ChangeSeqNum,CreateAcceptor,CreateInitiator,DefaultCommand,Delete,DeleteAll,GeneralSessionsStat,GetFIXProtocolsList,Heartbeat,Help,ProceedStat,ReceivedStat,ResetSeqNum,SendMessage,SentStat,SessionParams,SessionsList,SessionsSnapshot,SessionStat,SessionStatus,StopSession,TestRequest,ToBackup,ToPrimary
Common interface for all command of Administrative tool.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FIXSessionprotected com.epam.fixengine.manager.ConfiguredSessionRegisterprotected com.epam.fixicc.message.Requestprotected com.epam.fixicc.message.ResponseDataprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanareKeySessionParamsEqual(SessionParameters parameters, SessionID sessionID) abstract voidexecute()Execute command.getter for admin fix session.protected SessionParametersgetConfiguredSession(SessionID sessionID) Gets the fix session.protected SessionParametersgetConfiguredSession(String senderCompID, String targetCompID, String qualifier) Gets the configured fix session.protected List<SessionParameters>Gets the configured fix session list.com.epam.fixengine.manager.ConfiguredSessionRegisterprotected ExtendedFIXSessiongetFIXSession(SessionID sessionID) Gets the fix session.protected ExtendedFIXSessiongetFIXSession(String sender, String target, String qualifier) Gets the fix session.protected List<ExtendedFIXSession>Gets fix session list.com.epam.fixicc.message.RequestGetter for request.Gets request id from request.voidSend error.protected voidsendInvalidArgument(String problem) Send invalid argument.protected voidsendReject(String problem) Send reject.protected voidsendResponse(com.epam.fixicc.message.Response response) Send response.protected voidsendResponse(String problem, String errorCode) Send response.voidsendResponseSuccess(com.epam.fixicc.message.Response response) Send response.protected voidSend error with unknown session.protected voidsendUnknownSession(String sender, String target) Deprecated.voidsetAdminFixSession(FIXSession adminFixSession) Setter for admin session.voidsetConfiguredSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister) voidsetRequest(com.epam.fixicc.message.Request request) Setter for request.voidsetXmlContent(String xmlContent) Setter for xmlContent
-
Field Details
-
request
protected com.epam.fixicc.message.Request request -
response
protected com.epam.fixicc.message.ResponseData response -
xmlContent
-
adminFixSession
-
configuredSessionRegister
protected com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister
-
-
Constructor Details
-
Command
protected Command()
-
-
Method Details
-
getRequest
public com.epam.fixicc.message.Request getRequest()Getter for request. -
setRequest
public void setRequest(com.epam.fixicc.message.Request request) Setter for request.- Parameters:
request- the request
-
getRequestID
Gets request id from request.if request not set returns null
-
setAdminFixSession
Setter for admin session.- Parameters:
adminFixSession- the admin session
-
getAdminFixSession
getter for admin fix session. -
setConfiguredSessionRegister
public void setConfiguredSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister) -
getConfiguredSessionRegister
public com.epam.fixengine.manager.ConfiguredSessionRegister getConfiguredSessionRegister() -
execute
public abstract void execute()Execute command. -
sendResponse
protected void sendResponse(com.epam.fixicc.message.Response response) Send response.- Parameters:
response-
-
sendResponseSuccess
public void sendResponseSuccess(com.epam.fixicc.message.Response response) Send response.- Parameters:
response-
-
sendResponse
Send response.- Parameters:
problem-errorCode-
-
sendReject
Send reject.- Parameters:
problem-
-
sendError
Send error.- Parameters:
problem-
-
sendInvalidArgument
Send invalid argument.- Parameters:
problem-
-
sendUnknownSession
Deprecated.Send error with unknown session. -
sendUnknownSession
Send error with unknown session. -
setXmlContent
Setter for xmlContent -
getFIXSession
Gets the fix session.- Parameters:
sender- - sendertarget- - targetqualifier- - qualifier
-
getFIXSession
Gets the fix session.- Parameters:
sessionID- - sessionID
-
getConfiguredSession
protected SessionParameters getConfiguredSession(String senderCompID, String targetCompID, String qualifier) Gets the configured fix session.- Parameters:
senderCompID- - sendertargetCompID- - targetqualifier- - qualifier
-
getConfiguredSession
Gets the fix session.- Parameters:
sessionID- - sessionID
-
areKeySessionParamsEqual
-
getFIXSessions
Gets fix session list. -
getConfiguredSessionParameters
Gets the configured fix session list.
-