Class DataSourceResolution


  • public class DataSourceResolution
    extends Object
    Author:
    mshankar Class for resolving data sources
    • Constructor Detail

      • DataSourceResolution

        public DataSourceResolution​(ConfigService configService)
    • Method Detail

      • resolveDataSources

        public LinkedList<UnitOfRetrieval> resolveDataSources​(String pvName,
                                                              Timestamp start,
                                                              Timestamp end,
                                                              PVTypeInfo typeInfo,
                                                              BasicContext context,
                                                              PostProcessor postProcessor,
                                                              javax.servlet.http.HttpServletRequest req,
                                                              javax.servlet.http.HttpServletResponse resp,
                                                              ApplianceInfo applianceForPV)
                                                       throws IOException

        Returns a list of units of retrieval. I.e., the storage plugin description, the storage plugin object used to retrieve data, the type information for the PV, the PV name, the start and end timestamp, the postprocessor that should be used and the context in which the data should be retrieved

        If the PV name that was specified in the method call is not to be found in the current appliance, the storage plugin object stored in the UnitOfRetrieval object will be a PBOverHTTPStoragePlugin object.

        Parameters:
        pvName - The name of PV.
        start - Timestamp
        end - Timestamp
        typeInfo - PVTypeInf
        context - BasicContext
        postProcessor - PostProcessor
        req - HttpServletRequest
        resp - HttpServletResponse
        applianceForPV - ApplianceInfo
        Returns:
        UnitOfRetrieval
        Throws:
        IOException -   A LinkedList of UnitOfRetrieval objects that contain the storage plguin description, the storage plugin object used to retrieve data, the type information of the PV, the PV name, the start and end timestamp, the postprocessor that should be used and the context in which data should be retrieved.
        IOException - Thrown if there is a syntax error in the URI.