com.epam.cmemdp.marketdata.impl
Class MarketDataAppImpl

java.lang.Object
  extended by com.epam.cmemdp.marketdata.impl.MarketDataAppImpl
All Implemented Interfaces:
MarketDataApp

public class MarketDataAppImpl
extends java.lang.Object
implements MarketDataApp


Constructor Summary
MarketDataAppImpl()
           
 
Method Summary
 java.util.Map<java.lang.Long,Configuration.Subscription> getAllSubscriptions()
          Get all Security Subscriptions, per Security Id
 long getQuoteRequestQty(java.lang.Long securityId)
          Get last Quote Request instance
 SecurityDefinition getSecurityDefinition(java.lang.Long securityId)
          Get a Security Definition from internal API registry
 MarketState getSecurityStatus(java.lang.Long securityId)
          Get current Security Status
 TradeStatistic getStatistics(java.lang.Long securityId)
          Get a Trade Statistics instance
 void init(Configuration configuration)
          Initialize Market Data API using a given Configuration instance
 void start()
          Activate and connect to CME
 void startAdhoc(Configuration.Subscription subscription)
          Start an adhoc Subscription
 void stop()
          Shutdown all processes.
 void stop(java.lang.Long securityId)
          Stop a given Security by Id
 void stopByDesc(java.lang.String desc)
          Stop a given Security by Security Description
 void stopBySecGroup(java.lang.String secGroup)
          Stop a given Security by Security Group Name
 void stopBySymbol(java.lang.String symbol)
          Stop a given Security by Security Symbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarketDataAppImpl

public MarketDataAppImpl()
Method Detail

init

public void init(Configuration configuration)
          throws ConfigurationException
Description copied from interface: MarketDataApp
Initialize Market Data API using a given Configuration instance

Specified by:
init in interface MarketDataApp
Parameters:
configuration - a Configuration instance
Throws:
ConfigurationException

start

public void start()
Description copied from interface: MarketDataApp
Activate and connect to CME

Specified by:
start in interface MarketDataApp

stop

public void stop(java.lang.Long securityId)
Description copied from interface: MarketDataApp
Stop a given Security by Id

Specified by:
stop in interface MarketDataApp
Parameters:
securityId - Security Id

stopByDesc

public void stopByDesc(java.lang.String desc)
Description copied from interface: MarketDataApp
Stop a given Security by Security Description

Specified by:
stopByDesc in interface MarketDataApp
Parameters:
desc - Security Description

stopBySymbol

public void stopBySymbol(java.lang.String symbol)
Description copied from interface: MarketDataApp
Stop a given Security by Security Symbol

Specified by:
stopBySymbol in interface MarketDataApp
Parameters:
symbol - Security Symbol

stopBySecGroup

public void stopBySecGroup(java.lang.String secGroup)
Description copied from interface: MarketDataApp
Stop a given Security by Security Group Name

Specified by:
stopBySecGroup in interface MarketDataApp
Parameters:
secGroup - Security Group Name

stop

public void stop()
Description copied from interface: MarketDataApp
Shutdown all processes. Disconnect from CME

Specified by:
stop in interface MarketDataApp

startAdhoc

public void startAdhoc(Configuration.Subscription subscription)
                throws ConfigurationException
Description copied from interface: MarketDataApp
Start an adhoc Subscription

Specified by:
startAdhoc in interface MarketDataApp
Parameters:
subscription - a new Subscription instance
Throws:
ConfigurationException

getAllSubscriptions

public java.util.Map<java.lang.Long,Configuration.Subscription> getAllSubscriptions()
Description copied from interface: MarketDataApp
Get all Security Subscriptions, per Security Id

Specified by:
getAllSubscriptions in interface MarketDataApp
Returns:
a map of all Subscriptions

getSecurityDefinition

public SecurityDefinition getSecurityDefinition(java.lang.Long securityId)
Description copied from interface: MarketDataApp
Get a Security Definition from internal API registry

Specified by:
getSecurityDefinition in interface MarketDataApp
Parameters:
securityId - a given Security Id
Returns:
a required SecurityDefinition

getStatistics

public TradeStatistic getStatistics(java.lang.Long securityId)
Description copied from interface: MarketDataApp
Get a Trade Statistics instance

Specified by:
getStatistics in interface MarketDataApp
Parameters:
securityId - a given Security Id
Returns:
TradeStatistics instance

getSecurityStatus

public MarketState getSecurityStatus(java.lang.Long securityId)
Description copied from interface: MarketDataApp
Get current Security Status

Specified by:
getSecurityStatus in interface MarketDataApp
Parameters:
securityId - a given Security Id
Returns:
a MarketState instance

getQuoteRequestQty

public long getQuoteRequestQty(java.lang.Long securityId)
Description copied from interface: MarketDataApp
Get last Quote Request instance

Specified by:
getQuoteRequestQty in interface MarketDataApp
Parameters:
securityId - a given Security Id
Returns:
a QuoteRequest instance


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