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


Java ILinkDiscoveryListener.linkDiscoveryUpdate方法代码示例

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


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

示例1: doUpdatesThread

import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
private void doUpdatesThread() throws InterruptedException {
	do {
		LDUpdate update = updates.take();
		List<LDUpdate> updateList = new ArrayList<LDUpdate>();
		updateList.add(update);

		// Add all the pending updates to the list.
		while (updates.peek() != null) {
			updateList.add(updates.remove());
		}

		if (linkDiscoveryAware != null && !updateList.isEmpty()) {
			if (log.isDebugEnabled()) {
				log.debug("Dispatching link discovery update {} {} {} {} {} {}ms for {}",
						new Object[] {
						update.getOperation(),
						update.getSrc(),
						update.getSrcPort(),
						update.getDst(),
						update.getDstPort(),
						update.getLatency().getValue(),
						linkDiscoveryAware });
			}
			try {
				for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
					// maintained
					lda.linkDiscoveryUpdate(updateList);
				}
			} catch (Exception e) {
				log.error("Error in link discovery updates loop", e);
			}
		}
	} while (updates.peek() != null);
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:35,代码来源:LinkDiscoveryManager.java

示例2: doUpdatesThread

import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level = "ERROR",
		message = "Error in link discovery updates loop",
		explanation = "An unknown error occured while dispatching "
				+ "link update notifications",
				recommendation = LogMessageDoc.GENERIC_ACTION)
private void doUpdatesThread() throws InterruptedException {
	do {
		LDUpdate update = updates.take();
		List<LDUpdate> updateList = new ArrayList<LDUpdate>();
		updateList.add(update);

		// Add all the pending updates to the list.
		while (updates.peek() != null) {
			updateList.add(updates.remove());
		}

		if (linkDiscoveryAware != null) {
			if (log.isTraceEnabled()) {
				log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
						new Object[] {
						update.getOperation(),
						update.getSrc().toString(),
						update.getSrcPort(),
						update.getDst().toString(),
						update.getDstPort(),
						linkDiscoveryAware });
			}
			try {
				for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
					// maintained
					lda.linkDiscoveryUpdate(updateList);
				}
			} catch (Exception e) {
				log.error("Error in link discovery updates loop", e);
			}
		}
	} while (updates.peek() != null);
}
 
开发者ID:nsg-ethz,项目名称:iTAP-controller,代码行数:39,代码来源:LinkDiscoveryManager.java

示例3: doUpdatesThread

import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level = "ERROR",
               message = "Error in link discovery updates loop",
               explanation = "An unknown error occured while dispatching "
                             + "link update notifications",
               recommendation = LogMessageDoc.GENERIC_ACTION)
private void doUpdatesThread() throws InterruptedException {
    do {
        LDUpdate update = updates.take();
        List<LDUpdate> updateList = new ArrayList<LDUpdate>();
        updateList.add(update);

        // Add all the pending updates to the list.
        while (updates.peek() != null) {
            updateList.add(updates.remove());
        }

        if (linkDiscoveryAware != null) {
            if (log.isTraceEnabled()) {
                log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
                          new Object[] {
                                        update.getOperation(),
                                        HexString.toHexString(update.getSrc()),
                                        update.getSrcPort(),
                                        HexString.toHexString(update.getDst()),
                                        update.getDstPort(),
                                        linkDiscoveryAware });
            }
            try {
                for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
                    // maintained
                    lda.linkDiscoveryUpdate(updateList);
                }
            } catch (Exception e) {
                log.error("Error in link discovery updates loop", e);
            }
        }
    } while (updates.peek() != null);
}
 
开发者ID:JianqingJiang,项目名称:QoS-floodlight,代码行数:39,代码来源:LinkDiscoveryManager.java

示例4: doUpdatesThread

import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level="ERROR",
        message="Error in link discovery updates loop",
        explanation="An unknown error occured while dispatching " +
        		"link update notifications",
        recommendation=LogMessageDoc.GENERIC_ACTION)
private void doUpdatesThread() throws InterruptedException {
    do {
        LDUpdate update = updates.take();

        if (linkDiscoveryAware != null) {
            if (log.isTraceEnabled()) {
                log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
                          new Object[]{update.getOperation(),
                                       HexString.toHexString(update.getSrc()), update.getSrcPort(),
                                       HexString.toHexString(update.getDst()), update.getDstPort(),
                                       linkDiscoveryAware});
            }
            try {
                for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order maintained
                    lda.linkDiscoveryUpdate(update);
                }
            }
            catch (Exception e) {
                log.error("Error in link discovery updates loop", e);
            }
        }
    } while (updates.peek() != null);
}
 
开发者ID:vishalshubham,项目名称:Multipath-Hedera-system-in-Floodlight-controller,代码行数:29,代码来源:LinkDiscoveryManager.java

示例5: doUpdatesThread

import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level = "ERROR",
               message = "Error in link discovery updates loop",
               explanation = "An unknown error occured while dispatching "
                             + "link update notifications",
               recommendation = LogMessageDoc.GENERIC_ACTION)
private void doUpdatesThread() throws InterruptedException {
    do {
        LDUpdate update = updates.take();
        List<LDUpdate> updateList = new ArrayList<LDUpdate>();
        updateList.add(update);

        // Add all the pending updates to the list.
        while (updates.peek() != null) {
            updateList.add(updates.remove());
        }

        if (linkDiscoveryAware != null) {
            if (log.isTraceEnabled()) {
                log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
                          new Object[] {
                                        update.getOperation(),
                                        HexString.toHexString(update.getSrc()),
                                        update.getSrcPort(),
                                        HexString.toHexString(update.getDst()),
                                        update.getDstPort(),
                                        linkDiscoveryAware });
            }
            try {
                for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
                                                                        // maintained
                    lda.linkDiscoveryUpdate(updateList);
                }
            } catch (Exception e) {
                log.error("Error in link discovery updates loop", e);
            }
        }
    } while (updates.peek() != null);
}
 
开发者ID:dana-i2cat,项目名称:floodlight-nfv,代码行数:39,代码来源:LinkDiscoveryManager.java

示例6: doUpdatesThread

import net.floodlightcontroller.linkdiscovery.ILinkDiscoveryListener; //导入方法依赖的package包/类
@LogMessageDoc(level = "ERROR",
               message = "Error in link discovery updates loop",
               explanation = "An unknown error occured while dispatching "
                             + "link update notifications",
               recommendation = LogMessageDoc.GENERIC_ACTION)
private
        void doUpdatesThread() throws InterruptedException {
    do {
        LDUpdate update = updates.take();
        List<LDUpdate> updateList = new ArrayList<LDUpdate>();
        updateList.add(update);

        // Add all the pending updates to the list.
        while (updates.peek() != null) {
            updateList.add(updates.remove());
        }

        if (linkDiscoveryAware != null) {
            if (log.isTraceEnabled()) {
                log.trace("Dispatching link discovery update {} {} {} {} {} for {}",
                          new Object[] {
                                        update.getOperation(),
                                        HexString.toHexString(update.getSrc()),
                                        update.getSrcPort(),
                                        HexString.toHexString(update.getDst()),
                                        update.getDstPort(),
                                        linkDiscoveryAware });
            }
            try {
                for (ILinkDiscoveryListener lda : linkDiscoveryAware) { // order
                                                                        // maintained
                    lda.linkDiscoveryUpdate(updateList);
                }
            } catch (Exception e) {
                log.error("Error in link discovery updates loop", e);
            }
        }
    } while (updates.peek() != null);
}
 
开发者ID:wallnerryan,项目名称:FL_HAND,代码行数:40,代码来源:LinkDiscoveryManager.java


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