Package oracle.jdbc.replay
Interface ReplayStatistics
- 
 public interface ReplayStatisticsVarious runtime statistics about Application Continuity (AC), such as how many JDBC calls are affected by outages, how many replay attempts are made, how many replay succeed, etc. This interface provides query-only operations on all available AC statistics.The statistics can be collected on a single connection, or across multiple connections. The specific case is determined at the time of the call that produces the ReplayStatistics object. The getReplayStatisticsmethod onReplayableConnectionis the API to obtain aReplayStatisticsobject. There is an auxiliary method onOracleDataSourceas well.- See Also:
- OracleDataSource,- ReplayableConnection
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCurrentRequestSize()Obtains the size of the current request, in terms of the number of JDBC calls.longgetFailedReplayCount()Obtains the number of replays that failed.longgetReplayDisablingCount()Obtains the number of times that replay is disabled.int[]getRequestSizeHistogram()Obtains a histogram of request sizes, in terms of the number of JDBC calls in each request.longgetSuccessfulReplayCount()Obtains the number of replays that succeeded.longgetTotalCalls()Obtains the total number of JDBC calls executed so far.longgetTotalCallsAffectedByOutages()Obtains the number of JDBC calls affected by outages.longgetTotalCallsAffectedByOutagesDuringReplay()Obtains the number of JDBC calls affected by outages in the middle of replay.longgetTotalCallsTriggeringReplay()Obtains the number of JDBC calls that triggered replay.longgetTotalCompletedRequests()Obtains the total number of completed requests so far.longgetTotalProtectedCalls()Obtains the total number of JDBC calls executed so far that are protected by AC.longgetTotalReplayAttempts()Obtains the number of replay attempts.longgetTotalRequests()Obtains the total number of successfully submitted requests so far.
 
- 
- 
- 
Method Detail- 
getTotalRequestslong getTotalRequests() Obtains the total number of successfully submitted requests so far.- Returns:
- The number of successfully submitted requests.
 
 - 
getTotalCompletedRequestslong getTotalCompletedRequests() Obtains the total number of completed requests so far.- Returns:
- The number of completed requests.
 
 - 
getTotalCallslong getTotalCalls() Obtains the total number of JDBC calls executed so far.- Returns:
- The number of JDBC calls.
 
 - 
getTotalProtectedCallslong getTotalProtectedCalls() Obtains the total number of JDBC calls executed so far that are protected by AC.- Returns:
- The number of JDBC calls protected by AC.
 
 - 
getTotalCallsAffectedByOutageslong getTotalCallsAffectedByOutages() Obtains the number of JDBC calls affected by outages. This includes both local calls and calls that involve roundtrip(s) to the database server.- Returns:
- The number of JDBC calls affected by outages.
 
 - 
getTotalCallsTriggeringReplaylong getTotalCallsTriggeringReplay() Obtains the number of JDBC calls that triggered replay. Not all the calls affected by an outage trigger replay, because replay can be disabled for some requests.- Returns:
- The number of JDBC calls that triggered replay.
 
 - 
getTotalCallsAffectedByOutagesDuringReplaylong getTotalCallsAffectedByOutagesDuringReplay() Obtains the number of JDBC calls affected by outages in the middle of replay. Outages may be cascaded and strike a call multiple times when replay is ongoing. AC automatically reattempts replay when this happens, unless it reaches the maximum retry limit.- Returns:
- The number of JDBC calls affected by outages during replay.
 
 - 
getSuccessfulReplayCountlong getSuccessfulReplayCount() Obtains the number of replays that succeeded. Successful replays mask the outages from applications.- Returns:
- The number of successful replays.
 
 - 
getFailedReplayCountlong getFailedReplayCount() Obtains the number of replays that failed. When replay fails, it rethrows the original SQLRecoverableException to the application, with the reason for the failure chained to that original exception. Application can callgetNextExceptionto retrieve the reason.- Returns:
- The number of successful replays.
 
 - 
getReplayDisablingCountlong getReplayDisablingCount() Obtains the number of times that replay is disabled. When replay is disabled in the middle of a request, the remaining calls in that request are no longer protected by AC. In case an outage strikes one of those remaining calls, no replay will be attempted, and application simply gets an SQLRecoverableException.- Returns:
- The number of times that replay is disabled.
 
 - 
getTotalReplayAttemptslong getTotalReplayAttempts() Obtains the number of replay attempts. AC automatically reattempts when replay fails, so this number may exceed the number of JDBC calls that triggered replay.- Returns:
- The number of replay attempts.
 
 - 
getCurrentRequestSizeint getCurrentRequestSize() Obtains the size of the current request, in terms of the number of JDBC calls.- Returns:
- The size of the current request. 0 if called outside any open request.
 
 - 
getRequestSizeHistogramint[] getRequestSizeHistogram() Obtains a histogram of request sizes, in terms of the number of JDBC calls in each request. The histogram is returned as an integer array. The element at index-i represents the number of request sizes between2^iand2^(i+1)-1, where i ranges from 0 to array length - 1.- Returns:
- The histogram array.
 
 
- 
 
-