类 AbstractTsdbBceClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.tsdb.AbstractTsdbBceClient
-
- 直接已知子类:
TsdbAdminClient,TsdbClient
public abstract class AbstractTsdbBceClient extends AbstractBceClient
Provides the client for accessing the Tsdb(Time series database) api.
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static StringCONTENT_TYPEprotected static HttpResponseHandler[]TSDB_HANDLERSResponsible for handling HttpResponse from all Tsdb service calls.-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 AbstractTsdbBceClient(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected URLconvertRequestToUrl(InternalRequest request)Converts the specified request object into a URL, containing all the specified parameters, the specified request endpoint, etc.protected InternalRequestcreateRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)protected InternalRequestcreateRequest(URI endpoint, AbstractBceRequest bceRequest, HttpMethodName httpMethod, SignOptions signOptions, String... pathVariables)Creates and initializes a new request object for the specified resource.protected voidfillInHeadAndBody(AbstractBceRequest bceRequest, InternalRequest request)protected voidfillInHeadAndBodyForGzip(InternalRequest request, byte[] bytes)protected DategetTimestampInThisMinute()protected byte[]toGzipBytes(WriteDatapointsRequest writeDatapointsRequest)protected byte[]toJson(AbstractBceRequest bceRequest)-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
字段详细资料
-
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.- 参数:
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.- 返回:
- 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.- 参数:
request- The request to convert into a URL.- 返回:
- A new URL representing the specified request.
-
-