com.activequant.transport.activemq
Class ActiveMQTransportFactory
java.lang.Object
com.activequant.transport.activemq.ActiveMQTransportFactory
- All Implemented Interfaces:
- ITransportFactory
public class ActiveMQTransportFactory
- extends Object
- implements ITransportFactory
- Author:
- ustaudinger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 hostport - JMS server port.
- Throws:
Exception
ActiveMQTransportFactory
public ActiveMQTransportFactory()
throws Exception
- constructs and in-memory active mq transport factory.
- Throws:
Exception
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.