Class YahooFeedModule
- java.lang.Object
-
- org.marketcetera.module.Module
-
- org.marketcetera.marketdata.AbstractMarketDataModule<YahooFeedToken,YahooFeedCredentials>
-
- org.marketcetera.marketdata.yahoo.YahooFeedModule
-
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter,MarketDataModuleMXBean,YahooFeedMXBean,DataEmitter
public class YahooFeedModule extends AbstractMarketDataModule<YahooFeedToken,YahooFeedCredentials> implements YahooFeedMXBean
Provides access to Yahoo market data.Module Features
YahooFeedModule capabilities Capabilities Data Emitter Stops data flows No Start Operation Starts the feed, logs into it. Stop Operation Stops the data feed. Management Interface MarketDataModuleMXBeanMX Notification AttributeChangeNotificationwheneverAbstractMarketDataModule.getFeedStatus()changes.- Since:
- 2.1.4
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Field Summary
Fields Modifier and Type Field Description private YahooFeedfeedthe underlying feedprivate intrefreshIntervalthe interval at which to get a new quoteprivate Stringurlthe URL at which Yahoo provides the data
-
Constructor Summary
Constructors Constructor Description YahooFeedModule()Create a new YahooFeedModule instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected YahooFeedCredentialsgetCredentials()StringgetRefreshInterval()Gets the interval at which to refresh market data in ms.longgetRequestCounter()Gets the number of requests that have been made.StringgetURL()Returns the URL that describes the location of the Yahoo server.voidresetRequestCounter()Resets the request counter.voidsetRefreshInterval(String inRefreshInterval)Sets the interval at which to refresh market data in ms.voidsetURL(String inURL)Sets the URL that describes the location of the Marketcetera Exchange server.-
Methods inherited from class org.marketcetera.marketdata.AbstractMarketDataModule
addNotificationListener, cancel, disconnect, getAssetClasses, getCapabilities, getFeed, getFeedForProviderName, getFeedStatus, getFeedType, 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.MarketDataModuleMXBean
disconnect, getAssetClasses, getCapabilities, getFeedStatus, reconnect
-
-
-
-
Constructor Detail
-
YahooFeedModule
YahooFeedModule() throws CoreExceptionCreate a new YahooFeedModule instance.- Throws:
CoreException
-
-
Method Detail
-
getURL
public String getURL()
Description copied from interface:YahooFeedMXBeanReturns the URL that describes the location of the Yahoo server.- Specified by:
getURLin interfaceYahooFeedMXBean- Returns:
- a
Stringvalue
-
setURL
public void setURL(String inURL)
Description copied from interface:YahooFeedMXBeanSets the URL that describes the location of the Marketcetera Exchange server.- Specified by:
setURLin interfaceYahooFeedMXBean- Parameters:
inURL- aStringvalue
-
getRefreshInterval
public String getRefreshInterval()
Description copied from interface:YahooFeedMXBeanGets the interval at which to refresh market data in ms.- Specified by:
getRefreshIntervalin interfaceYahooFeedMXBean- Returns:
- a
Stringvalue
-
setRefreshInterval
public void setRefreshInterval(String inRefreshInterval)
Description copied from interface:YahooFeedMXBeanSets the interval at which to refresh market data in ms.- Specified by:
setRefreshIntervalin interfaceYahooFeedMXBean- Parameters:
inRefreshInterval- aStringvalue
-
getRequestCounter
public long getRequestCounter()
Description copied from interface:YahooFeedMXBeanGets the number of requests that have been made.- Specified by:
getRequestCounterin interfaceYahooFeedMXBean- Returns:
- a
longvalue
-
resetRequestCounter
public void resetRequestCounter()
Description copied from interface:YahooFeedMXBeanResets the request counter.- Specified by:
resetRequestCounterin interfaceYahooFeedMXBean
-
getCredentials
protected YahooFeedCredentials getCredentials() throws CoreException
- Specified by:
getCredentialsin classAbstractMarketDataModule<YahooFeedToken,YahooFeedCredentials>- Throws:
CoreException
-
-