com.activequant.transport.activemq
Class ActiveMQTransportFactory

java.lang.Object
  extended by com.activequant.transport.activemq.ActiveMQTransportFactory
All Implemented Interfaces:
ITransportFactory

public class ActiveMQTransportFactory
extends Object
implements ITransportFactory

Author:
ustaudinger

Constructor Summary
ActiveMQTransportFactory()
          constructs and in-memory active mq transport factory.
ActiveMQTransportFactory(String host, int port)
          constructs an activemq transport factory that connects to a specific host and port.
 
Method Summary
 IPublisher getPublisher(ETransportType transType, Instrument instrument)
           
 IPublisher getPublisher(ETransportType transType, MarketDataInstrument instrument)
           
 IPublisher getPublisher(ETransportType transType, String id)
           
 IPublisher getPublisher(ETransportType transType, TradeableInstrument instrument)
           
 IPublisher getPublisher(String channel)
           
 IReceiver getReceiver(ETransportType transType, Instrument instrument)
           
 IReceiver getReceiver(ETransportType transType, MarketDataInstrument instrument)
           
 IReceiver getReceiver(ETransportType transType, String id)
           
 IReceiver getReceiver(ETransportType transType, TradeableInstrument instrument)
           
 IReceiver getReceiver(String channel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveMQTransportFactory

public ActiveMQTransportFactory(String host,
                                int port)
                         throws Exception
constructs an activemq transport factory that connects to a specific host and port.

Parameters:
host - JMS server host
port - JMS server port.
Throws:
Exception

ActiveMQTransportFactory

public ActiveMQTransportFactory()
                         throws Exception
constructs and in-memory active mq transport factory.

Throws:
Exception
Method Detail

getPublisher

public IPublisher getPublisher(ETransportType transType,
                               String id)
                        throws TransportException
Specified by:
getPublisher in interface ITransportFactory
Throws:
TransportException

getReceiver

public IReceiver getReceiver(ETransportType transType,
                             String id)
                      throws TransportException
Specified by:
getReceiver in interface ITransportFactory
Throws:
TransportException

getPublisher

public IPublisher getPublisher(ETransportType transType,
                               Instrument instrument)
                        throws TransportException
Specified by:
getPublisher in interface ITransportFactory
Throws:
TransportException

getReceiver

public IReceiver getReceiver(ETransportType transType,
                             Instrument instrument)
                      throws TransportException
Specified by:
getReceiver in interface ITransportFactory
Throws:
TransportException

getPublisher

public IPublisher getPublisher(ETransportType transType,
                               MarketDataInstrument instrument)
                        throws TransportException
Specified by:
getPublisher in interface ITransportFactory
Throws:
TransportException

getReceiver

public IReceiver getReceiver(ETransportType transType,
                             MarketDataInstrument instrument)
                      throws TransportException
Specified by:
getReceiver in interface ITransportFactory
Throws:
TransportException

getPublisher

public IPublisher getPublisher(String channel)
                        throws TransportException
Specified by:
getPublisher in interface ITransportFactory
Throws:
TransportException

getReceiver

public IReceiver getReceiver(String channel)
                      throws TransportException
Specified by:
getReceiver in interface ITransportFactory
Throws:
TransportException

getPublisher

public IPublisher getPublisher(ETransportType transType,
                               TradeableInstrument instrument)
                        throws TransportException
Specified by:
getPublisher in interface ITransportFactory
Throws:
TransportException

getReceiver

public IReceiver getReceiver(ETransportType transType,
                             TradeableInstrument instrument)
                      throws TransportException
Specified by:
getReceiver in interface ITransportFactory
Throws:
TransportException


Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.