org.marketcetera.ors.brokers
Class SpringBroker

java.lang.Object
  extended by org.marketcetera.ors.brokers.SpringBroker
All Implemented Interfaces:
InitializingBean

public class SpringBroker
extends Object
implements InitializingBean

The Spring-based configuration of a single broker.

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

Constructor Summary
SpringBroker()
           
 
Method Summary
 void afterPropertiesSet()
           
 SpringSessionDescriptor getDescriptor()
          Returns the configuration of the receiver's QuickFIX/J session descriptor.
 boolean getFixLogoutRequired()
          Indicates if the broker requires FIX logout on disconnect.
 String getId()
          Returns the receiver's broker ID, in string form.
 Collection<LogonAction> getLogonActions()
          Get the logonActions value.
 Collection<LogoutAction> getLogoutActions()
          Get the logoutActions value.
 MessageModifierManager getModifiers()
          Returns the receiver's message modifier manager.
 String getName()
          Returns the receiver's name.
 MessageModifierManager getPreSendModifiers()
          Returns the receiver's pre-sending message modifier manager.
 MessageModifierManager getResponseModifiers()
          Returns the receiver's response message modifier manager.
 MessageRouteManager getRoutes()
          Returns the receiver's route manager.
 void setDescriptor(SpringSessionDescriptor sessionDescriptor)
          Sets the configuration of the receiver's QuickFIX/J session descriptor to the given one.
 void setFixLogoutRequired(boolean inLogout)
          Sets if the broker requires FIX logout on disconnect.
 void setId(String id)
          Sets the receiver's broker ID to the given string form value.
 void setLogonActions(Collection<LogonAction> inLogonActions)
          Sets the logonActions value.
 void setLogoutActions(Collection<LogoutAction> inLogoutActions)
          Sets the logoutActions value.
 void setModifiers(MessageModifierManager modifiers)
          Sets the receiver's message modifier manager to the given one.
 void setName(String name)
          Sets the receiver's name to the given value.
 void setPreSendModifiers(MessageModifierManager preSendModifiers)
          Sets the receiver's pre-sending message modifier manager to the given one.
 void setResponseModifiers(MessageModifierManager responseModifiers)
          Sets the receiver's response message modifier manager to the given one.
 void setRoutes(MessageRouteManager routes)
          Sets the receiver's route manager to the given one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringBroker

public SpringBroker()
Method Detail

setDescriptor

public void setDescriptor(SpringSessionDescriptor sessionDescriptor)
Sets the configuration of the receiver's QuickFIX/J session descriptor to the given one.

Parameters:
sessionDescriptor - The configuration.

getDescriptor

public SpringSessionDescriptor getDescriptor()
Returns the configuration of the receiver's QuickFIX/J session descriptor.

Returns:
The configuration.

setName

public void setName(String name)
Sets the receiver's name to the given value.

Parameters:
name - The name.

getName

public String getName()
Returns the receiver's name.

Returns:
The name.

setId

public void setId(String id)
Sets the receiver's broker ID to the given string form value.

Parameters:
id - The ID.

getId

public String getId()
Returns the receiver's broker ID, in string form.

Returns:
The ID.

getFixLogoutRequired

public boolean getFixLogoutRequired()
Indicates if the broker requires FIX logout on disconnect.

Returns:
a boolean value

setFixLogoutRequired

public void setFixLogoutRequired(boolean inLogout)
Sets if the broker requires FIX logout on disconnect.

Parameters:
a - boolean value

setModifiers

public void setModifiers(MessageModifierManager modifiers)
Sets the receiver's message modifier manager to the given one.

Parameters:
modifiers - The manager. It may be null.

getModifiers

public MessageModifierManager getModifiers()
Returns the receiver's message modifier manager.

Returns:
The manager. It may be null.

setRoutes

public void setRoutes(MessageRouteManager routes)
Sets the receiver's route manager to the given one.

Parameters:
routes - The manager. It may be null.

getRoutes

public MessageRouteManager getRoutes()
Returns the receiver's route manager.

Returns:
The manager. It may be null.

setPreSendModifiers

public void setPreSendModifiers(MessageModifierManager preSendModifiers)
Sets the receiver's pre-sending message modifier manager to the given one.

Parameters:
preSendModifiers - The manager. It may be null.

getPreSendModifiers

public MessageModifierManager getPreSendModifiers()
Returns the receiver's pre-sending message modifier manager.

Returns:
The manager. It may be null.

setResponseModifiers

public void setResponseModifiers(MessageModifierManager responseModifiers)
Sets the receiver's response message modifier manager to the given one.

Parameters:
responseModifiers - The manager. It may be null.

getResponseModifiers

public MessageModifierManager getResponseModifiers()
Returns the receiver's response message modifier manager.

Returns:
The manager. It may be null.

getLogonActions

public Collection<LogonAction> getLogonActions()
Get the logonActions value.

Returns:
a List<LogonAction> value

getLogoutActions

public Collection<LogoutAction> getLogoutActions()
Get the logoutActions value.

Returns:
a Collection<LogoutAction> value

setLogoutActions

public void setLogoutActions(Collection<LogoutAction> inLogoutActions)
Sets the logoutActions value.

Parameters:
a - Collection<LogoutAction> value

setLogonActions

public void setLogonActions(Collection<LogonAction> inLogonActions)
Sets the logonActions value.

Parameters:
a - Collection<LogonAction> value

afterPropertiesSet

public void afterPropertiesSet()
                        throws I18NException
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
I18NException


Copyright © 2012. All Rights Reserved.