com.paritytrading.philadelphia.FIXConnection Java Examples
The following examples show how to use
com.paritytrading.philadelphia.FIXConnection.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Session.java From parity with Apache License 2.0 | 6 votes |
@Override public void logon(FIXConnection connection, FIXMessage message) throws IOException { FIXValue username = message.valueOf(Username); FIXValue password = message.valueOf(Password); if (requiredTagMissing(message, username, "Username(553)")) return; if (requiredTagMissing(message, password, "Password(554)")) return; fix.updateCompID(message); ASCII.putLeft(loginRequest.username, username.asString()); ASCII.putLeft(loginRequest.password, password.asString()); ASCII.putRight(loginRequest.requestedSession, ""); ASCII.putLongRight(loginRequest.requestedSequenceNumber, 0); orderEntry.login(loginRequest); }
Example #2
Source File: Session.java From philadelphia with Apache License 2.0 | 4 votes |
FIXConnection getConnection() { return connection; }
Example #3
Source File: Session.java From parity with Apache License 2.0 | 4 votes |
@Override public void tooLowMsgSeqNum(FIXConnection connection, long receivedMsgSeqNum, long expectedMsgSeqNum) { }
Example #4
Source File: Session.java From parity with Apache License 2.0 | 4 votes |
@Override public void sequenceReset(FIXConnection connection) { }
Example #5
Source File: Session.java From parity with Apache License 2.0 | 4 votes |
@Override public void reject(FIXConnection connection, FIXMessage message) { }
Example #6
Source File: Session.java From parity with Apache License 2.0 | 4 votes |
@Override public void logout(FIXConnection connection, FIXMessage message) throws IOException { fix.sendLogout(); orderEntry.logout(); }
Example #7
Source File: Session.java From parity with Apache License 2.0 | 4 votes |
@Override public void heartbeatTimeout(FIXConnection connection) throws IOException { }
Example #8
Source File: Session.java From parity with Apache License 2.0 | 4 votes |
@Override public void close(FIXConnection connection, String message) throws IOException { orderEntry.close(); }
Example #9
Source File: Session.java From parity with Apache License 2.0 | 4 votes |
FIXConnection getFIX() { return fix; }
Example #10
Source File: Session.java From parity with Apache License 2.0 | 4 votes |
Session(OrderEntryFactory orderEntry, SocketChannel fix, FIXConfig config, Instruments instruments) throws IOException { this.nextOrderEntryId = 1; this.orders = new Orders(); OrderEntryListener orderEntryListener = new OrderEntryListener(); this.orderEntry = orderEntry.create(orderEntryListener, orderEntryListener); FIXListener fixListener = new FIXListener(); this.fix = new FIXConnection(fix, config, fixListener, fixListener); this.instruments = instruments; }
Example #11
Source File: Initiator.java From philadelphia with Apache License 2.0 | 4 votes |
FIXConnection getTransport() { return connection; }
Example #12
Source File: Session.java From philadelphia with Apache License 2.0 | 4 votes |
private Session(Selector selector, FIXConnection connection) { this.txMessage = connection.create(); this.selector = selector; this.connection = connection; this.closed = false; this.lock = new Object(); Thread receiver = new Thread(new Receiver()); receiver.setDaemon(true); receiver.start(); }
Example #13
Source File: Messages.java From philadelphia with Apache License 2.0 | 4 votes |
@Override public void logout(FIXConnection connection, FIXMessage message) { add(message); }
Example #14
Source File: Messages.java From philadelphia with Apache License 2.0 | 4 votes |
@Override public void logon(FIXConnection connection, FIXMessage message) { add(message); }
Example #15
Source File: Messages.java From philadelphia with Apache License 2.0 | 4 votes |
@Override public void reject(FIXConnection connection, FIXMessage message) { add(message); }
Example #16
Source File: Messages.java From philadelphia with Apache License 2.0 | 4 votes |
@Override public void heartbeatTimeout(FIXConnection connection) { }
Example #17
Source File: Messages.java From philadelphia with Apache License 2.0 | 4 votes |
@Override public void tooLowMsgSeqNum(FIXConnection connection, long receivedMsgSeqNum, long expectedMsgSeqNum) { }
Example #18
Source File: Messages.java From philadelphia with Apache License 2.0 | 4 votes |
@Override public void sequenceReset(FIXConnection connection) { }
Example #19
Source File: Messages.java From philadelphia with Apache License 2.0 | 4 votes |
@Override public void close(FIXConnection connection, String message) { }
Example #20
Source File: Session.java From philadelphia with Apache License 2.0 | 4 votes |
FIXConnection getConnection() { return connection; }
Example #21
Source File: Session.java From philadelphia with Apache License 2.0 | 4 votes |
static Session open(InetSocketAddress address, FIXConfig config, FIXMessageListener listener, FIXConnectionStatusListener statusListener) throws IOException { SocketChannel channel = SocketChannel.open(); channel.connect(address); channel.configureBlocking(false); Selector selector = Selector.open(); channel.register(selector, SelectionKey.OP_READ); FIXConnection connection = new FIXConnection(channel, config, listener, statusListener); return new Session(selector, connection); }