All Products
Search
Document Center

TSDBClientFactory

Last Updated: May 19, 2022

Class name: com.aliyun.hitsdb.client.TSDBClientFactory

java.lang.Object

com.aliyun.hitsdb.client.TSDBClientFactory

publicclassTSDBClientFactoryextendsObject

Constructor summary

Constructor and description

TSDBClientFactory()

The factory method used to create a TSDBClient object.

Method summary

Qualifier and type

Method and description

static TSDB

connect(TSDBConfig config)

The static method. Configure the endpoint and the port to create a TSDBClient object.

static TSDB

connect(String host, int port)

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()

    Method details

    • connect

    publicstatic TSDB connect(String host,int port)throwsHttpClientInitException
    Throw an exception:
    HttpClientInitException
    • connect

      publicstatic TSDB connect(TSDBConfig config)throwsHttpClientInitException
      Throw an exception:
      HttpClientInitException