Package com.atlassian.jira.index.ha
Class IndexSnapshotOperatorStats.Data
java.lang.Object
com.atlassian.jira.index.ha.IndexSnapshotOperatorStats.Data
- All Implemented Interfaces:
IndexSnapshotOperatorStats
,com.atlassian.jira.util.stats.ManagedStats
,Closeable
,AutoCloseable
- Enclosing interface:
- IndexSnapshotOperatorStats
public static class IndexSnapshotOperatorStats.Data
extends Object
implements IndexSnapshotOperatorStats
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.index.ha.IndexSnapshotOperatorStats
IndexSnapshotOperatorStats.Data
-
Field Summary
Fields inherited from interface com.atlassian.jira.util.stats.ManagedStats
STATS_NAME_REGEX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.util.stats.ManagedStats
addJiraStatsListener, close, getMinInterval, getTotalMeasuredOperationsForStatsOverheadInMillis, removeJiraStatsListener
-
Constructor Details
-
Data
public Data()
-
-
Method Details
-
totalNumberOfCreationAttempts
public void totalNumberOfCreationAttempts(int creationAttempts) - Specified by:
totalNumberOfCreationAttempts
in interfaceIndexSnapshotOperatorStats
- Parameters:
creationAttempts
- number of times snapshot creation was attempted.
-
totalNumberOfSuccessfulAttempts
public void totalNumberOfSuccessfulAttempts()Description copied from interface:IndexSnapshotOperatorStats
number of times snapshot creation was completed with success.- Specified by:
totalNumberOfSuccessfulAttempts
in interfaceIndexSnapshotOperatorStats
-
totalNumberOfErrorAttempts
public void totalNumberOfErrorAttempts()Description copied from interface:IndexSnapshotOperatorStats
number of times snapshot creation was completed with error.- Specified by:
totalNumberOfErrorAttempts
in interfaceIndexSnapshotOperatorStats
-
totalNumberOfBlockedAttempts
public void totalNumberOfBlockedAttempts()Description copied from interface:IndexSnapshotOperatorStats
number of times snapshot creation was completed by retry condition being no longer met.- Specified by:
totalNumberOfBlockedAttempts
in interfaceIndexSnapshotOperatorStats
-
totalNumberOfPollingAttempts
public void totalNumberOfPollingAttempts(int pollingAttempts) - Specified by:
totalNumberOfPollingAttempts
in interfaceIndexSnapshotOperatorStats
- Parameters:
pollingAttempts
- number of times status of snapshot creation was polled to check if we can proceed with another creation attempt.
-
totalWaitingTimeInSeconds
public void totalWaitingTimeInSeconds(long waitingTimeInSeconds) - Specified by:
totalWaitingTimeInSeconds
in interfaceIndexSnapshotOperatorStats
- Parameters:
waitingTimeInSeconds
- total time in seconds we were waiting for another process(es) to complete snapshot creation.
-
getStatsName
- Specified by:
getStatsName
in interfacecom.atlassian.jira.util.stats.ManagedStats
-
getSimplifiedThreadNameForStats
-