public class ClientCache extends Object
| 构造器和说明 |
|---|
ClientCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
static IClient |
getClient(Integer sourceType)
获取 Sql Client 客户端
|
static IClient |
getClient(String pluginName)
已过时。
|
static IHbase |
getHbase(Integer sourceType)
获取 hbase 服务客户端
|
static IHdfsFile |
getHdfs(Integer sourceType)
获取 HDFS 文件客户端
|
static IHdfsFile |
getHdfs(String pluginName)
已过时。
|
static IKafka |
getKafka(Integer sourceType)
获取 KAFKA 客户端
|
static IKafka |
getKafka(String pluginName)
已过时。
|
static IKerberos |
getKerberos(Integer sourceType)
获取 Kerberos 服务客户端
|
static IRestful |
getRestful(Integer sourceType)
获取 restful Client 客户端
|
static ITable |
getTable(Integer sourceType)
获取 table Client 客户端
|
static ITsdb |
getTsdb(Integer sourceType)
获取 tsdb Client 客户端
|
static String |
getUserDir()
获取插件包文件夹路径
|
static void |
setUserDir(String dir)
修改插件包文件夹路径
|
protected static String userDir
public static void setUserDir(String dir)
dir - public static String getUserDir()
public static IClient getClient(Integer sourceType) throws ClientAccessException
sourceType - ClientAccessException@Deprecated public static IClient getClient(String pluginName) throws ClientAccessException
pluginName - ClientAccessExceptionpublic static IHdfsFile getHdfs(Integer sourceType) throws ClientAccessException
sourceType - ClientAccessException@Deprecated public static IHdfsFile getHdfs(String pluginName) throws ClientAccessException
pluginName - ClientAccessExceptionpublic static IKafka getKafka(Integer sourceType) throws ClientAccessException
sourceType - ClientAccessException@Deprecated public static IKafka getKafka(String pluginName) throws ClientAccessException
pluginName - ClientAccessExceptionpublic static IKerberos getKerberos(Integer sourceType) throws ClientAccessException
sourceType - ClientAccessExceptionpublic static IHbase getHbase(Integer sourceType) throws ClientAccessException
sourceType - 数据源类型ClientAccessException - 插件化加载异常public static ITable getTable(Integer sourceType) throws ClientAccessException
sourceType - ClientAccessExceptionpublic static ITsdb getTsdb(Integer sourceType)
sourceType - 数据源类型Copyright © 2022. All rights reserved.