public class DirCollectHistory extends AbstractCollectHistory<TSDataFileChain>
CollectHistory.ApplyExpressions, CollectHistory.NamedEvaluation| Constructor and Description |
|---|
DirCollectHistory(Path dir) |
DirCollectHistory(Path dir,
long disk_usage_limit) |
DirCollectHistory(Path dir,
long disk_usage_limit,
long max_filesize) |
DirCollectHistory(Path dir,
Optional<Long> disk_usage_limit,
Optional<Long> max_filesize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(TimeSeriesCollection tsv) |
boolean |
addAll(Collection<? extends TimeSeriesCollection> tsv) |
protected void |
ensureDiskUsageBelow(long bytes) |
boolean |
hasPendingTasks() |
void |
optimizeOldFiles() |
protected void |
removeKey(TSDataFileChain.Key key) |
protected Optional<TSDataFileChain.Key> |
selectOldestKey() |
void |
waitPendingTasks() |
getEnd, getFileSize, getTSData, stream, stream, stream, stream, stream, stream, streamReversedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluate, evaluate, evaluate, getContext, getContext, getContextpublic DirCollectHistory(Path dir, Optional<Long> disk_usage_limit, Optional<Long> max_filesize) throws IOException
IOExceptionpublic DirCollectHistory(Path dir) throws IOException
IOExceptionpublic DirCollectHistory(Path dir, long disk_usage_limit) throws IOException
IOExceptionpublic DirCollectHistory(Path dir, long disk_usage_limit, long max_filesize) throws IOException
IOExceptionpublic boolean hasPendingTasks()
public void waitPendingTasks()
protected Optional<TSDataFileChain.Key> selectOldestKey()
protected void removeKey(TSDataFileChain.Key key)
protected void ensureDiskUsageBelow(long bytes)
public boolean add(TimeSeriesCollection tsv)
add in interface CollectHistoryadd in class AbstractCollectHistory<TSDataFileChain>public boolean addAll(Collection<? extends TimeSeriesCollection> tsv)
addAll in interface CollectHistoryaddAll in class AbstractCollectHistory<TSDataFileChain>public void optimizeOldFiles()
Copyright © 2016. All rights reserved.