Class ChannelArchiverDataServerPVInfo
- java.lang.Object
-
- org.epics.archiverappliance.config.ChannelArchiverDataServerPVInfo
-
- All Implemented Interfaces:
Serializable
public class ChannelArchiverDataServerPVInfo extends Object implements Serializable
As part of archiver.names, the ChannelArchiver XMLRPC server also returns the first and last timestamp. We store the start and end epoch seconds in addition to the ServerInfo in instances of this class. This is typically used to sort the servers in reverse order of their first and last epoch seconds. This gives up a poor mans implementation of Bob's traffic cop index; though the memory consumption is probably somewhat excessive.- Author:
- mshankar
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChannelArchiverDataServerPVInfo(ChannelArchiverDataServerInfo serverInfo, long startSec, long endSec)
-
Method Summary
Modifier and Type Method Description long
getEndSec()
ChannelArchiverDataServerInfo
getServerInfo()
long
getStartSec()
static void
sortServersBasedOnStartAndEndSecs(List<ChannelArchiverDataServerPVInfo> caPVInfos)
String
toString()
-
-
-
Constructor Detail
-
ChannelArchiverDataServerPVInfo
public ChannelArchiverDataServerPVInfo(ChannelArchiverDataServerInfo serverInfo, long startSec, long endSec)
-
-
Method Detail
-
sortServersBasedOnStartAndEndSecs
public static void sortServersBasedOnStartAndEndSecs(List<ChannelArchiverDataServerPVInfo> caPVInfos)
-
getServerInfo
public ChannelArchiverDataServerInfo getServerInfo()
-
getStartSec
public long getStartSec()
-
getEndSec
public long getEndSec()
-
-