All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zaxxer.hikari.pool.PoolBase.class Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta2
Show newest version
????4?com/zaxxer/hikari/pool/PoolBasejava/lang/Object
PoolBase.java!com/zaxxer/hikari/pool/PoolBase$19com/zaxxer/hikari/pool/PoolBase$NopMetricsTrackerDelegateNopMetricsTrackerDelegate6com/zaxxer/hikari/pool/PoolBase$MetricsTrackerDelegateMetricsTrackerDelegate7com/zaxxer/hikari/pool/PoolBase$IMetricsTrackerDelegateIMetricsTrackerDelegate3com/zaxxer/hikari/pool/PoolBase$SynchronousExecutorSynchronousExecutor8com/zaxxer/hikari/pool/PoolBase$ConnectionSetupExceptionConnectionSetupException=com/zaxxer/hikari/pool/HikariPool$PoolInitializationException!com/zaxxer/hikari/pool/HikariPoolPoolInitializationException6com/zaxxer/hikari/util/UtilityElf$DefaultThreadFactory!com/zaxxer/hikari/util/UtilityElfDefaultThreadFactoryloggerLorg/slf4j/Logger;config Lcom/zaxxer/hikari/HikariConfig;metricsTracker9Lcom/zaxxer/hikari/pool/PoolBase$IMetricsTrackerDelegate;poolNameLjava/lang/String;cataloglastConnectionFailure-Ljava/util/concurrent/atomic/AtomicReference;DLjava/util/concurrent/atomic/AtomicReference;connectionTimeoutJvalidationTimeoutexceptionOverride(Lcom/zaxxer/hikari/SQLExceptionOverride;RESET_STATES[Ljava/lang/String;
UNINITIALIZEDI????TRUEFALSEnetworkTimeoutisNetworkTimeoutSupportedisQueryTimeoutSupporteddefaultTransactionIsolationtransactionIsolationnetTimeoutExecutorLjava/util/concurrent/Executor;
dataSourceLjavax/sql/DataSource;schema
isReadOnlyZisAutoCommitisUseJdbc4ValidationisIsolateInternalQueriesisValidChecked#(Lcom/zaxxer/hikari/HikariConfig;)V()VKM
Norg/slf4j/LoggerFactoryP	getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;RS
QT!"	V#$	X;5	Zcom/zaxxer/hikari/HikariConfig\
getCatalog()Ljava/lang/String;^_
]`)(	b	getSchemad_
]eD(	g()ZEi
]jEF	lGi
]nGF	pgetExceptionOverrideClassNamer_
]s&com/zaxxer/hikari/SQLExceptionOverrideucreateInstanceJ(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;wx
y01	{getTransactionIsolation}_
]~(Ljava/lang/String;)I}?
??5	?=5	?<5	?getConnectionTestQuery?_
]?HF	?Ii
]?IF	?getPoolName?_
]?'(	?getConnectionTimeout()J??
]?-.	?getValidationTimeout??
]?/.	?+java/util/concurrent/atomic/AtomicReference?
?N*+	?initializeDataSource?M
?this!Lcom/zaxxer/hikari/pool/PoolBase;toStringrecycle%(Lcom/zaxxer/hikari/pool/PoolEntry;)VquietlyCloseConnection*(Ljava/sql/Connection;Ljava/lang/String;)Vjava/sql/SQLException?java/lang/Exception?{} - Closing connection {}: {}?org/slf4j/Logger?debug((Ljava/lang/String;[Ljava/lang/Object;)V????java/util/concurrent/TimeUnit?SECONDSLjava/util/concurrent/TimeUnit;??	??toMillis(J)J??
??setNetworkTimeout(Ljava/sql/Connection;J)V??
?java/sql/Connection?close?M??java/lang/Throwable?!{} - Closing connection {} failed?eLjava/lang/Exception;
connectionLjava/sql/Connection;
closureReasonisConnectionAlive(Ljava/sql/Connection;)Z?java/lang/Math?max(JJ)J??
??isValid(I)Z????rollback?M??createStatement()Ljava/sql/Statement;????setQueryTimeout(Ljava/sql/Statement;I)V??
?java/sql/Statement?execute(Ljava/lang/String;)Z??????
addSuppressed(Ljava/lang/Throwable;)V??
??set(Ljava/lang/Object;)V?
?`{} - Failed to validate connection {} ({}). Possibly consider using a shorter maxLifetime value.
getMessage_
?warn??		statementLjava/sql/Statement;validationSecondsgetLastConnectionFailure()Ljava/lang/Exception;get()Ljava/lang/Object;
?getUnwrappedDataSource()Ljavax/sql/DataSource;BC	newPoolEntry$()Lcom/zaxxer/hikari/pool/PoolEntry; com/zaxxer/hikari/pool/PoolEntry
newConnection()Ljava/sql/Connection;
;(Ljava/sql/Connection;Lcom/zaxxer/hikari/pool/PoolBase;ZZ)VK 
!resetConnectionStateA(Ljava/sql/Connection;Lcom/zaxxer/hikari/pool/ProxyConnection;I)V&com/zaxxer/hikari/pool/ProxyConnection%getReadOnlyState'i
&(setReadOnly(Z)V*+?,getAutoCommitState.i
&/
setAutoCommit1+?2getTransactionIsolationState()I45
&6setTransactionIsolation(I)V89?:getCatalogState<_
&=java/lang/String?equals(Ljava/lang/Object;)ZAB
@C
setCatalog(Ljava/lang/String;)VEF?GgetNetworkTimeoutStateI5
&JgetSchemaStateL_
&M	setSchemaOF?PisDebugEnabledRi?S {} - Reset ({}) on connection {}UstringFromResetBits(I)Ljava/lang/String;WX
YproxyConnection(Lcom/zaxxer/hikari/pool/ProxyConnection;	dirtyBits	resetBitsshutdownNetworkTimeoutExecutor@A	`'java/util/concurrent/ThreadPoolExecutorbshutdownNow()Ljava/util/List;de
cfgetLoginTimeoutjavax/sql/DataSourceih5jk	toSecondso?
?pLjava/sql/SQLException;handleMBeans'(Lcom/zaxxer/hikari/pool/HikariPool;Z)VisRegisterMbeansui
]v&java/lang/management/ManagementFactoryxgetPlatformMBeanServer ()Ljavax/management/MBeanServer;z{
y|true~hikaricp.jmx.register2.0?java/lang/System?getProperty&(Ljava/lang/String;)Ljava/lang/String;??
??javax/management/ObjectName?java/lang/StringBuilder?
?N'com.zaxxer.hikari:type=PoolConfig,name=?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
???_
??KF
??!com.zaxxer.hikari:type=Pool,name=?javax/management/MBeanServer?#com.zaxxer.hikari:type=PoolConfig (?)?com.zaxxer.hikari:type=Pool (?isRegistered (Ljavax/management/ObjectName;)Z????
registerMBeanR(Ljava/lang/Object;Ljavax/management/ObjectName;)Ljavax/management/ObjectInstance;????){} - JMX name ({}) is already registered.?error9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V????unregisterMBean (Ljavax/management/ObjectName;)V????#{} - Failed to {} management beans.?register?[Ljava/lang/Object;?
unregister?beanConfigNameLjavax/management/ObjectName;beanPoolNamemBeanServerLjavax/management/MBeanServer;
hikariPool#Lcom/zaxxer/hikari/pool/HikariPool;javax/naming/NamingException?
getJdbcUrl?_
]?getUsername?_
]?getPassword?_
]?getDataSourceClassName?_
]?getDriverClassName?_
]?getDataSourceJNDI?_
]?getDataSourceProperties()Ljava/util/Properties;??
]?
getDataSource?
]?"com/zaxxer/hikari/util/PropertyElf?setTargetFromProperties+(Ljava/lang/Object;Ljava/util/Properties;)V??
??java/util/Properties?'com/zaxxer/hikari/util/DriverDataSource?a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/lang/String;Ljava/lang/String;)VK?
??javax/naming/InitialContext?
?Nlookup&(Ljava/lang/String;)Ljava/lang/Object;??
??K?
?setLoginTimeout(Ljavax/sql/DataSource;)V??
?createNetworkTimeoutExecutor=(Ljavax/sql/DataSource;Ljava/lang/String;Ljava/lang/String;)V??
?icLjavax/naming/InitialContext;Ljavax/naming/NamingException;jdbcUrlusernamepassworddsClassNamedriverClassNamedataSourceJNDIdataSourcePropertiesLjava/util/Properties;ds"com/zaxxer/hikari/util/ClockSourcecurrentTime	?

getConnectionj
;(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;j(java/sql/SQLTransientConnectionException%DataSource returned null unexpectedly
?setupConnection(Ljava/sql/Connection;)V
%&	
elapsedMillis?recordConnectionCreated(J)V !"#(Failed to create/setup connection)$??
&
(*{} - Failed to create/setup connection: {}*???,startgetAndSetNetworkTimeout(Ljava/sql/Connection;J)I/0
1?j
getAutoCommit4i?5checkDriverSupport7
8>5	:getConnectionInitSql<_
]=
executeSql+(Ljava/sql/Connection;Ljava/lang/String;Z)V?@
A
?JF	DcheckValidationSupportF
GcheckDefaultIsolationI
Jjava/lang/AbstractMethodErrorL4{} - Failed to execute{} connection test query ({}).N$ isValid() for connection, configurePR
????ULjava/lang/Throwable;}5?X?{} - Default transaction isolation level detection failed ({}).Z
???]getSQLState__
?`08b
startsWithd?
@e?9?g4{} - Failed to set query timeout for statement. ({})iinfok??l
timeoutSecgetNetworkTimeouto5?p#(Ljava/util/concurrent/Executor;I)V?r?sJ{} - Driver does not support get/set network timeout for connections. ({})up{} - A validationTimeout of less than 1 second cannot be honored on drivers without setNetworkTimeout() support.w'(Ljava/lang/String;Ljava/lang/Object;)Vy?z}{} - A validationTimeout with fractional second granularity cannot be honored on drivers without setNetworkTimeout() support.|originalTimeout	timeoutMscommit?M??sqlisCommitMysql?contains(Ljava/lang/CharSequence;)Z??
@?mysql?getClass()Ljava/lang/Class;??
?java/lang/Class?getName?_
??&(Lcom/zaxxer/hikari/pool/PoolBase$1;)VK?
?getThreadFactory&()Ljava/util/concurrent/ThreadFactory;??
]?"java/util/concurrent/ThreadFactory? network timeout executor?(Ljava/lang/String;Z)VK?
?java/util/concurrent/Executors?newCachedThreadPoolL(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;??
??setKeepAliveTime#(JLjava/util/concurrent/TimeUnit;)V??
c?allowCoreThreadTimeOut?+
c?
threadFactory$Ljava/util/concurrent/ThreadFactory;executor)Ljava/util/concurrent/ThreadPoolExecutor;???MILLISECONDS??	???(II)I??
???9j?6{} - Failed to set login timeout for data source. ({})?23	?, ?length?5
??	setLength?9
??ndxbitssbLjava/lang/StringBuilder;readOnly?
autoCommit?	isolation?)
netTimeout?D	Signature
ConstantValueCode
StackMapTableLineNumberTableLocalVariableTable
ExceptionsInnerClasses
SourceFile !"#$%&'(@)(*+?,-./.012345?675?895?:;5<5=5>5?5@ABCD(EFGFHFIFBJFKL?I?*?O*?U?W*+?Y*?[*+?a?c*+?f?h*+?k?m*+?o?q*+?tv??z?v?|*+?????*??*??*+??????*+????*+????*+????*+????*??Y????*????#?l]?]?R]7
^`ab'c/d7eKfVh[i`jpkxm?n?o?p?r?s?????#$?_?/*????y????????#q+?o*?W??Y*??SY+SY,S??*+??öȷ?+???N+???:+????"N*?W??Y*??SY+SY-S???"09?"0CCECNQ??y?I?
B??:??"?0?6?9?:?@?C?K?N?Q?R?p??*R??q??q??q?(???Z*+*?????*?????l=*???++??>*+*?[???*???*?q?	+???+??N*???	*-??-*?Y????W-?'-???:-?-???:???*+*?[???*???6*?q?/+???&:*+*?[???*???*?q?	+????M*??,?*?W?Y*??SY+SY,?S?
?Okx?~???(?H?????F??H????X?F???Z???????`??????A??r?	?? ?(?2?@?F?H?O?W?]?k?x?????????????????????????????4ODz
5?,???????5*????????????/*??????????Y*?**?m*?q?"????????#$??6~?,?)*?m?+*?m?-?6~?,?0*?q?+*?q?3?6~?,?7*???+*???;?6~?)*?c?"*?c,?>?D?+*?c?H?6~?,?K*?[?*+*?[????6 ~?)*?h?"*?h,?N?D?+*?h?Q ?6?3*?W?T?'*?WV?Y*??SY*?ZSY+S?????$  ,",4?Z????$?5???E?V?`?f???????????????????????4????[\]5^5??_M?Q*?a?c?*?a?c?gW????
?????h??|)*??*??l????m?q?L??m?q???	H@???
?r)??st?i8*?Y?w???}N????D?F??Y??Y?????*????????:??Y??Y?????*????????:?O??Y??Y?????*???????????:??Y??Y?????*???????????:??-???-*?Y??W-+??W?5*?W?*??*?????-???-??-???/N*?W??Y*??SY?	???SY-S?
???]
?U??K??(?B????@?????@???	?R
>a? ?"?#?$?%?'?*?+,1/072?\	>#??^??????????[??+??8??8??8?F?M??
?*?Y??L*?Y??M*?Y??N*?Y??:*?Y??:*?Y??:*?Y??:*?Y??:?#?j??z?j:??M+????Y+,-??:?1?,?'??Y??:		???j:?:	?Y	???*??*+??*???????+?j	@@@@@@?ja??b=>?@!A*B3C<EEFOG`HjJsK?M?O?P?S?Q?R?V?W?X?[?\?p???	?
??	?????(??(?(!?(*?(3?(<?E?C????@N*?Y??:*?Y??:?*???*??N-??Y??*-?*???-:*??*???#?:-?*-%?'?*?)?*?W+*????-*????:*??*???#?Vm?V?m???^	?)?@@L??#?????????????^egijl7m;nFqKrSsV?]?jsmuovsw~y?z?}?~???????>^?(U(o7??????..??????V?*?[?**+*???2?[?*+*????+?3*?m?
+*?m?-+?6*?q?
+*?q?3*+?9*??*?;?
+*???;*?c?
+*?c?H*?h?
+*?h?Q*+*?Y?>?B*+*?[??̧
M?Y,?C??????	Y?	?R???!?.?8?E?O?T?_?i?p?z???????????????? ?	?r???????7?d*?E?*+?H*+?K*?E???????????????F?W*???+??W?*+*?Y???B?7M*?WO?Y*??SY*???	Q?SSY,?TS?V,??"?"M?HB??!???@??????@????"????"?#?T?V?? #3?WW??W????I??I*+?Y?;*???**?;???.M*?W[*??,?\?^,?a?,?ac?f?,????B?*?&	?
?????2?F?H?? *?rI??I????????9*???4+?h*???%N*???*??*?Wj*??-??m???V?!?&	????$8?*!??9??99n5/0?7?*????+?q6+*?a ??t*???:*???`*??*?Wv*???T?m*????
?Ȕ?*?Wx*???{?$*????
??q	??*?W}*???{?"#?"#M?c??E?? ?: #%-2GVi!z"?(?4~5%e?W???????.???d*???+*?a ??t???568? ????.???@?(c,?a+??:,??W?*??? :????:???*???*?q??+???	+???$?+25??9?$?@????@?????*
DEGH$EAJOKSL\ObS?45c??c??c?(c?F?????2?,?
,????%-?
-????+?"+????????*?Y???a?X*?Y??:??"?Y??Y??*???????????:???c:ò¶???*?a??
??^??"?.XY!Z0[?^H_s`}a?b?c?e?>HL??}??????BC?(??(????=*?????4+???*??a?q??????M*?W?*??,??m?$'??g??np$t'r(s<v? (??=??=BCWX?????Y??M>?ľ?!x~?,??2??ƶ?W????,,??d??,????
?
???????*?0?:??*
&?5?????57???M?E-?@Y?SY?SY?SY?SY?SY?S?ı?F?B	


	 ?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy