Interface StreamAttachmentStoreStats

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

public interface StreamAttachmentStoreStats extends com.atlassian.jira.util.stats.ManagedStats
Collects and prints stats related to an StreamAttachmentStore. See also: JiraStats
Since:
9.11
  • 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
    getAttachmentData(Duration ttfb, Duration executionTime, long contentLength, FileStoreAnalyticInfo fileStoreAnalyticInfo)
    Records a measurement about a call to streamAttachmentContent in AttachmentManager.

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

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

    • getAttachmentData

      void getAttachmentData(Duration ttfb, Duration executionTime, long contentLength, FileStoreAnalyticInfo fileStoreAnalyticInfo)
      Records a measurement about a call to streamAttachmentContent in AttachmentManager.
      Parameters:
      ttfb - a Duration representing the time to first byte
      executionTime - a Duration representing the time elapsed while executing the method (this includes ttfb)
      contentLength - size of the attachment in bytes
      fileStoreAnalyticInfo - a FileStoreAnalyticInfo representing the current file store configuration for attachments