org.marketcetera.ors.brokers
Class Brokers

java.lang.Object
  extended by org.marketcetera.ors.brokers.Brokers

public class Brokers
extends Object

The collective in-memory representation of all brokers.

Since:
1.0.0
Version:
$Id: Brokers.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
Brokers(SpringBrokers springBrokers, ReportHistoryServices historyServices)
          Creates a new collective representation based on the given broker configurations.
 
Method Summary
 Broker getBroker(BrokerID brokerID)
          Returns the receiver's broker for the given broker ID.
 Broker getBroker(SessionID sessionID)
          Returns the receiver's broker for the given QuickFIX/J session ID.
 List<Broker> getBrokers()
          Returns the receiver's brokers.
 SpringSessionSettings getSettings()
          Returns the configuration of the receiver's QuickFIX/J session settings.
 SpringBrokers getSpringBrokers()
          Returns the receiver's broker configurations.
 BrokersStatus getStatus()
          Returns the status of the receiver's brokers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Brokers

public Brokers(SpringBrokers springBrokers,
               ReportHistoryServices historyServices)
Creates a new collective representation based on the given broker configurations. Any message modifiers are configured to rely on the given report history services provider for persistence operations.

Parameters:
springBrokers - The configurations.
historyServices - The report history services provider.
Method Detail

getSpringBrokers

public SpringBrokers getSpringBrokers()
Returns the receiver's broker configurations.

Returns:
The configurations.

getBrokers

public List<Broker> getBrokers()
Returns the receiver's brokers.

Returns:
The brokers.

getStatus

public BrokersStatus getStatus()
Returns the status of the receiver's brokers.

Returns:
The status.

getSettings

public SpringSessionSettings getSettings()
Returns the configuration of the receiver's QuickFIX/J session settings.

Returns:
The configuration.

getBroker

public Broker getBroker(SessionID sessionID)
Returns the receiver's broker for the given QuickFIX/J session ID. It logs an error and returns null if there is no broker for the given ID.

Parameters:
sessionID - The ID.
Returns:
The broker. It may be null.

getBroker

public Broker getBroker(BrokerID brokerID)
Returns the receiver's broker for the given broker ID. It logs an error and returns null if there is no broker for the given ID.

Parameters:
brokerID - The ID.
Returns:
The broker. It may be null.


Copyright © 2012. All Rights Reserved.