Java Code Examples for com.alipay.sofa.rpc.config.AbstractInterfaceConfig#getInterfaceId()

The following examples show how to use com.alipay.sofa.rpc.config.AbstractInterfaceConfig#getInterfaceId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConsulUtils.java    From sofa-rpc with Apache License 2.0 5 votes vote down vote up
public static String buildServiceName(AbstractInterfaceConfig config) {
    String consulServiceName = config.getParameter(ConsulConstants.CONSUL_SERVICE_NAME_KEY);
    if (consulServiceName != null) {
        return consulServiceName;
    }
    return config.getInterfaceId();
}
 
Example 2
Source File: ZookeeperRegistryHelper.java    From sofa-rpc with Apache License 2.0 4 votes vote down vote up
static String buildOverridePath(String rootPath, AbstractInterfaceConfig config) {
    return rootPath + "sofa-rpc/" + config.getInterfaceId() + "/overrides";
}
 
Example 3
Source File: MockTestRegistry.java    From sofa-rpc with Apache License 2.0 4 votes vote down vote up
protected String buildKey(AbstractInterfaceConfig config) {
    return config.getInterfaceId() + ":" + config.getVersion();
}
 
Example 4
Source File: RegistryUtils.java    From sofa-rpc with Apache License 2.0 4 votes vote down vote up
public static String buildProviderPath(String rootPath, AbstractInterfaceConfig config) {
    return rootPath + "sofa-rpc/" + config.getInterfaceId() + "/providers";
}
 
Example 5
Source File: RegistryUtils.java    From sofa-rpc with Apache License 2.0 4 votes vote down vote up
public static String buildConsumerPath(String rootPath, AbstractInterfaceConfig config) {
    return rootPath + "sofa-rpc/" + config.getInterfaceId() + "/consumers";
}
 
Example 6
Source File: RegistryUtils.java    From sofa-rpc with Apache License 2.0 4 votes vote down vote up
public static String buildConfigPath(String rootPath, AbstractInterfaceConfig config) {
    return rootPath + "sofa-rpc/" + config.getInterfaceId() + "/configs";
}