com.baidubce.services.tsdb
Class AbstractTsdbBceClient
java.lang.Object
com.baidubce.AbstractBceClient
com.baidubce.services.tsdb.AbstractTsdbBceClient
- Direct Known Subclasses:
- TsdbAdminClient, TsdbClient
public abstract class AbstractTsdbBceClient
- extends AbstractBceClient
Provides the client for accessing the Tsdb(Time series database) api.
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TSDB_HANDLERS
protected static final HttpResponseHandler[] TSDB_HANDLERS
- Responsible for handling HttpResponse from all Tsdb service calls.
AbstractTsdbBceClient
public AbstractTsdbBceClient(BceClientConfiguration config,
HttpResponseHandler[] responseHandlers)
toGzipBytes
protected byte[] toGzipBytes(WriteDatapointsRequest writeDatapointsRequest)
createRequest
protected InternalRequest createRequest(AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
String... pathVariables)
createRequest
protected InternalRequest createRequest(URI endpoint,
AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
SignOptions signOptions,
String... pathVariables)
- Creates and initializes a new request object for the specified resource.
- Parameters:
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.
- Returns:
- A new request object populated with endpoint, resource path and specific parameters to send.
getTimestampInThisMinute
protected Date getTimestampInThisMinute()
fillInHeadAndBody
protected void fillInHeadAndBody(AbstractBceRequest bceRequest,
InternalRequest request)
fillInHeadAndBodyForGzip
protected void fillInHeadAndBodyForGzip(InternalRequest request,
byte[] bytes)
toJson
protected byte[] toJson(AbstractBceRequest bceRequest)
convertRequestToUrl
protected URL convertRequestToUrl(InternalRequest request)
- Converts the specified request object into a URL, containing all the
specified parameters, the specified request endpoint, etc.
- Parameters:
request
- The request to convert into a URL.
- Returns:
- A new URL representing the specified request.
Copyright © 2018. All rights reserved.