org.marketcetera.marketdata.yahoo
Class YahooFeedModule

java.lang.Object
  extended by org.marketcetera.module.Module
      extended by org.marketcetera.marketdata.AbstractMarketDataModule<YahooFeedToken,YahooFeedCredentials>
          extended by org.marketcetera.marketdata.yahoo.YahooFeedModule
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter, AbstractMarketDataModuleMXBean, YahooFeedMXBean, DataEmitter

public class YahooFeedModule
extends AbstractMarketDataModule<YahooFeedToken,YahooFeedCredentials>
implements YahooFeedMXBean

Provides access to Yahoo market data.

Module Features

CapabilitiesData Emitter
Stops data flowsNo
Start OperationStarts the feed, logs into it.
Stop OperationStops the data feed.
Management InterfaceAbstractMarketDataModuleMXBean
MX NotificationAttributeChangeNotification whenever AbstractMarketDataModule.getFeedStatus() changes.

Since:
2.1.4
Version:
$Id: YahooFeedModule.java 16154 2012-07-14 16:34:05Z colin $
Author:
Colin DuPlantis

Method Summary
protected  YahooFeedCredentials getCredentials()
           
 String getRefreshInterval()
          Gets the interval at which to refresh market data in ms.
 long getRequestCounter()
          Gets the number of requests that have been made.
 String getURL()
          Returns the URL that describes the location of the Yahoo server.
 void resetRequestCounter()
          Resets the request counter.
 void setRefreshInterval(String inRefreshInterval)
          Sets the interval at which to refresh market data in ms.
 void setURL(String inURL)
          Sets the URL that describes the location of the Marketcetera Exchange server.
 
Methods inherited from class org.marketcetera.marketdata.AbstractMarketDataModule
addNotificationListener, cancel, getAssetClasses, getCapabilities, getFeedStatus, getNotificationInfo, preStart, preStop, reconnect, removeNotificationListener, removeNotificationListener, requestData
 
Methods inherited from class org.marketcetera.module.Module
getCreated, getLastStartFailure, getLastStopFailure, getStarted, getState, getStopped, getURN, isAutoCreated, isAutoStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.marketcetera.marketdata.AbstractMarketDataModuleMXBean
getAssetClasses, getCapabilities, getFeedStatus, reconnect
 

Method Detail

getURL

public String getURL()
Description copied from interface: YahooFeedMXBean
Returns the URL that describes the location of the Yahoo server.

Specified by:
getURL in interface YahooFeedMXBean
Returns:
a String value

setURL

public void setURL(String inURL)
Description copied from interface: YahooFeedMXBean
Sets the URL that describes the location of the Marketcetera Exchange server.

Specified by:
setURL in interface YahooFeedMXBean
Parameters:
inURL - a String value

getRefreshInterval

public String getRefreshInterval()
Description copied from interface: YahooFeedMXBean
Gets the interval at which to refresh market data in ms.

Specified by:
getRefreshInterval in interface YahooFeedMXBean
Returns:
a String value

setRefreshInterval

public void setRefreshInterval(String inRefreshInterval)
Description copied from interface: YahooFeedMXBean
Sets the interval at which to refresh market data in ms.

Specified by:
setRefreshInterval in interface YahooFeedMXBean
Parameters:
inRefreshInterval - a String value

getRequestCounter

public long getRequestCounter()
Description copied from interface: YahooFeedMXBean
Gets the number of requests that have been made.

Specified by:
getRequestCounter in interface YahooFeedMXBean
Returns:
a long value

resetRequestCounter

public void resetRequestCounter()
Description copied from interface: YahooFeedMXBean
Resets the request counter.

Specified by:
resetRequestCounter in interface YahooFeedMXBean

getCredentials

protected YahooFeedCredentials getCredentials()
                                       throws CoreException
Specified by:
getCredentials in class AbstractMarketDataModule<YahooFeedToken,YahooFeedCredentials>
Throws:
CoreException


Copyright © 2012. All Rights Reserved.