Class ManualFeedModule

  • All Implemented Interfaces:
    DataEmitter

    public class ManualFeedModule
    extends Module
    implements DataEmitter
    Supplies market data supplied by an upstream module.
    Since:
    $Release$
    Version:
    $Id$
    Author:
    Colin DuPlantis
    • Constructor Detail

      • ManualFeedModule

        ManualFeedModule​(ModuleURN inUrn)
        Create a new ManualFeedModule instance.
        Parameters:
        inUrn - a ModuleURN value
    • Method Detail

      • getInstance

        public static ManualFeedModule getInstance()
        Get the instance value.
        Returns:
        a ManualFeedModule value
      • emit

        public void emit​(String inRequestId,
                         Collection<Event> inEvents)
        Emit the given events to the data flow for the given request id.
        Parameters:
        inRequestId - a String value or null to submit to all data flows
        inEvents - a Collection<Event> value
      • emit

        public void emit​(String inRequestId,
                         Event inEvent)
        Emit the given event to the data flow for the given request id.
        Parameters:
        inRequestId - a String value or null to submit to all data flows
        inEvent - a Event value
      • getRequests

        public com.google.common.collect.BiMap<String,​MarketDataRequest> getRequests()
        Get the known market data requests indexed by the request id associated with the request.
        Returns:
        a BiMap<String,MarketDataRequest> value
      • updateFeedStatus

        private void updateFeedStatus​(FeedStatus inNewStatus)
        Update the feed status to the new given value.
        Parameters:
        inNewStatus - a FeedStatus value
      • doFeedStatusRequest

        private void doFeedStatusRequest​(FeedStatusRequest inPayload,
                                         DataRequest inRequest,
                                         DataEmitterSupport inSupport)
        Execute a feed status request with the given attributes.
        Parameters:
        inPayload - a FeedStatusRequest value
        inRequest - a DataRequest value
        inSupport - a DataEmitterSupport value
      • emit

        private void emit​(DataEmitterSupport inDataEmitter,
                          Event inEvent)
        Emit the given event to the given data flow.
        Parameters:
        inDataEmitter - a DataEmitterSupport value
        inEvent - an Event value
      • doMarketDataRequest

        private void doMarketDataRequest​(MarketDataRequest inPayload,
                                         DataRequest inRequest,
                                         DataEmitterSupport inSupport)
        Perform the market data request
        Parameters:
        inPayload - a MarketDataRequest value
        inRequest - a DataRequest value
        inSupport - a DataEmitterSupport value