Class RetrievalState

java.lang.Object
org.epics.archiverappliance.retrieval.RetrievalState
Direct Known Subclasses:
SampleRetrievalState

public class RetrievalState extends Object
  • Constructor Details

    • RetrievalState

      public RetrievalState(ConfigService configService)
  • Method Details

    • getDataSources

      public List<DataSourceforPV> getDataSources(BasicContext context, String pvName, PVTypeInfo typeInfo, Instant start, Instant end, javax.servlet.http.HttpServletRequest req) throws IOException
      Get the data sources for a PV in the order of their lifetime id...
      Parameters:
      context - BasicContext
      pvName - The name of PV.
      typeInfo - PVTypeInfo
      start - Instant
      end - Instant
      req - HttpServletRequest
      Returns:
      the data source for a PV
      Throws:
      IOException -  
    • includeExternalServers

      public static boolean includeExternalServers(javax.servlet.http.HttpServletRequest req)
      To prevent infinite loops and such, we can specify that we do not proxy to external servers for this data retrieval request.
      Parameters:
      req - HttpServletRequest
      Returns:
      boolean True or False
    • getRetrievalMetrics

      public Map<String,RetrievalMetrics> getRetrievalMetrics()
    • updateRetrievalMetrics

      protected void updateRetrievalMetrics(String pvName, Instant time, String user)
    • getPVRetrievalMetrics

      public RetrievalMetrics getPVRetrievalMetrics(String pvName)