当前位置: 首页>>代码示例>>Java>>正文


Java NetworkLayer.L3属性代码示例

本文整理汇总了Java中net.floodlightcontroller.counter.CounterStore.NetworkLayer.L3属性的典型用法代码示例。如果您正苦于以下问题:Java NetworkLayer.L3属性的具体用法?Java NetworkLayer.L3怎么用?Java NetworkLayer.L3使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.floodlightcontroller.counter.CounterStore.NetworkLayer的用法示例。


在下文中一共展示了NetworkLayer.L3属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getOneSwitchCounterCategoriesJson

protected void getOneSwitchCounterCategoriesJson(Map<String, Object> model,
                                                 String switchID,
                                                 String counterName,
                                                 String layer) {
    String fullCounterName = "";
    NetworkLayer nl = NetworkLayer.L3;

    try {
        counterName = URLDecoder.decode(counterName, "UTF-8");
        layer = URLDecoder.decode(layer, "UTF-8");
        fullCounterName = switchID + ICounterStoreService.TitleDelimitor + counterName;
    } catch (UnsupportedEncodingException e) {
        //Just leave counterTitle undecoded if there is an issue - fail silently
    }

    if (layer.compareToIgnoreCase("4") == 0) {
        nl = NetworkLayer.L4;
    }
    List<String> categories = this.counterStore.getAllCategories(fullCounterName, nl);
    if (categories != null) {
        model.put(fullCounterName + "." + layer, categories);
    }
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:23,代码来源:SwitchCounterCategoriesResource.java

示例2: getOneSwitchCounterCategoriesJson

protected void getOneSwitchCounterCategoriesJson(Map<String, Object> model,
                                                 String switchID,
                                                 String counterName, 
                                                 String layer) {
    String fullCounterName = "";      
    NetworkLayer nl = NetworkLayer.L3;
    
    try {
        counterName = URLDecoder.decode(counterName, "UTF-8");
        layer = URLDecoder.decode(layer, "UTF-8");
        fullCounterName = switchID + ICounterStoreService.TitleDelimitor + counterName;
    } catch (UnsupportedEncodingException e) {
        //Just leave counterTitle undecoded if there is an issue - fail silently
    }

    if (layer.compareToIgnoreCase("4") == 0) {
        nl = NetworkLayer.L4;
    }
    List<String> categories = this.counterStore.getAllCategories(fullCounterName, nl);
    if (categories != null) {
        model.put(fullCounterName + "." + layer, categories);
    }
}
 
开发者ID:vishalshubham,项目名称:Multipath-Hedera-system-in-Floodlight-controller,代码行数:23,代码来源:SwitchCounterCategoriesResource.java


注:本文中的net.floodlightcontroller.counter.CounterStore.NetworkLayer.L3属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。