org.postgresql.Driver.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of huaweicloud-dws-jdbc Show documentation
Show all versions of huaweicloud-dws-jdbc Show documentation
Data Warehouse Service JDBC driver
???? 4? 4m
4n 4o 4p 4q
4r
9s 4tu
v
wxyz
{|
s }~
??
}??
9?
?? ???
??
?? ????
???
s?
??????
?
?
???
)?
?
???
.??
B????
4????
?? ??
7?
?
????????
??
Ds?
D?
D?
7?
?
B?
4? 4?
?? 4?
E?
??
G?
4? }?
}??
B?
4???
4??
\???
^?
^?
^?
\??
???????
4??
B?
B??
B?
??
????? t? t?
B?
B?
4?????? |????? |??
?s?
B???????
?? }?
}? }?
??
?
4
4
?
4
?
}
}
B
B
??
B
D
D
?
D t? t?
B?
D !
?"#
?s$
?%& ?'(
?)
)*
??
?+ ?,-./0
??
?1
23
?45 ?6789:;<
??
4=
>?
?
9?@BABCDEFGHIJ
)? +KLM
??
)N,O
)?P
BQ,R,S
TUV
?W-X
4Y,Z[\
.]^_`ab
cde
s
fg
fh
fijk
s
l
mn
op
oq 4r
st/uvw
4x
s?yz
?
.{|}~
?
??
???
"?
? }?
??Dz ?
?? ???
??? ??
??
,W 4?
4???
5?
4s
?? 4??
???Y?
??
???
????
Es?
G?
4??
J?
ConnectThread InnerClasses registeredDriver Lorg/postgresql/Driver;
PARENT_LOGGER Ljava/util/logging/Logger; LOGGER SHARED_TIMER !Lorg/postgresql/util/SharedTimer; DEFAULT_PORT Ljava/lang/String;
ConstantValue client BLcom/huawei/shade/org/apache/http/impl/client/CloseableHttpClient; gsVersion SERVERLESS_QUERY queryCnListConnection Ljava/sql/Connection; connnectUrl
timerIsCalled +Ljava/util/concurrent/atomic/AtomicBoolean; task Ljava/util/TimerTask; defaultProperties Ljava/util/Properties; ()V Code LineNumberTable LocalVariableTable this getDefaultProperties ()Ljava/util/Properties; e )Ljava/security/PrivilegedActionException;
StackMapTable
Exceptions loadDefaultProperties url Ljava/net/URL; is Ljava/io/InputStream; i I merged cl Ljava/lang/ClassLoader; urls Ljava/util/ArrayList; urlEnum Ljava/util/Enumeration; LocalVariableTypeTable %Ljava/util/ArrayList; 'Ljava/util/Enumeration;?? connect ?(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection; defaults ioe Ljava/io/IOException; propValue propName Ljava/util/Set; timeout J ct %Lorg/postgresql/Driver$ConnectThread; thread Ljava/lang/Thread; ex1 #Lorg/postgresql/util/PSQLException; ace &Ljava/security/AccessControlException; ex2 Ljava/lang/Exception; info props isChange Z autoRecongnationCnsSwitch #Ljava/util/Set;?? checkUrlChange '(Ljava/lang/String;Ljava/lang/String;)Z newUrlIp entry Entry Ljava/util/Map$Entry; cacheUrl cacheUrlStr urlStr
cacheUrlIp Ljava/util/List; urlIp cacheUrlDatabase urlDatabase cacheUrlMap Ljava/util/Map; urlMap ;Ljava/util/Map$Entry; $Ljava/util/List; 5Ljava/util/Map;?
parseValue #(Ljava/lang/String;)Ljava/util/Map; configs [Ljava/lang/String; value urlArgs l_qPos values map? Signature I(Ljava/lang/String;)Ljava/util/Map; parseUrl &(Ljava/lang/String;)Ljava/lang/String; urlServer getUrlIpInfo $(Ljava/lang/String;)Ljava/util/List; ips
clusterUrl curUrl 8(Ljava/lang/String;)Ljava/util/List; regularQueryCnIpPort (Ljava/util/Properties;)V delay period setupLoggerFromProperties makeConnection
acceptsURL (Ljava/lang/String;)Z getPropertyInfo H(Ljava/lang/String;Ljava/util/Properties;)[Ljava/sql/DriverPropertyInfo; copy parse knownProperties [Lorg/postgresql/PGProperty; [Ljava/sql/DriverPropertyInfo;?? getMajorVersion ()I getMinorVersion
getVersion ()Ljava/lang/String;
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated;
jdbcCompliant ()Z parseURL @(Ljava/lang/String;Ljava/util/Properties;)Ljava/util/Properties; port ignore !Ljava/lang/NumberFormatException; portStr portIdx address temp slash addresses hosts Ljava/lang/StringBuilder; ports portArray hostArray hostList l_pos token args serverurl
clusterurl f Ljava/io/File; filePath e1 jsonObj 2Lcom/huawei/shade/com/alibaba/fastjson/JSONObject; tmp Ljava/lang/StringBuffer; ClusterIdentifier region DbUser
AutoCreate AccessKeyID SecretAccessKey jdbcUrl in
domainName jsonstr urlProps?? getReturn \(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; key p parameterarray
parametersmap
httpMethod 4Lcom/huawei/shade/com/cloud/sdk/http/HttpMethodName; request (Lcom/huawei/shade/com/cloud/sdk/Request; urlString
parameters signer 3Lcom/huawei/shade/com/cloud/sdk/auth/signer/Signer; httpRequestBase ALcom/huawei/shade/org/apache/http/client/methods/HttpRequestBase; requestHeaders response /Lcom/huawei/shade/org/apache/http/HttpResponse;
sslContext Ljavax/net/ssl/SSLContext; sslSocketFactory FLcom/huawei/shade/org/apache/http/conn/ssl/SSLConnectionSocketFactory; ak sk
requestUrl???????
createRequest z(Ljava/net/URL;Lcom/huawei/shade/org/apache/http/Header;)Lcom/huawei/shade/org/apache/http/client/methods/HttpRequestBase; header )Lcom/huawei/shade/org/apache/http/Header; httpRequest convertStreamToString )(Ljava/io/InputStream;)Ljava/lang/String; ioEX reader Ljava/io/BufferedReader; sb line hostSpecs 7(Ljava/util/Properties;)[Lorg/postgresql/util/HostSpec; [Lorg/postgresql/util/HostSpec;@ user *(Ljava/util/Properties;)Ljava/lang/String; database (Ljava/util/Properties;)J notImplemented O(Ljava/lang/Class;Ljava/lang/String;)Ljava/sql/SQLFeatureNotSupportedException; callClass Ljava/lang/Class; functionName Ljava/lang/Class<*>; R(Ljava/lang/Class<*>;Ljava/lang/String;)Ljava/sql/SQLFeatureNotSupportedException; getParentLogger ()Ljava/util/logging/Logger; getSharedTimer #()Lorg/postgresql/util/SharedTimer; getTimerIsCalled -()Ljava/util/concurrent/atomic/AtomicBoolean; getTimerTask ()Ljava/util/TimerTask; register
deregister isRegistered getGSVersion connectionExtraInfo (Ljava/util/Properties;)Z prop
access$000 /(Lorg/postgresql/Driver;)Ljava/util/Properties; x0
access$100 ()Ljava/sql/Connection;
access$200
access$102 ,(Ljava/sql/Connection;)Ljava/sql/Connection;
access$300
access$400 x1
access$302
access$500 Ljava/sql/SQLException;
SourceFile Driver.javaSR??_W`a]^rmfgde org/postgresql/Driver$1f???? java/util/Properties 'java/security/PrivilegedActionException?? java/io/IOException??? user.name????? java/lang/SecurityException???????? QCan't find our classloader for the Driver; attempt to use the system class loader??????? uCan't find a classloader for the Driver; not loading driver configuration from org/postgresql/driverconfig.properties 0Loading driver configuration via classloader {0}?? java/util/ArrayList &org/postgresql/driverconfig.properties???????????? java/net/URL &Loading driver configuration from: {0}?????g java/sql/SQLException url is nullf? jdbc:postgresql:??
jdbc:dws:iam: org/postgresql/Driver jdbc:dws:serverless:lm !org/postgresql/util/PSQLException ;Error loading default settings from driverconfig.properties java/lang/Object??????f?f????????? java/lang/String java/lang/StringBuilder BProperties for the driver contains a non-string value for the key ????f???????bc???TU????????????C on ??? off Connecting with URL: {0}?E #org/postgresql/Driver$ConnectThreadf java/lang/Thread (PostgreSQL JDBC driver connection threadf?g Connection error: ? $java/security/AccessControlException ?Your security policy has prevented the connection from being attempted. You probably need to grant the connect java.net.SocketPermission to the database server host and port that you wish to connect to. java/lang/Exception Unexpected connection error: YSomething unusual has occurred to cause the driver to fail. Please report this exception.?? /
,
java/util/List?
???? java/util/Map$Entry???? java/util/HashMap & = ! // org/postgresql/Driver$2"?#$%?&' java/lang/RuntimeExceptionf( (org/postgresql/jdbc/PayByQueryConnection>?DCf) org/postgresql/jdbc/PgConnectionBCf*?+ java/sql/DriverPropertyInfo,- org/postgresql/util/DriverInfo PostgreSQL JDBC Driver 42.2.23 KJDBC URL must start with "jdbc:postgresql:" or "jdbc:dws:iam:" but was: {0}.? =JDBC URL must contain a / at the end of the host or port: {0} PGDBNAME/0?123 'JDBC URL port: {0} not valid (1:65535) java/lang/NumberFormatException !JDBC URL invalid port number: {0}45?6 5431?789:; PGPORT PGHOST localhost java/lang/StringBuffer :?< BPlease confirm that all the parameters needed is added to the url.=? java/io/File>?@?A?BW config jdbcconfig.properties java/io/BufferedInputStream java/io/FileInputStreamf?C? %/org/postgresql/jdbcconfig.propertiesDE #Parse jdbcconfig.properties failed.F? Unrecognized region name. https://
/credentials? clusterName= &dbUser= &autoCreate=GH cluster_credentials db_user db_endpoint db_port db_password password externalMessage 'The format of Token is not as expected. Parse the token failed. ssl sslmode requireI -com/huawei/shade/com/cloud/sdk/DefaultRequest dwsJKLM ?NOPQRSTU @com/huawei/shade/com/cloud/sdk/auth/credentials/BasicCredentialsfVWX23YZ ,com/huawei/shade/org/apache/http/HttpHeaders Content-Length[V
X-Language en-us Content-Type application/json Accept\]^ Acom/huawei/shade/org/apache/http/conn/ssl/TrustSelfSignedStrategy_`ab^cd Dcom/huawei/shade/org/apache/http/conn/ssl/SSLConnectionSocketFactory Bcom/huawei/shade/org/apache/http/conn/ssl/AllowAllHostnameVerifierfef]ghijckYZlmnopqr?78 Get the token failed. 7com/huawei/shade/org/apache/http/client/methods/HttpGet[s java/io/BufferedReader java/io/InputStreamReader UTF-8ftfuv?
wx org/postgresql/util/HostSpecfy?z{?|}~ &Couldn't parse loginTimeout value: {0}?? (java/sql/SQLFeatureNotSupportedException "Method {0} is not yet implemented.?? .????QRW? java/lang/IllegalStateException =Driver is already registered. It can only be registered once.??OP WDriver is not registered (or it has not been registered using Driver.register() method)?? `(GaussDB 9.1.0 build 623bb560) compiled at 2024-10-28 22:59:55 commit 8865 last mr 22322 release false????? org.postgresql?? org.postgresql.Driver org/postgresql/util/SharedTimer )java/util/concurrent/atomic/AtomicBooleanf?Ug %java/lang/ExceptionInInitializerError java/sql/Driver java/lang/ClassLoader java/util/Enumeration
java/util/Set java/util/Iterator
java/util/Map java/io/InputStream 0com/huawei/shade/com/alibaba/fastjson/JSONObject 2com/huawei/shade/com/cloud/sdk/http/HttpMethodName &com/huawei/shade/com/cloud/sdk/Request 1com/huawei/shade/com/cloud/sdk/auth/signer/Signer ?com/huawei/shade/org/apache/http/client/methods/HttpRequestBase -com/huawei/shade/org/apache/http/HttpResponse javax/net/ssl/SSLContext java/lang/Throwable (Lorg/postgresql/Driver;)V java/security/AccessController doPrivileged =(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object; getException ()Ljava/lang/Exception; org/postgresql/PGProperty USER Lorg/postgresql/PGProperty; java/lang/System getProperty set +(Ljava/util/Properties;Ljava/lang/String;)V getClass ()Ljava/lang/Class; java/lang/Class getClassLoader ()Ljava/lang/ClassLoader; java/util/logging/Level FINE Ljava/util/logging/Level; java/util/logging/Logger log .(Ljava/util/logging/Level;Ljava/lang/String;)V getSystemClassLoader WARNING @(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V getResources +(Ljava/lang/String;)Ljava/util/Enumeration; hasMoreElements nextElement ()Ljava/lang/Object; add (Ljava/lang/Object;)Z size get (I)Ljava/lang/Object;
openStream ()Ljava/io/InputStream; load (Ljava/io/InputStream;)V close (Ljava/lang/String;)V
startsWith org/postgresql/util/GT tr 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; org/postgresql/util/PSQLState UNEXPECTED_ERROR Lorg/postgresql/util/PSQLState; I(Ljava/lang/String;Lorg/postgresql/util/PSQLState;Ljava/lang/Throwable;)V stringPropertyNames ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext next append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString 4(Ljava/lang/String;Lorg/postgresql/util/PSQLState;)V setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; isEmpty java/util/TimerTask cancel getTimer ()Ljava/util/Timer; java/util/Timer purge (Z)V CN_LIST_REFRESH_SWITCH equalsIgnoreCase +(Ljava/lang/String;Ljava/util/Properties;)V )(Ljava/lang/Runnable;Ljava/lang/String;)V setDaemon start getResult (J)Ljava/sql/Connection; C(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V indexOf (Ljava/lang/String;)I substring (II)Ljava/lang/String; split '(Ljava/lang/String;)[Ljava/lang/String; java/util/Arrays stream .([Ljava/lang/Object;)Ljava/util/stream/Stream; java/util/stream/Collectors toList ()Ljava/util/stream/Collector; java/util/stream/Stream collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; contains (I)Ljava/lang/String; equals entrySet getKey containsKey &(Ljava/lang/Object;)Ljava/lang/Object; getValue (I)I put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; CN_LIST_REFRESH_DELAY getInt (Ljava/util/Properties;)I CN_LIST_REFRESH_PERIOD schedule (Ljava/util/TimerTask;JJ)V (Ljava/lang/Throwable;)V [(Lorg/postgresql/util/HostSpec;Ljava/lang/String;Ljava/util/Properties;Ljava/lang/String;)V n([Lorg/postgresql/util/HostSpec;Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/lang/String;)V ()[Lorg/postgresql/PGProperty; toDriverPropertyInfo 5(Ljava/util/Properties;)Ljava/sql/DriverPropertyInfo; length org/postgresql/util/URLCoder decode lastIndexOf java/lang/Integer parseInt subSequence (II)Ljava/lang/CharSequence; 3(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; asList %([Ljava/lang/Object;)Ljava/util/List; setLength (I)V ,(Ljava/lang/String;)Ljava/lang/StringBuffer; CONNECTION_REJECTED getResource "(Ljava/lang/String;)Ljava/net/URL; getPath getParent separator
getMessage getResourceAsStream )(Ljava/lang/String;)Ljava/io/InputStream; CONNECTION_UNABLE_TO_CONNECT parseObject F(Ljava/lang/String;)Lcom/huawei/shade/com/alibaba/fastjson/JSONObject; GET toURI ()Ljava/net/URI; setEndpoint (Ljava/net/URI;)V (Ljava/lang/CharSequence;)Z
setParameters (Ljava/util/Map;)V
setHttpMethod 7(Lcom/huawei/shade/com/cloud/sdk/http/HttpMethodName;)V 8com/huawei/shade/com/cloud/sdk/auth/signer/SignerFactory getSigner Y(Ljava/lang/String;Ljava/lang/String;)Lcom/huawei/shade/com/cloud/sdk/auth/signer/Signer; '(Ljava/lang/String;Ljava/lang/String;)V sign h(Lcom/huawei/shade/com/cloud/sdk/Request;Lcom/huawei/shade/com/cloud/sdk/auth/credentials/Credentials;)V
getHeaders ()Ljava/util/Map; addHeader 5com/huawei/shade/org/apache/http/conn/ssl/SSLContexts custom ?()Lcom/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilder; ;com/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilder loadTrustMaterial ?(Ljava/security/KeyStore;Lcom/huawei/shade/org/apache/http/conn/ssl/TrustStrategy;)Lcom/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilder; useTLS build ()Ljavax/net/ssl/SSLContext; ](Ljavax/net/ssl/SSLContext;Lcom/huawei/shade/org/apache/http/conn/ssl/X509HostnameVerifier;)V 8com/huawei/shade/org/apache/http/impl/client/HttpClients B()Lcom/huawei/shade/org/apache/http/impl/client/HttpClientBuilder; >com/huawei/shade/org/apache/http/impl/client/HttpClientBuilder setSSLSocketFactory ?(Lcom/huawei/shade/org/apache/http/conn/socket/LayeredConnectionSocketFactory;)Lcom/huawei/shade/org/apache/http/impl/client/HttpClientBuilder; D()Lcom/huawei/shade/org/apache/http/impl/client/CloseableHttpClient; @com/huawei/shade/org/apache/http/impl/client/CloseableHttpClient execute ?(Lcom/huawei/shade/org/apache/http/client/methods/HttpUriRequest;)Lcom/huawei/shade/org/apache/http/client/methods/CloseableHttpResponse; getEntity /()Lcom/huawei/shade/org/apache/http/HttpEntity; +com/huawei/shade/org/apache/http/HttpEntity
getContent ,(Lcom/huawei/shade/org/apache/http/Header;)V *(Ljava/io/InputStream;Ljava/lang/String;)V (Ljava/io/Reader;)V readLine %org/postgresql/util/internal/Nullness castNonNull (Ljava/lang/String;I)V 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
LOGIN_TIMEOUT java/lang/Float
parseFloat (Ljava/lang/String;)F java/sql/DriverManager getLoginTimeout getName NOT_IMPLEMENTED getState registerDriver (Ljava/sql/Driver;)V deregisterDriver java/lang/Boolean valueOf '(Ljava/lang/String;)Ljava/lang/Boolean; booleanValue getLogger .(Ljava/lang/String;)Ljava/util/logging/Logger; ! 4 9 L
OP QR SR TU VW X ?
YZ [W X = \W X 5
]^
_W
`a
bc de , fg h / *? ? i nj kP "lm h ? /*? ? *? ?*? Y*?
? ? ? ? L+? ? ?*? ? !
i " ? ? ? ? ? ! ? " ? * ?j " no /kP p T
q rm h ? ?? Y? L? +? ? ? M*? ? M,? ? ? ? ? M,? ? ? ? +?? ? ,? ? Y? !N,"? #:? $ ? -? % ? &W???-? 'd6? 3-? (? ):? ? *? ? +:+? ,? -?????+? i b ? ? ? ? ? ? $ ? / ? 3 ? 7 ? B ? D ? P ? X ? ` ? j ? y ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?j R ? st ? uv ? 5wx ?kP ?ye ?z{ X `|} ` X~ ? X `|? ` X~? p + ? 4 ? ?? ?? ? 4q ?? h G ?+?
? .Y/? 0?+1? 2? +3? 2? +5? 2? ?*? 6N? :? 7Y8? 9? :? ;? ? Y-? =:,? h,? >:? ? :? @ ? O? A ? B:,? C:? )? 7Y? DY? EF? 9? :? G? G? H? ;? I?? JW???? ? K? +? *? +? L6? (+? ? M? %? M? NW? O? P? QW? ? R?
? ? R? ? SY:? ?? T? U:V? W? ? XY? W? +? ? ? Z? ? ? [7 ?? ? ? ?? \Y? ? ]: ? ^Y _? `:
? a
? b ? c?:? ? d? e?:? 7Yg? 9? :? ;? ?? p ?? } ??
? ?? ? ?? ? #?? ?kP ?sW ??e K??e U??e ?
?? ??W ? _ _n? p p G ? ? ??? H B B? 4 B ? 3? B
? $? - 4 B B 7Q fW hq . ?? h ?
:+1? 2? ,1? 2? ?*+? kN*,? k:--l? m? no? p? q? r? s ? t:l? m? no? p? q? r? s ? t:? u :? @ ? ? A ? B:? v ? ????--l? m`? w:l? m`? w:? x? ?*+? y: *,? y:
? z ? z ? ?
? { ? ? :? @ ? E? A ? |: ? } ? ~ ? ? ? } ? ? B? ? ? x? ????? i f y z | } ! A? c? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?????3?5?8?j ?
? ?W 3?? :kP :?W :sW ?W !?W A ??? c ??? ? ??W ? ??W ? v?? ? o??
? 4 3?? A ??? c ??? ? v?? ? o??
p K ? W 4 B B B B t t? #? ? ) B B? ???
?? ( |? ? ?? h ? ? ?Y? ?M+1? 2? o?N+?? ?6? +`? wN-?? p::?66? :2: ? K? ? " ?? p:
?? ,
2
2? ? W????,? i > ? ? ? ? ? "? +? 3? M? U? X? a? h? w? }?j R a ??
M *?W i?W a?x 3 J?? kP sW w?? ? w?? p A ? +? B? 4 B? B?? ? B? ? 4 B? ? ? ?? h ? 0+1? 2? '+M+?? ?>?
+? nM,,?? m`? wM,??? i " ? ? ? ? ? ? +? -?j * "?W ?x 0kP 0sW p ? B? ?? h ? J+? K? ? Y? !?+?? pM,?? ),2l? pN-?? -2o? p? q? r? s ? t?? Y? !? i " ? ? ? ? ? %? +? B?j * % ?? JkP J?W 4?? p ? 2?? ?
?? h ? 9? ?Y*? ?? M? ?*? ?