本文整理匯總了Java中org.opendaylight.controller.sal.core.NodeTable.getNode方法的典型用法代碼示例。如果您正苦於以下問題:Java NodeTable.getNode方法的具體用法?Java NodeTable.getNode怎麽用?Java NodeTable.getNode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.opendaylight.controller.sal.core.NodeTable
的用法示例。
在下文中一共展示了NodeTable.getNode方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: readNodeTable
import org.opendaylight.controller.sal.core.NodeTable; //導入方法依賴的package包/類
@Override
public NodeTableStatistics readNodeTable(String containerName,
NodeTable table, boolean cached) {
if (!containerOwnsNodeTable(containerName, table)) {
return null;
}
Node node = table.getNode();
long sid = (Long) node.getID();
Byte tableId = (Byte) table.getID();
List<OFStatistics> ofList = (cached == true) ? statsMgr.getOFTableStatistics(sid, tableId) :
statsMgr.queryStatistics(sid, OFStatisticsType.TABLE, tableId);
List<NodeTableStatistics> ntStatistics = new TableStatisticsConverter(sid, ofList).getNodeTableStatsList();
return (ntStatistics.isEmpty()) ? new NodeTableStatistics() : ntStatistics.get(0);
}
示例2: nonCachedReadNodeTable
import org.opendaylight.controller.sal.core.NodeTable; //導入方法依賴的package包/類
@Override
public NodeTableStatistics nonCachedReadNodeTable(NodeTable table) {
Node node = table.getNode();
if (pluginReader != null && node != null) {
if (this.pluginReader.get(node.getType()) != null) {
return this.pluginReader.get(node.getType())
.readNodeTable(table, false);
}
}
logger.warn("Plugin {} unavailable", node.getType());
return null;
}
示例3: readNodeTable
import org.opendaylight.controller.sal.core.NodeTable; //導入方法依賴的package包/類
@Override
public NodeTableStatistics readNodeTable(NodeTable table) {
Node node = table.getNode();
if (pluginReader != null && node != null) {
if (this.pluginReader.get(node.getType()) != null) {
return this.pluginReader.get(node.getType())
.readNodeTable(table, true);
}
}
logger.warn("Plugin {} unavailable", node.getType());
return null;
}