Class DataSourceforPV
- java.lang.Object
-
- org.epics.archiverappliance.retrieval.DataSourceforPV
-
- All Implemented Interfaces:
Comparable<DataSourceforPV>
public class DataSourceforPV extends Object implements Comparable<DataSourceforPV>
Represents a data source for data for a PV- Author:
- mshankar
-
-
Constructor Summary
Constructors Constructor Description DataSourceforPV(String pvName, StoragePlugin storagePlugin, int lifetimeid, Timestamp dataStartTime, Timestamp dataEndTime)
-
Method Summary
Modifier and Type Method Description int
compareTo(DataSourceforPV other)
boolean
equals(Object other)
Timestamp
getDataEndTime()
Timestamp
getDataStartTime()
int
getLifetimeId()
String
getPvName()
TimeSpan
getRequestTimeSpan()
StoragePlugin
getStoragePlugin()
int
hashCode()
boolean
isOverridingStartAndEndTimes()
Has the data source resolution specified the times for which we are fetching the data? Note this is an optional optimization and is most often used when getting data from the ChannelArchiver.
-
-
-
Constructor Detail
-
DataSourceforPV
public DataSourceforPV(String pvName, StoragePlugin storagePlugin, int lifetimeid, Timestamp dataStartTime, Timestamp dataEndTime)
-
-
Method Detail
-
getPvName
public String getPvName()
-
getDataStartTime
public Timestamp getDataStartTime()
-
getDataEndTime
public Timestamp getDataEndTime()
-
getStoragePlugin
public StoragePlugin getStoragePlugin()
-
getLifetimeId
public int getLifetimeId()
-
compareTo
public int compareTo(DataSourceforPV other)
- Specified by:
compareTo
in interfaceComparable<DataSourceforPV>
-
isOverridingStartAndEndTimes
public boolean isOverridingStartAndEndTimes()
Has the data source resolution specified the times for which we are fetching the data? Note this is an optional optimization and is most often used when getting data from the ChannelArchiver. Most other times, we let this default to the start time and end time of the data retrieval request.- Returns:
- boolean True or False
-
getRequestTimeSpan
public TimeSpan getRequestTimeSpan()
-
-