public class DiscoveryAPIFactory extends Object
| Constructor and Description |
|---|
DiscoveryAPIFactory() |
| Modifier and Type | Method and Description |
|---|---|
static com.tencent.polaris.api.core.ConsumerAPI |
createConsumerAPI()
使用默认配置创建ConsumerAPI
|
static com.tencent.polaris.api.core.ConsumerAPI |
createConsumerAPIByAddress(List<String> addressList)
通过注册地址创建ConsumerAPI
|
static com.tencent.polaris.api.core.ConsumerAPI |
createConsumerAPIByAddress(String... addresses)
通过注册地址创建ConsumerAPI
|
static com.tencent.polaris.api.core.ConsumerAPI |
createConsumerAPIByConfig(com.tencent.polaris.api.config.Configuration config)
通过配置对象创建ConsumerAPI
|
static com.tencent.polaris.api.core.ConsumerAPI |
createConsumerAPIByContext(com.tencent.polaris.client.api.SDKContext context)
通过SDK上下文创建ConsumerAPI
|
static com.tencent.polaris.api.core.ConsumerAPI |
createConsumerAPIByFile(InputStream configStream)
通过配置文件创建ConsumerAPI
|
static com.tencent.polaris.api.core.ProviderAPI |
createProviderAPI()
通过默认配置创建ProviderAPI
|
static com.tencent.polaris.api.core.ProviderAPI |
createProviderAPIByAddress(List<String> addressList)
通过注册地址创建ProviderAPI
|
static com.tencent.polaris.api.core.ProviderAPI |
createProviderAPIByAddress(String... addresses)
通过注册地址创建ProviderAPI
|
static com.tencent.polaris.api.core.ProviderAPI |
createProviderAPIByConfig(com.tencent.polaris.api.config.Configuration config)
通过配置对象创建ProviderAPI
|
static com.tencent.polaris.api.core.ProviderAPI |
createProviderAPIByContext(com.tencent.polaris.client.api.SDKContext context)
通过SDK上下文创建ProviderAPI
|
static com.tencent.polaris.api.core.ProviderAPI |
createProviderAPIByFile(InputStream configStream)
通过配置文件创建ProviderAPI
|
public static com.tencent.polaris.api.core.ConsumerAPI createConsumerAPI()
throws com.tencent.polaris.api.exception.PolarisException
com.tencent.polaris.api.exception.PolarisException - 初始化过程的异常public static com.tencent.polaris.api.core.ConsumerAPI createConsumerAPIByContext(com.tencent.polaris.client.api.SDKContext context)
throws com.tencent.polaris.api.exception.PolarisException
context - SDK上下文,包含插件列表,配置对象等信息com.tencent.polaris.api.exception.PolarisException - 初始化过程的异常public static com.tencent.polaris.api.core.ConsumerAPI createConsumerAPIByFile(InputStream configStream) throws com.tencent.polaris.api.exception.PolarisException
configStream - 配置文件流com.tencent.polaris.api.exception.PolarisException - 初始化过程的异常public static com.tencent.polaris.api.core.ConsumerAPI createConsumerAPIByConfig(com.tencent.polaris.api.config.Configuration config)
throws com.tencent.polaris.api.exception.PolarisException
config - 配置对象com.tencent.polaris.api.exception.PolarisException - 初始化过程的异常public static com.tencent.polaris.api.core.ConsumerAPI createConsumerAPIByAddress(String... addresses)
addresses - 地址public static com.tencent.polaris.api.core.ConsumerAPI createConsumerAPIByAddress(List<String> addressList)
addressList - 地址public static com.tencent.polaris.api.core.ProviderAPI createProviderAPI()
throws com.tencent.polaris.api.exception.PolarisException
com.tencent.polaris.api.exception.PolarisException - 初始化过程异常public static com.tencent.polaris.api.core.ProviderAPI createProviderAPIByContext(com.tencent.polaris.client.api.SDKContext context)
throws com.tencent.polaris.api.exception.PolarisException
context - SDK上下文,包含插件列表,配置对象等信息com.tencent.polaris.api.exception.PolarisException - 初始化过程的异常public static com.tencent.polaris.api.core.ProviderAPI createProviderAPIByFile(InputStream configStream) throws com.tencent.polaris.api.exception.PolarisException
configStream - 配置文件流com.tencent.polaris.api.exception.PolarisException - 初始化过程的异常public static com.tencent.polaris.api.core.ProviderAPI createProviderAPIByConfig(com.tencent.polaris.api.config.Configuration config)
throws com.tencent.polaris.api.exception.PolarisException
config - 配置对象com.tencent.polaris.api.exception.PolarisException - 初始化过程的异常public static com.tencent.polaris.api.core.ProviderAPI createProviderAPIByAddress(String... addresses)
addresses - 地址Copyright © 2023. All rights reserved.