Package io.trino.plugin.jdbc.jmx
Class StatisticsAwareConnectionFactory
- java.lang.Object
-
- io.trino.plugin.jdbc.jmx.StatisticsAwareConnectionFactory
-
- All Implemented Interfaces:
ConnectionFactory,AutoCloseable
public class StatisticsAwareConnectionFactory extends Object implements ConnectionFactory
-
-
Constructor Summary
Constructors Constructor Description StatisticsAwareConnectionFactory(ConnectionFactory delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()JdbcApiStatsgetCloseConnection()JdbcApiStatsgetOpenConnection()ConnectionopenConnection(ConnectorSession session)
-
-
-
Constructor Detail
-
StatisticsAwareConnectionFactory
public StatisticsAwareConnectionFactory(ConnectionFactory delegate)
-
-
Method Detail
-
openConnection
public Connection openConnection(ConnectorSession session) throws SQLException
- Specified by:
openConnectionin interfaceConnectionFactory- Throws:
SQLException
-
close
public void close() throws SQLException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnectionFactory- Throws:
SQLException
-
getOpenConnection
public JdbcApiStats getOpenConnection()
-
getCloseConnection
public JdbcApiStats getCloseConnection()
-
-