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