Class SegmentNodeStoreStats

    • Constructor Detail

      • SegmentNodeStoreStats

        public SegmentNodeStoreStats​(StatisticsProvider statisticsProvider)
    • Method Detail

      • onCommit

        public void onCommit​(java.lang.Thread t,
                             long time)
        Description copied from interface: SegmentNodeStoreMonitor
        Notifies the monitor when a new commit was persisted.
        Specified by:
        onCommit in interface SegmentNodeStoreMonitor
        Parameters:
        t - the thread which initiated the write
        time - the time spent for persisting the commit
      • onCommitQueued

        public void onCommitQueued​(java.lang.Thread t,
                                   java.util.function.Supplier<GCGeneration> gcGeneration)
        Description copied from interface: SegmentNodeStoreMonitor
        Notifies the monitor when a new commit couldn't be persisted, but was queued for later retry.
        Specified by:
        onCommitQueued in interface SegmentNodeStoreMonitor
        Parameters:
        t - the thread which initiated the write
        gcGeneration - the commit's gc generation
      • onCommitDequeued

        public void onCommitDequeued​(java.lang.Thread t,
                                     long time)
        Description copied from interface: SegmentNodeStoreMonitor
        Notifies the monitor when a queued commit was dequeued for processing.
        Specified by:
        onCommitDequeued in interface SegmentNodeStoreMonitor
        Parameters:
        t - the thread which initiated the write
        time - the time spent in the queue
      • getCommitsCountPerWriterGroupLastMinute

        public javax.management.openmbean.TabularData getCommitsCountPerWriterGroupLastMinute()
                                                                                       throws javax.management.openmbean.OpenDataException
        Specified by:
        getCommitsCountPerWriterGroupLastMinute in interface SegmentNodeStoreStatsMBean
        Returns:
        tabular data of the form <commits,writerGroup> collected in the last minute
        Throws:
        javax.management.openmbean.OpenDataException - if data is not available
      • getCommitsCountForOtherWriters

        public javax.management.openmbean.TabularData getCommitsCountForOtherWriters()
                                                                              throws javax.management.openmbean.OpenDataException
        Specified by:
        getCommitsCountForOtherWriters in interface SegmentNodeStoreStatsMBean
        Returns:
        tabular data of the form <commits,writer> for writers not included in groups
        Throws:
        javax.management.openmbean.OpenDataException - if data is not available
      • getQueuedWriters

        public javax.management.openmbean.TabularData getQueuedWriters()
                                                                throws javax.management.openmbean.OpenDataException
        Specified by:
        getQueuedWriters in interface SegmentNodeStoreStatsMBean
        Returns:
        tabular data of the form <writer, writerDetails, queued, dequed, applied> for each writer currently in the queue
        Throws:
        javax.management.openmbean.OpenDataException - if data is not available
      • getCurrentWriter

        @Nullable
        public @Nullable javax.management.openmbean.CompositeData getCurrentWriter()
                                                                            throws javax.management.openmbean.OpenDataException
        Specified by:
        getCurrentWriter in interface SegmentNodeStoreStatsMBean
        Returns:
        data of the form <writer, writerDetails, queued, dequed, applied> for the writer currently in committing. @null if none.
        Throws:
        javax.management.openmbean.OpenDataException - if data is not available
      • setCollectStackTraces

        public void setCollectStackTraces​(boolean flag)
        Description copied from interface: SegmentNodeStoreStatsMBean
        Turns on/off, depending on the value of flag, the collection of stack traces for each writer.
        Specified by:
        setCollectStackTraces in interface SegmentNodeStoreStatsMBean
        Parameters:
        flag - boolean indicating whether to collect or not
      • setNumberOfOtherWritersToDetail

        public void setNumberOfOtherWritersToDetail​(int otherWritersLimit)
        Description copied from interface: SegmentNodeStoreStatsMBean
        Modifies the maximum number of writers outside already defined groups to be recorded. Changing the default value will reset the overall collection process.
        Specified by:
        setNumberOfOtherWritersToDetail in interface SegmentNodeStoreStatsMBean
        Parameters:
        otherWritersLimit - the new size
      • setWriterGroupsForLastMinuteCounts

        public void setWriterGroupsForLastMinuteCounts​(java.lang.String[] writerGroups)
        Description copied from interface: SegmentNodeStoreStatsMBean
        Modifies the groups used for grouping writers. Changing the default value will reset the overall collection process.
        Specified by:
        setWriterGroupsForLastMinuteCounts in interface SegmentNodeStoreStatsMBean
        Parameters:
        writerGroups - groups defined by regexps