Package oracle.jdbc.diagnostics
Class MetricsImpl
- java.lang.Object
-
- oracle.jdbc.diagnostics.Metrics
-
- oracle.jdbc.diagnostics.MetricsImpl
-
public class MetricsImpl extends Metrics
Metrics collected by the JDBC driver.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class oracle.jdbc.diagnostics.Metrics
Metrics.ConnectionEvent
-
-
Constructor Summary
Constructors Constructor Description MetricsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin(Metrics.ConnectionEvent event)
All begin and end calls are noop in this class because this class is instantiated when metrics capturing is disabled.void
begin(Metrics.ConnectionEvent event, int retryIdentifier)
Driver retries some events like 'Generate PK', 'SSL Renegotiation Receive', 'SSL Renegotiation RunTasks'.void
close()
The map events and metrics is added to the collection.void
end(Metrics.ConnectionEvent event)
void
end(Metrics.ConnectionEvent event, int retryIdentifier)
Driver retries some events like 'Generate PK', 'SSL Renegotiation Receive', 'SSL Renegotiation RunTasks'.
-
-
-
Method Detail
-
begin
public void begin(Metrics.ConnectionEvent event)
Description copied from class:Metrics
All begin and end calls are noop in this class because this class is instantiated when metrics capturing is disabled. The subclass of this is instantiated when metrics capturing is enabled. This is to avoid 'is capturing metrics enabled' checks in begin and end methods.
-
begin
public void begin(Metrics.ConnectionEvent event, int retryIdentifier)
Driver retries some events like 'Generate PK', 'SSL Renegotiation Receive', 'SSL Renegotiation RunTasks'. The begin and end calls put those retried events in the consolidated metric map with key as event name suffixed by retry identifier. E.g. 'Generate PK 1', 'SSL Renegotiation Receive 1'. For the cases where there is no retry, there won't be any suffix .
-
end
public void end(Metrics.ConnectionEvent event)
-
end
public void end(Metrics.ConnectionEvent event, int retryIdentifier)
Driver retries some events like 'Generate PK', 'SSL Renegotiation Receive', 'SSL Renegotiation RunTasks'. The begin and end calls put those retried events in the consolidated metric map with key as event name suffixed by retry identifier. E.g. 'Generate PK 1', 'SSL Renegotiation Receive 1'. For the cases where there is no retry, there won't be any suffix .
-
-