com.epam.cmemdp.marketdata.cfg
Class Configuration

java.lang.Object
  extended by com.epam.cmemdp.marketdata.cfg.Configuration

public class Configuration
extends java.lang.Object


Nested Class Summary
static class Configuration.SecurityFilter
           
static class Configuration.Subscription
           
static class Configuration.SubscriptionOption
           
 
Constructor Summary
Configuration()
           
 
Method Summary
 Configuration bindAllSecurityEventsListener(java.lang.String id, SecurityEventsListener listener)
          Bind an Security Event Listener instance to a given Subscription.
 Configuration bindApplicationListener(ApplicationEventListener listener)
           
 Configuration bindConsolidatedBookListener(java.lang.String id, ConsolidatedOrderBookListener listener)
          Bind an Consolidated Order Book Listener instance to a given Subscription.
 Configuration bindDirectBookListener(java.lang.String id, OrderBookListener listener)
          Bind an Order Book Listener instance to a given Subscription.
 Configuration bindImpliedBookListener(java.lang.String id, ImpliedOrderBookListener listener)
          Bind an Implied Order Book Listener instance to a given Subscription.
 Configuration bindQuoteRequestsListener(java.lang.String id, QuoteRequestListener listener)
          Bind an Quote Request Listener instance to a given Subscription.
 Configuration bindSecurityDefListener(SecurityDefEventsListener listener)
           
 Configuration bindSecurityStatusListener(java.lang.String id, SecurityStatusListener listener)
          Bind an Security Status Listener instance to a given Subscription.
 Configuration bindStatisticsListener(java.lang.String id, StatisticsListener listener)
          Bind an Statistics Listener instance to a given Subscription.
 Configuration bindTradesListener(java.lang.String id, TradeListener listener)
          Bind an Trade Listener instance to a given Subscription.
 Configuration.Subscription findSubscription(java.lang.String id)
          Find Subscription be Id.
 ApplicationEventListener getApplicationListener()
           
 ApplicationParams getCmeApplicationParams()
           
 int getCorridorQueueSize()
           
 int getIncrementQueueSize()
           
 java.lang.String getNetworkInterface()
           
 java.lang.String getNetworkInterfaceA()
           
 java.lang.String getNetworkInterfaceB()
           
 RecoveryOptions getRecoveryOptions()
           
 SecurityDefEventsListener getSecurityDefEventsListener()
           
 java.util.List<Configuration.Subscription> getSubscriptions()
           
 java.lang.String getUriToCmeConfig()
           
 java.lang.String getUriToFastTemplates()
           
 void setApplicationListener(ApplicationEventListener applicationListener)
           
 Configuration setCorridorQueueSize(int corridorQueueSize)
           
 Configuration setIncrementQueueSize(int incrementQueueSize)
           
 void setNetworkInterface(java.lang.String networkInterface)
           
 void setNetworkInterfaceA(java.lang.String networkInterfaceA)
           
 void setNetworkInterfaceB(java.lang.String networkInterfaceB)
           
 Configuration setRecoveryOptions(RecoveryOptions recoveryOptions)
           
 void setSecurityDefEventsListener(SecurityDefEventsListener securityDefEventsListener)
           
 Configuration setSubscriptions(java.util.List<Configuration.Subscription> subscriptions)
           
 Configuration setUriToCmeConfig(java.lang.String uriToCmeConfig)
           
 Configuration setUriToFastTemplates(java.lang.String uriToFastTemplates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

getUriToCmeConfig

public java.lang.String getUriToCmeConfig()

setUriToCmeConfig

public Configuration setUriToCmeConfig(java.lang.String uriToCmeConfig)

getUriToFastTemplates

public java.lang.String getUriToFastTemplates()

setUriToFastTemplates

public Configuration setUriToFastTemplates(java.lang.String uriToFastTemplates)

getIncrementQueueSize

public int getIncrementQueueSize()

setIncrementQueueSize

public Configuration setIncrementQueueSize(int incrementQueueSize)

getCorridorQueueSize

public int getCorridorQueueSize()

setCorridorQueueSize

public Configuration setCorridorQueueSize(int corridorQueueSize)

getNetworkInterface

public java.lang.String getNetworkInterface()

setNetworkInterface

public void setNetworkInterface(java.lang.String networkInterface)

getNetworkInterfaceA

public java.lang.String getNetworkInterfaceA()

setNetworkInterfaceA

public void setNetworkInterfaceA(java.lang.String networkInterfaceA)

getNetworkInterfaceB

public java.lang.String getNetworkInterfaceB()

setNetworkInterfaceB

public void setNetworkInterfaceB(java.lang.String networkInterfaceB)

getSubscriptions

public java.util.List<Configuration.Subscription> getSubscriptions()

setSubscriptions

public Configuration setSubscriptions(java.util.List<Configuration.Subscription> subscriptions)

getRecoveryOptions

public RecoveryOptions getRecoveryOptions()

setRecoveryOptions

public Configuration setRecoveryOptions(RecoveryOptions recoveryOptions)

bindDirectBookListener

public Configuration bindDirectBookListener(java.lang.String id,
                                            OrderBookListener listener)
Bind an Order Book Listener instance to a given Subscription. It has sense if you include DIRECT or CONSOLIDATED in Subscription's options

Parameters:
id - Id of Subscription
listener - a Listener instance to bind
Returns:
Configuration

bindImpliedBookListener

public Configuration bindImpliedBookListener(java.lang.String id,
                                             ImpliedOrderBookListener listener)
Bind an Implied Order Book Listener instance to a given Subscription. It has sense if you include IMPLIED or CONSOLIDATED in Subscription's options

Parameters:
id - Id of Subscription
listener - a Listener instance to bind
Returns:
Configuration

bindConsolidatedBookListener

public Configuration bindConsolidatedBookListener(java.lang.String id,
                                                  ConsolidatedOrderBookListener listener)
Bind an Consolidated Order Book Listener instance to a given Subscription. It has sense if you include CONSOLIDATED in Subscription's options

Parameters:
id - Id of Subscription
listener - a Listener instance to bind
Returns:
Configuration

bindAllSecurityEventsListener

public Configuration bindAllSecurityEventsListener(java.lang.String id,
                                                   SecurityEventsListener listener)
Bind an Security Event Listener instance to a given Subscription. It has sense if you include SECURITY or any related Option in Subscription's options

Parameters:
id - Id of Subscription
listener - a Listener instance to bind
Returns:
Configuration

bindTradesListener

public Configuration bindTradesListener(java.lang.String id,
                                        TradeListener listener)
Bind an Trade Listener instance to a given Subscription. It has sense if you include SECURITY or TRADE Option in Subscription's options

Parameters:
id - Id of Subscription
listener - a Listener instance to bind
Returns:
Configuration

bindStatisticsListener

public Configuration bindStatisticsListener(java.lang.String id,
                                            StatisticsListener listener)
Bind an Statistics Listener instance to a given Subscription. It has sense if you include SECURITY or STATISTICS Option in Subscription's options

Parameters:
id - Id of Subscription
listener - a Listener instance to bind
Returns:
Configuration

bindQuoteRequestsListener

public Configuration bindQuoteRequestsListener(java.lang.String id,
                                               QuoteRequestListener listener)
Bind an Quote Request Listener instance to a given Subscription. It has sense if you include SECURITY or QUOTEREQUEST Option in Subscription's options

Parameters:
id - Id of Subscription
listener - a Listener instance to bind
Returns:
Configuration

bindSecurityStatusListener

public Configuration bindSecurityStatusListener(java.lang.String id,
                                                SecurityStatusListener listener)
Bind an Security Status Listener instance to a given Subscription. It has sense if you include SECURITY or STATUS Option in Subscription's options

Parameters:
id - Id of Subscription
listener - a Listener instance to bind
Returns:
Configuration

findSubscription

public Configuration.Subscription findSubscription(java.lang.String id)
Find Subscription be Id. Throws exception if not exists

Parameters:
id - Id of Subscription
Returns:
Subscription

bindApplicationListener

public Configuration bindApplicationListener(ApplicationEventListener listener)

bindSecurityDefListener

public Configuration bindSecurityDefListener(SecurityDefEventsListener listener)

getApplicationListener

public ApplicationEventListener getApplicationListener()

setApplicationListener

public void setApplicationListener(ApplicationEventListener applicationListener)

getSecurityDefEventsListener

public SecurityDefEventsListener getSecurityDefEventsListener()

setSecurityDefEventsListener

public void setSecurityDefEventsListener(SecurityDefEventsListener securityDefEventsListener)

getCmeApplicationParams

public ApplicationParams getCmeApplicationParams()


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.