| Modifier and Type | Field and Description |
|---|---|
static String |
DUBBO_PROTOCOLS_PORT_PROPERTY_NAME_PATTERN
The
pattern of dubbo protocols port. |
| Constructor and Description |
|---|
DubboMetadataUtils(JSONUtils jsonUtils,
org.springframework.core.env.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentApplicationName()
Get the current application name.
|
List<org.apache.dubbo.common.URL> |
getDubboMetadataServiceURLs(List<org.springframework.cloud.client.ServiceInstance> serviceInstances,
String serviceInterface,
String version,
String protocol)
|
List<org.apache.dubbo.common.URL> |
getDubboMetadataServiceURLs(org.springframework.cloud.client.ServiceInstance serviceInstance)
|
Integer |
getDubboProtocolPort(org.springframework.cloud.client.ServiceInstance serviceInstance,
String protocol) |
String |
getDubboProtocolPropertyName(String protocol)
Get the property name of Dubbo Protocol.
|
public static final String DUBBO_PROTOCOLS_PORT_PROPERTY_NAME_PATTERN
pattern of dubbo protocols port.public DubboMetadataUtils(JSONUtils jsonUtils, org.springframework.core.env.Environment environment)
public String getCurrentApplicationName()
public List<org.apache.dubbo.common.URL> getDubboMetadataServiceURLs(org.springframework.cloud.client.ServiceInstance serviceInstance)
serviceInstance - ServiceInstanceurlspublic List<org.apache.dubbo.common.URL> getDubboMetadataServiceURLs(List<org.springframework.cloud.client.ServiceInstance> serviceInstances, String serviceInterface, String version, String protocol)
serviceInstances - the list of ServiceInstancesserviceInterface - the interface name of Dubbo serviceversion - the version of Dubbo serviceprotocol - the protocol that Dubbo Service exportsurlspublic String getDubboProtocolPropertyName(String protocol)
protocol - Dubbo ProtocolCopyright © 2021 Pivotal Software, Inc.. All rights reserved.