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 ObjectConstructor summary
| Constructor | Description |
|---|---|
TSDBClientFactory() | The factory method used to create a TSDBClient object. |
Method summary
| Qualifier and type | Method | Description |
|---|---|---|
static TSDB | connect(String host, int port) | Connects to a TSDB endpoint using a hostname and port. |
static TSDB | connect(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 HttpClientInitExceptionThrows: HttpClientInitException
connect(TSDBConfig config)
public static TSDB connect(TSDBConfig config) throws HttpClientInitExceptionThrows: HttpClientInitException
Is this page helpful?