public NRTIndexWriter(IndexWriter indexWriter) { this.indexWriter = indexWriter; this.updateMeter = statisticsProvider.getMeter(metricName("UPDATES"), StatsOptions.METRICS_ONLY); }
@Override public MeterStats getMeter(String name, StatsOptions options) { return delegate.getMeter(addRoleToName(name, role), options); }
public NRTIndexWriter(IndexWriter indexWriter) { this.indexWriter = indexWriter; this.updateMeter = statisticsProvider.getMeter(metricName("UPDATES"), StatsOptions.METRICS_ONLY); }
public SecondaryStoreCache(NodeStore nodeStore, NodeStateDiffer differ, PathFilter pathFilter, StatisticsProvider statisticsProvider) { this.differ = differ; this.store = nodeStore; this.pathFilter = pathFilter; this.unknownPaths = statisticsProvider.getMeter("DOCUMENT_CACHE_SEC_UNKNOWN", StatsOptions.DEFAULT); this.knownMissed = statisticsProvider.getMeter("DOCUMENT_CACHE_SEC_KNOWN_MISSED", StatsOptions.DEFAULT); this.knownMissedOld = statisticsProvider.getMeter("DOCUMENT_CACHE_SEC_KNOWN_MISSED_OLD", StatsOptions.DEFAULT); this.knownMissedNew = statisticsProvider.getMeter("DOCUMENT_CACHE_SEC_KNOWN_MISSED_NEW", StatsOptions.DEFAULT); this.knownMissedInRange = statisticsProvider.getMeter("DOCUMENT_CACHE_SEC_KNOWN_MISSED_IN_RANGE", StatsOptions .DEFAULT); this.headRevMatched = statisticsProvider.getMeter("DOCUMENT_CACHE_SEC_HEAD", StatsOptions.DEFAULT); this.prevRevMatched = statisticsProvider.getMeter("DOCUMENT_CACHE_SEC_OLD", StatsOptions.DEFAULT); this.queue = EvictingQueue.create(maxSize); }
public DocumentQueue(int maxQueueSize, IndexTracker tracker, Executor executor, StatisticsProvider sp) { this.docsQueue = new LinkedBlockingDeque<>(maxQueueSize); this.tracker = tracker; this.executor = executor; this.offerTimeMillis = 100; //Wait for at most 100 mills while adding stuff to queue this.queueSizeStats = sp.getCounterStats("HYBRID_QUEUE_SIZE", StatsOptions.DEFAULT); this.added = sp.getMeter("HYBRID_ADDED", StatsOptions.DEFAULT); this.dropped = sp.getMeter("HYBRID_DROPPED", StatsOptions.DEFAULT); }
public DocumentQueue(int maxQueueSize, IndexTracker tracker, Executor executor, StatisticsProvider sp) { this.docsQueue = new LinkedBlockingDeque<>(maxQueueSize); this.tracker = tracker; this.executor = executor; this.offerTimeMillis = 100; //Wait for at most 100 mills while adding stuff to queue this.queueSizeStats = sp.getCounterStats("HYBRID_QUEUE_SIZE", StatsOptions.DEFAULT); this.added = sp.getMeter("HYBRID_ADDED", StatsOptions.DEFAULT); this.dropped = sp.getMeter("HYBRID_DROPPED", StatsOptions.DEFAULT); }
public BlobStoreStats(@NotNull StatisticsProvider sp) { super(BlobStoreStatsMBean.class); this.statisticsProvider = checkNotNull(sp); this.uploadHisto = sp.getHistogram(BLOB_UPLOADS, StatsOptions.DEFAULT); this.uploadCount = sp.getMeter(BLOB_UPLOAD_COUNT, StatsOptions.DEFAULT); this.uploadSizeSeries = sp.getMeter("BLOB_UPLOAD_SIZE", StatsOptions.TIME_SERIES_ONLY); this.uploadTimeSeries = sp.getMeter("BLOB_UPLOAD_TIME", StatsOptions.TIME_SERIES_ONLY); this.uploadRateSeries = getAvgTimeSeries("BLOB_UPLOAD_SIZE", "BLOB_UPLOAD_TIME"); this.downloadHisto = sp.getHistogram(BLOB_DOWNLOADS, StatsOptions.DEFAULT); this.downloadCount = sp.getMeter(BLOB_DOWNLOAD_COUNT, StatsOptions.DEFAULT); this.downloadSizeSeries = sp.getMeter("BLOB_DOWNLOAD_SIZE", StatsOptions.TIME_SERIES_ONLY); this.downloadTimeSeries = sp.getMeter("BLOB_DOWNLOAD_TIME", StatsOptions.TIME_SERIES_ONLY); this.downloadRateSeries = getAvgTimeSeries("BLOB_DOWNLOAD_SIZE", "BLOB_DOWNLOAD_TIME"); }
public FileStoreStats(StatisticsProvider statisticsProvider, FileStore store, long initialSize) { this.statisticsProvider = statisticsProvider; this.store = store; this.writeStats = statisticsProvider.getMeter(SEGMENT_WRITES, StatsOptions.DEFAULT); this.repoSize = statisticsProvider.getCounterStats(SEGMENT_REPO_SIZE, StatsOptions.DEFAULT); this.journalWriteStats = statisticsProvider.getMeter(JOURNAL_WRITES, StatsOptions.DEFAULT); repoSize.inc(initialSize); }
public MetricsIOMonitor(@NotNull StatisticsProvider statisticsProvider) { segmentReadBytes = statisticsProvider.getMeter( OAK_SEGMENT_SEGMENT_READ_BYTES, StatsOptions.METRICS_ONLY); segmentWriteBytes = statisticsProvider.getMeter( OAK_SEGMENT_SEGMENT_WRITE_BYTES, StatsOptions.METRICS_ONLY); segmentReadTime = statisticsProvider.getTimer( OAK_SEGMENT_SEGMENT_READ_TIME, StatsOptions.METRICS_ONLY); segmentWriteTime = statisticsProvider.getTimer( OAK_SEGMENT_SEGMENT_WRITE_TIME, StatsOptions.METRICS_ONLY); }
public PropertyIndexCleaner(NodeStore nodeStore, IndexPathService indexPathService, AsyncIndexInfoService asyncIndexInfoService, StatisticsProvider statsProvider) { this.nodeStore = checkNotNull(nodeStore); this.indexPathService = checkNotNull(indexPathService); this.asyncIndexInfoService = checkNotNull(asyncIndexInfoService); this.cleanupTime = statsProvider.getTimer("HYBRID_PROPERTY_CLEANER", StatsOptions.METRICS_ONLY); this.noopMeter = statsProvider.getMeter("HYBRID_PROPERTY_NOOP", StatsOptions.METRICS_ONLY); }
public ExternalIndexObserver(IndexingQueue indexingQueue, IndexTracker indexTracker, StatisticsProvider statisticsProvider) { this.indexingQueue = checkNotNull(indexingQueue); this.indexTracker = checkNotNull(indexTracker); this.added = statisticsProvider.getMeter("HYBRID_EXTERNAL_ADDED", StatsOptions.METRICS_ONLY); this.timer = statisticsProvider.getTimer("HYBRID_EXTERNAL_TIME", StatsOptions.METRICS_ONLY); }
public PropertyIndexCleaner(NodeStore nodeStore, IndexPathService indexPathService, AsyncIndexInfoService asyncIndexInfoService, StatisticsProvider statsProvider) { this.nodeStore = checkNotNull(nodeStore); this.indexPathService = checkNotNull(indexPathService); this.asyncIndexInfoService = checkNotNull(asyncIndexInfoService); this.cleanupTime = statsProvider.getTimer("HYBRID_PROPERTY_CLEANER", StatsOptions.METRICS_ONLY); this.noopMeter = statsProvider.getMeter("HYBRID_PROPERTY_NOOP", StatsOptions.METRICS_ONLY); }
public ExternalIndexObserver(IndexingQueue indexingQueue, IndexTracker indexTracker, StatisticsProvider statisticsProvider) { this.indexingQueue = checkNotNull(indexingQueue); this.indexTracker = checkNotNull(indexTracker); this.added = statisticsProvider.getMeter("HYBRID_EXTERNAL_ADDED", StatsOptions.METRICS_ONLY); this.timer = statisticsProvider.getTimer("HYBRID_EXTERNAL_TIME", StatsOptions.METRICS_ONLY); }
private static MeterStats meter(StatisticsProvider provider, String name) { return provider.getMeter(qualifiedName(name), DEFAULT); }
private static MeterStats meter(StatisticsProvider provider, String name) { return provider.getMeter(qualifiedName(name), DEFAULT); }
public AsyncIndexUpdate(@NotNull String name, @NotNull NodeStore store, @NotNull IndexEditorProvider provider, StatisticsProvider statsProvider, boolean switchOnSync) { this.name = checkValidName(name); this.lastIndexedTo = lastIndexedTo(name); this.store = checkNotNull(store); this.provider = checkNotNull(provider); this.switchOnSync = switchOnSync; this.leaseTimeOut = DEFAULT_ASYNC_TIMEOUT; this.statisticsProvider = statsProvider; this.indexStats = new AsyncIndexStats(name, statsProvider); this.corruptIndexHandler.setMeterStats(statsProvider.getMeter(TrackingCorruptIndexHandler.CORRUPT_INDEX_METER_NAME, StatsOptions.METRICS_ONLY)); }
public AsyncIndexUpdate(@NotNull String name, @NotNull NodeStore store, @NotNull IndexEditorProvider provider, StatisticsProvider statsProvider, boolean switchOnSync) { this.name = checkValidName(name); this.lastIndexedTo = lastIndexedTo(name); this.store = checkNotNull(store); this.provider = checkNotNull(provider); this.switchOnSync = switchOnSync; this.leaseTimeOut = DEFAULT_ASYNC_TIMEOUT; this.statisticsProvider = statsProvider; this.indexStats = new AsyncIndexStats(name, statsProvider); this.corruptIndexHandler.setMeterStats(statsProvider.getMeter("corrupt-index", StatsOptions.METRICS_ONLY)); }
public MeterStats getMeter(Type type){ return repoStats.getMeter(type.name(), getOption(type)); }
public SegmentNodeStoreStats(StatisticsProvider statisticsProvider) { this.statisticsProvider = statisticsProvider; this.commitsTracker = new CommitsTracker(writerGroups, otherWritersLimit, collectStackTraces); this.commitsCount = statisticsProvider.getMeter(COMMITS_COUNT, StatsOptions.DEFAULT); this.commitQueueSize = statisticsProvider.getCounterStats(COMMIT_QUEUE_SIZE, StatsOptions.DEFAULT); this.commitTime = statisticsProvider.getTimer(COMMIT_TIME, StatsOptions.DEFAULT); this.queueingTime = statisticsProvider.getTimer(QUEUEING_TIME, StatsOptions.DEFAULT); }
@Before public void setup() { ScheduledExecutorService scheduler = newScheduledThreadPool(1); StatisticsProvider statistics = new DefaultStatisticsProvider(scheduler); cache = new CacheAccessTracker<String, RecordId>("foo", statistics, newRecordCache(100)); closer = new ExecutorCloser(scheduler); accessStats = statistics.getMeter("foo.access-count", StatsOptions.DEFAULT); missStats = statistics.getMeter("foo.miss-count", StatsOptions.DEFAULT); }