public abstract class Command extends Object
Modifier and Type | Field and Description |
---|---|
protected FIXSession |
adminFixSession |
protected com.epam.fixengine.manager.ConfiguredSessionRegister |
configuredSessionRegister |
protected Log |
log |
protected com.epam.fixicc.message.Request |
request |
protected com.epam.fixicc.message.ResponseData |
response |
protected String |
xmlContent |
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areKeySessionParamsEqual(SessionParameters parameters,
SessionID sessionID) |
abstract void |
execute()
Execute command.
|
FIXSession |
getAdminFixSession()
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> |
getConfiguredSessionParameters()
Gets the configured fix session list.
|
com.epam.fixengine.manager.ConfiguredSessionRegister |
getConfiguredSessionRegister() |
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> |
getFIXSessions()
Gets fix session list.
|
com.epam.fixicc.message.Request |
getRequest()
Getter for request.
|
Long |
getRequestID()
Gets request id from request.
|
void |
sendError(String problem)
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 |
sendUnknownSession(String id)
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
|
protected final Log log
protected com.epam.fixicc.message.Request request
protected com.epam.fixicc.message.ResponseData response
protected String xmlContent
protected FIXSession adminFixSession
protected com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister
public com.epam.fixicc.message.Request getRequest()
public void setRequest(com.epam.fixicc.message.Request request)
request
- the requestpublic Long getRequestID()
public void setAdminFixSession(FIXSession adminFixSession)
adminFixSession
- the admin sessionpublic FIXSession getAdminFixSession()
public void setConfiguredSessionRegister(com.epam.fixengine.manager.ConfiguredSessionRegister configuredSessionRegister)
public com.epam.fixengine.manager.ConfiguredSessionRegister getConfiguredSessionRegister()
public abstract void execute()
protected void sendResponse(com.epam.fixicc.message.Response response)
response
- public void sendResponseSuccess(com.epam.fixicc.message.Response response)
response
- protected void sendResponse(String problem, String errorCode)
problem
- errorCode
- protected void sendReject(String problem)
problem
- public void sendError(String problem)
problem
- protected void sendInvalidArgument(String problem)
problem
- @Deprecated protected void sendUnknownSession(String sender, String target)
protected void sendUnknownSession(String id)
public void setXmlContent(String xmlContent)
protected ExtendedFIXSession getFIXSession(String sender, String target, String qualifier)
sender
- - sendertarget
- - targetqualifier
- - qualifierprotected ExtendedFIXSession getFIXSession(SessionID sessionID)
sessionID
- - sessionIDprotected SessionParameters getConfiguredSession(String senderCompID, String targetCompID, String qualifier)
senderCompID
- - sendertargetCompID
- - targetqualifier
- - qualifierprotected SessionParameters getConfiguredSession(SessionID sessionID)
sessionID
- - sessionIDprotected boolean areKeySessionParamsEqual(SessionParameters parameters, SessionID sessionID)
protected List<ExtendedFIXSession> getFIXSessions()
protected List<SessionParameters> getConfiguredSessionParameters()
Copyright © 2000–2022 EPAM Systems. All rights reserved.