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 FIXSession
protected com.epam.fixengine.manager.ConfiguredSessionRegister
protected com.epam.fixicc.message.Request
protected com.epam.fixicc.message.ResponseData
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
areKeySessionParamsEqual
(SessionParameters parameters, SessionID sessionID) abstract void
execute()
Execute command.getter for admin fix session.protected SessionParameters
getConfiguredSession
(SessionID sessionID) Gets the fix session.protected SessionParameters
getConfiguredSession
(String senderCompID, String targetCompID, String qualifier) Gets the configured fix session.protected List<SessionParameters>
Gets the configured fix session list.com.epam.fixengine.manager.ConfiguredSessionRegister
protected ExtendedFIXSession
getFIXSession
(SessionID sessionID) Gets the fix session.protected ExtendedFIXSession
getFIXSession
(String sender, String target, String qualifier) Gets the fix session.protected List<ExtendedFIXSession>
Gets fix session list.com.epam.fixicc.message.Request
Getter for request.Gets request id from request.void
Send error.protected void
sendInvalidArgument
(String problem) Send invalid argument.protected void
sendReject
(String problem) Send reject.protected void
sendResponse
(com.epam.fixicc.message.Response response) Send response.protected void
sendResponse
(String problem, String errorCode) Send response.void
sendResponseSuccess
(com.epam.fixicc.message.Response response) Send response.protected void
Send error with unknown session.protected void
sendUnknownSession
(String sender, String target) Deprecated.void
setAdminFixSession
(FIXSession adminFixSession) Setter for admin session.void
setConfiguredSessionRegister
(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister) void
setRequest
(com.epam.fixicc.message.Request request) Setter for request.void
setXmlContent
(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.
-