TSDBClientFactory

Updated at:
Copy as MD

TSDBClientFactory is the entry point for creating a TSDB client in the Alibaba Cloud Time Series Database (TSDB) Java SDK. Call one of the static connect methods to get a configured client instance.

Package: com.aliyun.hitsdb.client

Inheritance: java.lang.Object → com.aliyun.hitsdb.client.TSDBClientFactory

public class TSDBClientFactory extends Object

Constructor summary

ConstructorDescription
TSDBClientFactory()The factory method used to create a TSDBClient object.

Method summary

Qualifier and typeMethodDescription
static TSDBconnect(String host, int port)Connects to a TSDB endpoint using a hostname and port.
static TSDBconnect(TSDBConfig config)Connects to a TSDB endpoint using a TSDBConfig configuration object.

Methods inherited from java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait

Constructor details

public TSDBClientFactory()

Method details

connect(String host, int port)

public static TSDB connect(String host, int port) throws HttpClientInitException

Throws: HttpClientInitException

connect(TSDBConfig config)

public static TSDB connect(TSDBConfig config) throws HttpClientInitException

Throws: HttpClientInitException