Interface IndexSnapshotOperatorStats

All Superinterfaces:
AutoCloseable, Closeable, com.atlassian.jira.util.stats.ManagedStats
All Known Implementing Classes:
IndexSnapshotOperatorStats.Data

public interface IndexSnapshotOperatorStats extends com.atlassian.jira.util.stats.ManagedStats
For collecting stats related to waiting on blocked snapshot attempts. NOTE: RMI threads' names are aggregated by dropping their IDs

Example: { "_statsName":"IndexSnapshotOperatorStats", "_statsType":"total", "_time":"2023-02-02T19:00:00.268Z", "_timestamp":1675364400268, "_duration":"PT2H46M28.21S", "_invocations":1, "_statsOverhead":"n/a", "numberOfCreationAttempts":{"count":1, "min":1, "max":1, "sum":1, "avg":1, "distributionCounter":{"1":1, "2":0, "5":0, "10":0, "20":0, "50":0, "100":0, "200":0}}, "numberOfSuccessfulAttempts":{"value":0}, "numberOfErrorAttempts":{"value":0}, "numberOfBlockedAttempts":{"value":0}, "numberOfPollingAttempts":{"value":0}, "waitingTimeInSeconds":{"count":0, "min":0, "max":0, "sum":0, "avg":0, "distributionCounter":{"60":0, "120":0, "300":0, "600":0, "1800":0, "3600":0, "7200":0}}, "numberOfCreationAttemptsByThreadCacheEvicted":false, "numberOfPollingAttemptsByThreadCacheEvicted":false, "numberOfCreationAttemptsByThread":{}, "numberOfPollingAttemptsByThread":{} }

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Field Summary

    Fields inherited from interface com.atlassian.jira.util.stats.ManagedStats

    STATS_NAME_REGEX
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    number of times snapshot creation was completed by retry condition being no longer met.
    void
    totalNumberOfCreationAttempts(int creationAttempts)
     
    void
    number of times snapshot creation was completed with error.
    void
    totalNumberOfPollingAttempts(int pollingAttempts)
     
    void
    number of times snapshot creation was completed with success.
    void
    totalWaitingTimeInSeconds(long waitingTimeInSeconds)
     

    Methods inherited from interface com.atlassian.jira.util.stats.ManagedStats

    addJiraStatsListener, close, getMinInterval, getStatsName, getTotalMeasuredOperationsForStatsOverheadInMillis, removeJiraStatsListener
  • Method Details

    • totalNumberOfCreationAttempts

      void totalNumberOfCreationAttempts(int creationAttempts)
      Parameters:
      creationAttempts - number of times snapshot creation was attempted.
    • totalNumberOfSuccessfulAttempts

      void totalNumberOfSuccessfulAttempts()
      number of times snapshot creation was completed with success.
    • totalNumberOfErrorAttempts

      void totalNumberOfErrorAttempts()
      number of times snapshot creation was completed with error.
    • totalNumberOfBlockedAttempts

      void totalNumberOfBlockedAttempts()
      number of times snapshot creation was completed by retry condition being no longer met.
    • totalNumberOfPollingAttempts

      void totalNumberOfPollingAttempts(int pollingAttempts)
      Parameters:
      pollingAttempts - number of times status of snapshot creation was polled to check if we can proceed with another creation attempt.
    • totalWaitingTimeInSeconds

      void totalWaitingTimeInSeconds(long waitingTimeInSeconds)
      Parameters:
      waitingTimeInSeconds - total time in seconds we were waiting for another process(es) to complete snapshot creation.