• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java LoadBalancingRule类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.microsoft.azure.management.network.LoadBalancingRule的典型用法代码示例。如果您正苦于以下问题:Java LoadBalancingRule类的具体用法?Java LoadBalancingRule怎么用?Java LoadBalancingRule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

LoadBalancingRule类属于com.microsoft.azure.management.network包,在下文中一共展示了LoadBalancingRule类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: loadBalancingRules

点赞 2

import com.microsoft.azure.management.network.LoadBalancingRule; //导入依赖的package包/类
@Override
public Map<String, LoadBalancingRule> loadBalancingRules() {
    final Map<String, LoadBalancingRule> rules = new TreeMap<>();
    if (this.inner().loadBalancingRules() != null) {
        for (SubResource innerRef : this.inner().loadBalancingRules()) {
            String name = ResourceUtils.nameFromResourceId(innerRef.id());
            LoadBalancingRule rule = this.parent().loadBalancingRules().get(name);
            if (rule != null) {
                rules.put(name, rule);
            }
        }
    }

    return Collections.unmodifiableMap(rules);
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:16,
代码来源:LoadBalancerFrontendImpl.java

示例2: defineLoadBalancingRule

点赞 2

import com.microsoft.azure.management.network.LoadBalancingRule; //导入依赖的package包/类
@Override
public LoadBalancingRuleImpl defineLoadBalancingRule(String name) {
    LoadBalancingRule lbRule = this.loadBalancingRules.get(name);
    if (lbRule == null) {
        LoadBalancingRuleInner inner = new LoadBalancingRuleInner()
            .withName(name);
        return new LoadBalancingRuleImpl(inner, this);
    } else {
        return (LoadBalancingRuleImpl) lbRule;
    }
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:12,
代码来源:LoadBalancerImpl.java

示例3: loadBalancingRules

点赞 2

import com.microsoft.azure.management.network.LoadBalancingRule; //导入依赖的package包/类
@Override
public Map<String, LoadBalancingRule> loadBalancingRules() {
    return Collections.unmodifiableMap(this.loadBalancingRules);
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:5,
代码来源:LoadBalancerImpl.java

示例4: loadBalancingRules

点赞 1

import com.microsoft.azure.management.network.LoadBalancingRule; //导入依赖的package包/类
/**
 * @return the associated load balancing rules from this load balancer, indexed by their names
 */
Map<String, LoadBalancingRule> loadBalancingRules();
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:5,
代码来源:HasLoadBalancingRules.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)