public class FileStoreStats extends Object implements FileStoreStatsMBean
Modifier and Type | Field and Description |
---|---|
static org.apache.jackrabbit.oak.segment.file.FileStoreMonitor |
DEFAULT |
static String |
JOURNAL_WRITES |
static String |
SEGMENT_REPO_SIZE |
static String |
SEGMENT_WRITES |
TYPE
Constructor and Description |
---|
FileStoreStats(org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider,
FileStore store,
long initialSize) |
Modifier and Type | Method and Description |
---|---|
String |
fileStoreInfoAsString() |
void |
flushed()
Notifies the monitor when journal data is flushed to disk.
|
long |
getApproximateSize() |
CompositeData |
getJournalWriteStatsAsCompositeData() |
long |
getJournalWriteStatsAsCount() |
CompositeData |
getRepositorySize() |
int |
getTarFileCount() |
CompositeData |
getWriteStats() |
void |
reclaimed(long size)
Notifies the monitor when memory is reclaimed
|
void |
written(long delta)
Notifies the monitor when data is written
|
public static final String SEGMENT_REPO_SIZE
public static final String SEGMENT_WRITES
public static final String JOURNAL_WRITES
public static final org.apache.jackrabbit.oak.segment.file.FileStoreMonitor DEFAULT
public FileStoreStats(org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider, FileStore store, long initialSize)
public void written(long delta)
delta
- number of bytes writtenpublic void reclaimed(long size)
size
- number of bytes reclaimedpublic void flushed()
public long getApproximateSize()
getApproximateSize
in interface FileStoreStatsMBean
public int getTarFileCount()
getTarFileCount
in interface FileStoreStatsMBean
@Nonnull public CompositeData getWriteStats()
getWriteStats
in interface FileStoreStatsMBean
@Nonnull public CompositeData getRepositorySize()
getRepositorySize
in interface FileStoreStatsMBean
public String fileStoreInfoAsString()
fileStoreInfoAsString
in interface FileStoreStatsMBean
public long getJournalWriteStatsAsCount()
getJournalWriteStatsAsCount
in interface FileStoreStatsMBean
public CompositeData getJournalWriteStatsAsCompositeData()
getJournalWriteStatsAsCompositeData
in interface FileStoreStatsMBean
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.