net.sourceforge.fixpusher.control
Class FIXConnector

java.lang.Object
  extended by net.sourceforge.fixpusher.control.FIXConnector
All Implemented Interfaces:
quickfix.Application

public class FIXConnector
extends java.lang.Object
implements quickfix.Application

The Class FIXConnector.


Constructor Summary
FIXConnector(FIXProperties fixProperties, LogTableModel logTableModel)
          Instantiates a new fIX connector.
 
Method Summary
 void addFIXConnectionListener(FIXConnectionListener fixConnectionListener)
          Adds the fix connection listener.
 void connect()
          Connect.
 void disconnect()
          Disconnect.
 void fromAdmin(quickfix.Message msg, quickfix.SessionID arg1)
           
 void fromApp(quickfix.Message arg0, quickfix.SessionID arg1)
           
 void onCreate(quickfix.SessionID arg0)
           
 void onLogon(quickfix.SessionID arg0)
           
 void onLogout(quickfix.SessionID arg0)
           
 void removeFIXConnectionListener(FIXConnectionListener fixConnectionListener)
          Removes the fix connection listener.
 void send(quickfix.Message message)
          Send.
 void sendMessage(quickfix.Message message)
          Send message.
 void toAdmin(quickfix.Message msg, quickfix.SessionID sessionID)
           
 void toApp(quickfix.Message arg0, quickfix.SessionID arg1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIXConnector

public FIXConnector(FIXProperties fixProperties,
                    LogTableModel logTableModel)
Instantiates a new fIX connector.

Parameters:
fixProperties - the fix properties
logTableModel - the log table model
Method Detail

addFIXConnectionListener

public void addFIXConnectionListener(FIXConnectionListener fixConnectionListener)
Adds the fix connection listener.

Parameters:
fixConnectionListener - the fix connection listener

connect

public void connect()
             throws java.lang.Exception
Connect.

Throws:
java.lang.Exception - the exception

disconnect

public void disconnect()
Disconnect.


fromAdmin

public void fromAdmin(quickfix.Message msg,
                      quickfix.SessionID arg1)
               throws quickfix.FieldNotFound,
                      quickfix.IncorrectDataFormat,
                      quickfix.IncorrectTagValue,
                      quickfix.RejectLogon
Specified by:
fromAdmin in interface quickfix.Application
Throws:
quickfix.FieldNotFound
quickfix.IncorrectDataFormat
quickfix.IncorrectTagValue
quickfix.RejectLogon

fromApp

public void fromApp(quickfix.Message arg0,
                    quickfix.SessionID arg1)
             throws quickfix.FieldNotFound,
                    quickfix.IncorrectDataFormat,
                    quickfix.IncorrectTagValue,
                    quickfix.UnsupportedMessageType
Specified by:
fromApp in interface quickfix.Application
Throws:
quickfix.FieldNotFound
quickfix.IncorrectDataFormat
quickfix.IncorrectTagValue
quickfix.UnsupportedMessageType

onCreate

public void onCreate(quickfix.SessionID arg0)
Specified by:
onCreate in interface quickfix.Application

onLogon

public void onLogon(quickfix.SessionID arg0)
Specified by:
onLogon in interface quickfix.Application

onLogout

public void onLogout(quickfix.SessionID arg0)
Specified by:
onLogout in interface quickfix.Application

removeFIXConnectionListener

public void removeFIXConnectionListener(FIXConnectionListener fixConnectionListener)
Removes the fix connection listener.

Parameters:
fixConnectionListener - the fix connection listener

send

public void send(quickfix.Message message)
Send.

Parameters:
message - the message

sendMessage

public void sendMessage(quickfix.Message message)
Send message.

Parameters:
message - the message

toAdmin

public void toAdmin(quickfix.Message msg,
                    quickfix.SessionID sessionID)
Specified by:
toAdmin in interface quickfix.Application

toApp

public void toApp(quickfix.Message arg0,
                  quickfix.SessionID arg1)
           throws quickfix.DoNotSend
Specified by:
toApp in interface quickfix.Application
Throws:
quickfix.DoNotSend