Class name: com.aliyun.hitsdb.client.TSDBClientFactory
java.lang.Object
com.aliyun.hitsdb.client.TSDBClientFactory
publicclassTSDBClientFactoryextendsObject
Constructor summary
Constructor and description |
The factory method used to create a TSDBClient object. |
Method summary
Qualifier and type | Method and description |
|
The static method. Configure the endpoint and the port to create a TSDBClient object. |
|
The static method. Use the TSDBConfig class to create a TSDBClient object. |
Methods inherited from the java.lang.Object class
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
Constructor details
TSDBClientFactory
public TSDBClientFactory()
connect
Method details
publicstatic TSDB connect(String host,int port)throwsHttpClientInitException
- Throw an exception:
HttpClientInitException
connect
publicstatic TSDB connect(TSDBConfig config)throwsHttpClientInitException
- Throw an exception:
HttpClientInitException