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

com.huawei.gauss200.jdbc.util.ServerlessRestClient.class Maven / Gradle / Ivy

The newest version!
????4
??	??
??	?	?	?	?
		

	
^
?

	?
-

?



?


 !
 "	-#
$%?&'(?)*+
-,-.??/01
23
456		7
$89:
4;
	<=	?>?
@??
^A?	?B	?CD
FEFG
HE
FH?I?J
^KL
OM?N
OPQ
SR?S
-T?U?VWX?Y?Z[\\]^_
^
^`\a
?bcdefgh
ij
kl
km
?n
?Ao
F
pEp
sE
pq
prs
wE
wrtuv
{w
zxy
?
zz
{|

}8clientBLcom/huawei/shade/org/apache/http/impl/client/CloseableHttpClient;	ERROR_MSGLjava/lang/String;
ConstantValueTRACE_ID	AVAILABLEACTIVE()VCodeLineNumberTableLocalVariableTablethis4Lcom/huawei/gauss200/jdbc/util/ServerlessRestClient;startServerless(Ljava/util/Properties;)VjsonBody2Lcom/huawei/shade/com/alibaba/fastjson/JSONObject;traceIds*[Lcom/huawei/shade/org/apache/http/Header;errorMsgreqPathendpoint	projectId	clusterIdaksk
jsonObjectstringParamhttpRequestBaseALcom/huawei/shade/org/apache/http/client/methods/HttpRequestBase;
sslContextLjavax/net/ssl/SSLContext;sslSocketFactoryFLcom/huawei/shade/org/apache/http/conn/ssl/SSLConnectionSocketFactory;response/Lcom/huawei/shade/org/apache/http/HttpResponse;
statusCodeIresponseBodyeLjava/lang/Exception;infoLjava/util/Properties;traceId
StackMapTable~????
ExceptionscheckClusterStatus(Ljava/util/Properties;)ZstatuscreateSignRequest?(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Lcom/huawei/shade/com/cloud/sdk/http/HttpMethodName;)Lcom/huawei/shade/org/apache/http/client/methods/HttpRequestBase;bytes[BinsLjava/io/InputStream;entryEntryInnerClassesLjava/util/Map$Entry;	jsonParam
httpMethod4Lcom/huawei/shade/com/cloud/sdk/http/HttpMethodName;
regionName
securityTokenurlLjava/net/URL;request(Lcom/huawei/shade/com/cloud/sdk/Request;signer3Lcom/huawei/shade/com/cloud/sdk/auth/signer/Signer;requestHeadersLjava/util/Map;
requestConfig>Lcom/huawei/shade/org/apache/http/client/config/RequestConfig;LocalVariableTypeTable;Ljava/util/Map$Entry;5Ljava/util/Map;????????
createRequest?(Ljava/net/URL;Lcom/huawei/shade/org/apache/http/Header;Ljava/lang/String;Lcom/huawei/shade/com/cloud/sdk/http/HttpMethodName;)Lcom/huawei/shade/org/apache/http/client/methods/HttpRequestBase;httpPost:Lcom/huawei/shade/org/apache/http/client/methods/HttpPost;stringEntity6Lcom/huawei/shade/org/apache/http/entity/StringEntity;header)Lcom/huawei/shade/org/apache/http/Header;paramhttpGet9Lcom/huawei/shade/org/apache/http/client/methods/HttpGet;convertStreamToString)(Ljava/io/InputStream;)Ljava/lang/String;ioEXLjava/io/IOException;isreaderLjava/io/BufferedReader;sbLjava/lang/StringBuilder;line
SourceFileServerlessRestClient.java??"https://%s/v1/%s/clusters/%s/start?????????????+com/huawei/gauss200/jdbc/util/PSQLExceptionBPlease confirm that all the parameters needed is added to the url.java/lang/Object??????????0com/huawei/shade/com/alibaba/fastjson/JSONObjectis_cluster_modetrue???????????Acom/huawei/shade/org/apache/http/conn/ssl/TrustSelfSignedStrategy???????Dcom/huawei/shade/org/apache/http/conn/ssl/SSLConnectionSocketFactoryBcom/huawei/shade/org/apache/http/conn/ssl/AllowAllHostnameVerifier???????????????????????????+com/huawei/shade/org/apache/http/HttpStatus2com/huawei/gauss200/jdbc/util/ServerlessRestClient???????	error_msg??java/lang/ExceptiontranceId: {0} {1}????java/io/IOExceptionStart serverless failed. {0}????https://%s/v1.0/%s/clusters/%s??cluster????????java/net/URL??-com/huawei/shade/com/cloud/sdk/DefaultRequestdws????????java/io/ByteArrayInputStream???????@com/huawei/shade/com/cloud/sdk/auth/credentials/BasicCredentials?????????????????java/util/Map$Entry??java/lang/String,com/huawei/shade/org/apache/http/HttpHeadersContent-Length??????
X-Languageen-usContent-Typeapplication/jsonAcceptX-Security-Token??????????8com/huawei/shade/org/apache/http/client/methods/HttpPost4com/huawei/shade/org/apache/http/entity/StringEntity????7com/huawei/shade/org/apache/http/client/methods/HttpGetjava/io/BufferedReaderjava/io/InputStreamReaderUTF-8????java/lang/StringBuilder???
java/util/Properties?com/huawei/shade/org/apache/http/client/methods/HttpRequestBasejavax/net/ssl/SSLContext-com/huawei/shade/org/apache/http/HttpResponsejava/lang/Throwable2com/huawei/shade/com/cloud/sdk/http/HttpMethodName&com/huawei/shade/com/cloud/sdk/Request1com/huawei/shade/com/cloud/sdk/auth/signer/Signer
java/util/Mapjava/util/Iteratorjava/net/MalformedURLExceptionjava/net/URISyntaxException$java/io/UnsupportedEncodingException#com/huawei/gauss200/jdbc/PGPropertyENDPOINT%Lcom/huawei/gauss200/jdbc/PGProperty;get*(Ljava/util/Properties;)Ljava/lang/String;
PROJECT_ID
CLUSTER_ID
ACCESS_KEY_IDSECRET_ACCESS_KEY com/huawei/gauss200/jdbc/util/GTtr9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;'com/huawei/gauss200/jdbc/util/PSQLStateCONNECTION_REJECTED)Lcom/huawei/gauss200/jdbc/util/PSQLState;>(Ljava/lang/String;Lcom/huawei/gauss200/jdbc/util/PSQLState;)Vformatput8(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;toString()Ljava/lang/String;POST5com/huawei/shade/org/apache/http/conn/ssl/SSLContextscustom?()Lcom/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilder;;com/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilderloadTrustMaterial?(Ljava/security/KeyStore;Lcom/huawei/shade/org/apache/http/conn/ssl/TrustStrategy;)Lcom/huawei/shade/org/apache/http/conn/ssl/SSLContextBuilder;useTLSbuild()Ljavax/net/ssl/SSLContext;](Ljavax/net/ssl/SSLContext;Lcom/huawei/shade/org/apache/http/conn/ssl/X509HostnameVerifier;)V8com/huawei/shade/org/apache/http/impl/client/HttpClientsB()Lcom/huawei/shade/org/apache/http/impl/client/HttpClientBuilder;>com/huawei/shade/org/apache/http/impl/client/HttpClientBuildersetSSLSocketFactory?(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/CloseableHttpClientexecute?(Lcom/huawei/shade/org/apache/http/client/methods/HttpUriRequest;)Lcom/huawei/shade/org/apache/http/client/methods/CloseableHttpResponse;
getStatusLine/()Lcom/huawei/shade/org/apache/http/StatusLine;+com/huawei/shade/org/apache/http/StatusLine
getStatusCode()I	getEntity/()Lcom/huawei/shade/org/apache/http/HttpEntity;+com/huawei/shade/org/apache/http/HttpEntity
getContent()Ljava/io/InputStream;
getHeaders>(Ljava/lang/String;)[Lcom/huawei/shade/org/apache/http/Header;'com/huawei/shade/org/apache/http/HeadergetValueparseObjectF(Ljava/lang/String;)Lcom/huawei/shade/com/alibaba/fastjson/JSONObject;	getString&(Ljava/lang/String;)Ljava/lang/String;CONNECTION_UNABLE_TO_CONNECTclose
getMessageS(Ljava/lang/String;Lcom/huawei/gauss200/jdbc/util/PSQLState;Ljava/lang/Throwable;)VGET
getJSONObjectequals(Ljava/lang/Object;)ZREGION_NAMESECURITY_TOKEN(Ljava/lang/String;)VtoURI()Ljava/net/URI;setEndpoint(Ljava/net/URI;)V
setHttpMethod7(Lcom/huawei/shade/com/cloud/sdk/http/HttpMethodName;)VgetBytes()[B([B)V
setContent(Ljava/io/InputStream;)V8com/huawei/shade/com/cloud/sdk/auth/signer/SignerFactory	getSignerY(Ljava/lang/String;Ljava/lang/String;)Lcom/huawei/shade/com/cloud/sdk/auth/signer/Signer;'(Ljava/lang/String;Ljava/lang/String;)Vsignh(Lcom/huawei/shade/com/cloud/sdk/Request;Lcom/huawei/shade/com/cloud/sdk/auth/credentials/Credentials;)V()Ljava/util/Map;entrySet()Ljava/util/Set;
java/util/Setiterator()Ljava/util/Iterator;hasNext()Znext()Ljava/lang/Object;getKeyequalsIgnoreCase(Ljava/lang/String;)Z	addHeader?
@AB(C1DIE]GtH}I?J?K?M?N?O?R?T?U?V?W	XYZ)\,^3_<b?`Ac^jdkjnmmnoqfrg?i?j?k?n?m?o?p??3	??J??,2??Y??
Q??H?????(6??1-??}???????	????
????????????
?v???e??r???????????I?^^^^^^^???^^^^^^^^???^????^^^^^^^^???^?^4??^B8C4\??
?^?B8??^?		?????L??@?3:A?B?
C?B?6?%?	?%?7?:?6?%?	?%?7?:?M?	Y9?Y,?:S??6,?;?:?%?	?%?7?:?	!$4o{~8???8o?4???4o???????8?????3suv
wxy(z1{I|]~t???????????????????????!?$?&?C?J?X?l?o?u?{?~?????????????????????????????????	???J??2??J9??X+?????
??????{??(r??1i???????	????
????????????
????????????I?^^^^^^^???^^^^^^^???^????^^^^^^^???^?^4??(^?B8??B8??^4\??
?^?B8?	
????6?,?:?,?:?D,?:?E,?:?FY*?G:?HYI?J:		?K?L	-?M+?+?N:
?OY
?P:	?QI?R:

	?SY?T?U+-?V:	?W:?X?Y:

?Z?C
?[?\:?]?^`?a?b?????]?^?c?^?d???ef?dgh?dih?d?j?d?ku0?l?m:

?n??~?	???$?.?9?E?M?R?X?c?l?u???????????????????????$?'?,?3???X??
c	???1??6??6??6??6??	-??$????$??.??9???	u???
????????,
??
??1???????b?l
^^??^^^^F??=^^??^^^^F??????-\?)????
????G?-?o?*?pY*?q?r:?sY,?t:?u+?v??wY*?q?x:+?y??&	?
??!?(?.?1?>?D??H??!??G??G??G??G??>	???1??
???Z?zY?{Y*|?}?~L?Y??MN+??YN?,?Y??-?????????W???*???:?:*???,???@G8@LGNL?2????%?@?D?G?I?L?R?U??4I??Z??H??@??>????z^#F8D??8????%??1???\??	ki?	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy