public abstract class AbstractTsdbBceClient extends AbstractBceClient
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONTENT_TYPE |
protected static HttpResponseHandler[] |
TSDB_HANDLERS
Responsible for handling HttpResponse from all Tsdb service calls.
|
config, DEFAULT_CONTENT_TYPE, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
AbstractTsdbBceClient(BceClientConfiguration config,
HttpResponseHandler[] responseHandlers) |
| Modifier and Type | Method and Description |
|---|---|
protected URL |
convertRequestToUrl(InternalRequest request)
Converts the specified request object into a URL, containing all the
specified parameters, the specified request endpoint, etc.
|
protected InternalRequest |
createRequest(AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
String... pathVariables) |
protected InternalRequest |
createRequest(URI endpoint,
AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
SignOptions signOptions,
String... pathVariables)
Creates and initializes a new request object for the specified resource.
|
protected void |
fillInHeadAndBody(AbstractBceRequest bceRequest,
InternalRequest request) |
protected void |
fillInHeadAndBodyForGzip(InternalRequest request,
byte[] bytes) |
protected Date |
getTimestampInThisMinute() |
protected byte[] |
toGzipBytes(WriteDatapointsRequest writeDatapointsRequest) |
protected byte[] |
toJson(AbstractBceRequest bceRequest) |
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownprotected static final String CONTENT_TYPE
protected static final HttpResponseHandler[] TSDB_HANDLERS
public AbstractTsdbBceClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
protected byte[] toGzipBytes(WriteDatapointsRequest writeDatapointsRequest)
protected InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)
protected InternalRequest createRequest(URI endpoint, AbstractBceRequest bceRequest, HttpMethodName httpMethod, SignOptions signOptions, String... pathVariables)
endpoint - The endpoint to request.bceRequest - The original BCE request created by the user.httpMethod - The HTTP method to use when sending the request.signOptions - The options for signature.pathVariables - The optional variables used in the URI path.protected Date getTimestampInThisMinute()
protected void fillInHeadAndBody(AbstractBceRequest bceRequest, InternalRequest request)
protected void fillInHeadAndBodyForGzip(InternalRequest request, byte[] bytes)
protected byte[] toJson(AbstractBceRequest bceRequest)
protected URL convertRequestToUrl(InternalRequest request)
request - The request to convert into a URL.Copyright © 2023. All rights reserved.