|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FIXEngine
Interface for FIXEngine-Application interaction
| Method Summary | |
|---|---|
void |
addEventListener(String sessionID,
EventListener eventListener)
Adds event listener for listening specified session. |
void |
addGlobalEventListener(EventListener eventListener)
Adds global event listener for listening all sessions. |
void |
closeEngine()
Closes engine. |
void |
closeEngineSession(String sessionID)
Closes session with specifed ID. |
void |
closeEngineSession(String sessionID,
String reason)
Closes session with specifed ID. |
String |
connectToRemoteFIXEngine(String connectionString)
Establishes connection with remote FIX Engine. |
String |
connectToRemoteFIXEngine(String connectionString,
int heartBtInt,
String senderCompID,
String targetCompID,
int encryptionType)
Establishes connection with remote FIX Engine. |
String |
connectToRemoteFIXEngine(String connectionString,
int heartBtInt,
String senderCompID,
String targetCompID,
int encryptionType,
int startFromSeqNum)
Establishes connection with remote FIX Engine. |
String |
connectToRemoteFIXEngine(String connectionString,
StdHdrParamStruct stdHdrParamStruct,
LogonParamStruct logonParamStruct,
int startFromSeqNum)
Establishes connection with remote FIX Engine. |
FIXVersion |
getFIXVersionBySessionID(String sessionID)
Gets the FIX Protocol version ID for specified session. |
int |
getHeartbeatIntervalBySessionID(String sessionID)
Gets the FIX Protocol version ID for specified session. |
int |
getIncomingSequenceBySessionID(String sessionID)
Gets incoming sequence number for session with indicated sessionID. |
FIXMessage |
getMessageFromMessageStore(MessageDirection messageType,
long seqNum,
String sessionID)
Retrieves FIX Message from the Message Storage. |
int |
getOutgoingSequenceBySessionID(String sessionID)
Gets outgoing sequence number for session with indicated sessionID. |
String |
getSenderCompIDbySession(String sessionID)
Gets SenderCompID of session with specifed ID. |
String |
getSessionIDbyCompIDs(String senderCompID,
String targetCompID)
Gets session ID by senderCompID and targetCompID. |
String |
getTargetCompIDbySession(String sessionID)
Gets TargetCompID of session with specifed ID. |
boolean |
isSessionActive(String sessionID)
Checks if session is online. |
void |
registerApplication(Application application)
Registers application in FIX Engine instance. |
boolean |
removeEventListener(String sessionID,
EventListener eventListener)
Removes event listener for listening specified session. |
boolean |
removeGlobalEventListener(EventListener eventListener)
Removes global event listener for listening all session. |
void |
sendMessage(FIXMessage message,
String sessionID)
Put FIX message message to queue for sending to remote FIX Engine. |
void |
sendMessageOutOfTurn(FIXMessage message,
String sessionID)
Send FIXMessage to remote FIX Engine rigth now. |
void |
unregisterApplication()
Unregisters application in FIX Engine instance. |
| Method Detail |
|---|
void registerApplication(Application application)
application - the application, which will process application messages from remote FIX Engine.void unregisterApplication()
void addEventListener(String sessionID,
EventListener eventListener)
sessionID - the ID of session, which will be listened.eventListener - the event listener implementation.void addGlobalEventListener(EventListener eventListener)
eventListener - the event listener implementation.
boolean removeEventListener(String sessionID,
EventListener eventListener)
sessionID - the ID of session, which will be listened.eventListener - the event listener implementation.boolean removeGlobalEventListener(EventListener eventListener)
eventListener - the event listener implementation.
String connectToRemoteFIXEngine(String connectionString)
throws EngineNotFoundException
connectionString - the connestion string.
EngineNotFoundException - if connection cannot be created or logon respose is not received
in pre-configured timeout interval.
String connectToRemoteFIXEngine(String connectionString,
int heartBtInt,
String senderCompID,
String targetCompID,
int encryptionType)
throws EngineNotFoundException
heartBtInt - the value of Heartbeat interval in seconds,
which will be placed in InitialProcess messagesenderCompID - the SenderCompID, which will be placed in messages headerstargetCompID - the TargetCompID, which will be placed in messages headersencryptionType - the type of encryption.
EngineNotFoundException - if connection cannot be created or logon respose is not received
in pre-configured timeout interval.
String connectToRemoteFIXEngine(String connectionString,
int heartBtInt,
String senderCompID,
String targetCompID,
int encryptionType,
int startFromSeqNum)
throws EngineNotFoundException
heartBtInt - Value of Heartbeat interval in seconds,
which will be placed in InitialProcess messagesenderCompID - the SenderCompID, which will be placed in messages headerstargetCompID - the TargetCompID, which will be placed in messages headersencryptionType - the type of encryption.startFromSeqNum - the starting outgoing sequence number.
EngineNotFoundException - if connection cannot be created or logon respose is not received
in pre-configured timeout interval.
String connectToRemoteFIXEngine(String connectionString,
StdHdrParamStruct stdHdrParamStruct,
LogonParamStruct logonParamStruct,
int startFromSeqNum)
throws EngineNotFoundException
stdHdrParamStruct - structure, which contains Standard Message Header parameterslogonParamStruct - structure, which contains InitialProcess Message parameters
EngineNotFoundException - if connection cannot be created or logon respose is not received
in pre-configured timeout interval.
String getSenderCompIDbySession(String sessionID)
throws SessionNotFoundException
sessionID - session ID
SessionNotFoundException - if session cannot be found.
String getSessionIDbyCompIDs(String senderCompID,
String targetCompID)
throws SessionNotFoundException
senderCompID - senderCompIDtargetCompID - targetCompID
SessionNotFoundException - if session cannot be found.
String getTargetCompIDbySession(String sessionID)
throws SessionNotFoundException
sessionID - the session ID string
SessionNotFoundException - if session cannot be found.
FIXVersion getFIXVersionBySessionID(String sessionID)
throws Exception
sessionID - the session ID.
Exception - if the version cannot be retreived.
int getHeartbeatIntervalBySessionID(String sessionID)
throws Exception
sessionID - the session ID.
Exception - if the heartbeat interval cannot be retreived.
boolean isSessionActive(String sessionID)
throws Exception
sessionID - the session ID string.
Exception - if session cannot be found.
int getIncomingSequenceBySessionID(String sessionID)
throws Exception
sessionID - the ID of session.
Exception - if the incoming sequence number cannot be retreived.
int getOutgoingSequenceBySessionID(String sessionID)
throws Exception
sessionID - the ID of session.
Exception - if the outgoing sequence number cannot be retreived.
void sendMessage(FIXMessage message,
String sessionID)
throws ApplMessageTransmitException
message - the message to be send.sessionID - the ID of session in which message will be sent.
ApplMessageTransmitException - if the message cannot be sent to the counterparty.
void sendMessageOutOfTurn(FIXMessage message,
String sessionID)
throws ApplMessageTransmitException
message - the message to be send in FIXMessage formatsessionID - the ID of session in which message will be sent
ApplMessageTransmitException - if the message cannot be sent to the counterparty.
FIXMessage getMessageFromMessageStore(MessageDirection messageType,
long seqNum,
String sessionID)
throws Exception
messageType - the type of message (1 - incoming, 2 - outgoing)seqNum - the sequence number of the message.sessionID - the ID of session, from which the message will be retrieved.
Exception - if message cannot be retrieved or parsed.
void closeEngineSession(String sessionID)
throws SessionNotFoundException
sessionID - closing session ID
SessionNotFoundException - if the session cannot be found or properly closed.
void closeEngineSession(String sessionID,
String reason)
throws SessionNotFoundException
reason - the reason string that will be sent as text field value (tag=58) of logout message.
SessionNotFoundException - if the session cannot be found or properly closed.
void closeEngine()
throws Exception
Exception - if the FIX Engine cannot be properly closed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||