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) |
TSDataFileChain.BatchAdd |
bachAdd() |
protected void |
ensureDiskUsageBelow(long bytes) |
Collection<? extends Collection<TimeSeriesCollection>> |
getRawCollections() |
boolean |
hasPendingTasks() |
void |
optimizeOldFiles() |
protected void |
removeKey(TSDataFileChain.Key key) |
protected Optional<TSDataFileChain.Key> |
selectOldestKey() |
void |
waitPendingTasks() |
getAppendCompression, getEnd, getFileSize, getOptimizedCompression, getTSData, setAppendCompression, setOptimizedCompression, stream, stream, stream, stream, stream, stream, streamReversedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAll, evaluate, evaluate, evaluate, getContext, getContext, getContext, streamGrouppublic 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()
public Collection<? extends Collection<TimeSeriesCollection>> getRawCollections()
public TSDataFileChain.BatchAdd bachAdd()
Copyright © 2017. All rights reserved.