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


Java FibListener类代码示例

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


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

示例1: setUp

import org.onosproject.routing.FibListener; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    hostService = createMock(HostService.class);
    routingConfigurationService =
            createMock(RoutingConfigurationService.class);

    RouteSourceService routeSourceService = createMock(RouteSourceService.class);
    routeSourceService.start(anyObject(RouteListener.class));
    routeSourceService.stop();
    replay(routeSourceService);

    fibListener = createMock(FibListener.class);

    router = new DefaultRouter();
    router.coreService = createNiceMock(CoreService.class);
    router.hostService = hostService;
    router.routingConfigurationService = routingConfigurationService;
    router.routeSourceService = routeSourceService;
    router.activate();

    router.addFibListener(fibListener);
    router.start();

    internalHostListener = router.new InternalHostListener();
}
 
开发者ID:shlee89,项目名称:athena,代码行数:26,代码来源:RouterAsyncArpTest.java

示例2: setUp

import org.onosproject.routing.FibListener; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    setUpHostService();
    routingConfigurationService =
            createMock(RoutingConfigurationService.class);

    RouteSourceService routeSourceService = createMock(RouteSourceService.class);
    routeSourceService.start(anyObject(RouteListener.class));
    routeSourceService.stop();
    replay(routeSourceService);

    fibListener = createMock(FibListener.class);

    router = new DefaultRouter();
    router.coreService = createNiceMock(CoreService.class);
    router.hostService = hostService;
    router.routingConfigurationService = routingConfigurationService;
    router.routeSourceService = routeSourceService;
    router.activate();

    router.addFibListener(fibListener);
    router.start();
}
 
开发者ID:shlee89,项目名称:athena,代码行数:24,代码来源:RouterTest.java

示例3: setUp

import org.onosproject.routing.FibListener; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    hostService = createMock(HostService.class);
    routingConfigurationService =
            createMock(RoutingConfigurationService.class);

    BgpService bgpService = createMock(BgpService.class);
    bgpService.start(anyObject(RouteListener.class));
    bgpService.stop();
    replay(bgpService);

    fibListener = createMock(FibListener.class);

    router = new Router();
    router.hostService = hostService;
    router.routingConfigurationService = routingConfigurationService;
    router.bgpService = bgpService;
    router.activate();

    router.addFibListener(fibListener);
    router.start();

    internalHostListener = router.new InternalHostListener();
}
 
开发者ID:ravikumaran2015,项目名称:ravikumaran201504,代码行数:25,代码来源:RouterAsyncArpTest.java

示例4: setUp

import org.onosproject.routing.FibListener; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
    setUpHostService();
    routingConfigurationService =
            createMock(RoutingConfigurationService.class);

    BgpService bgpService = createMock(BgpService.class);
    bgpService.start(anyObject(RouteListener.class));
    bgpService.stop();
    replay(bgpService);

    fibListener = createMock(FibListener.class);

    router = new Router();
    router.hostService = hostService;
    router.routingConfigurationService = routingConfigurationService;
    router.bgpService = bgpService;
    router.activate();

    router.addFibListener(fibListener);
    router.start();
}
 
开发者ID:ravikumaran2015,项目名称:ravikumaran201504,代码行数:23,代码来源:RouterTest.java

示例5: addFibListener

import org.onosproject.routing.FibListener; //导入依赖的package包/类
@Override
public void addFibListener(FibListener fibListener) {
    routeService.addListener(new InternalRouteListener(fibListener));
}
 
开发者ID:shlee89,项目名称:athena,代码行数:5,代码来源:Router.java

示例6: addFibListener

import org.onosproject.routing.FibListener; //导入依赖的package包/类
@Override
public void addFibListener(FibListener fibListener) {
    this.fibComponent = checkNotNull(fibListener);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:5,代码来源:DefaultRouter.java

示例7: addFibListener

import org.onosproject.routing.FibListener; //导入依赖的package包/类
@Override
public void addFibListener(FibListener fibListener) {
    this.fibComponent = checkNotNull(fibListener);

}
 
开发者ID:ravikumaran2015,项目名称:ravikumaran201504,代码行数:6,代码来源:Router.java

示例8: InternalRouteListener

import org.onosproject.routing.FibListener; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param fibListener FIB listener
 */
public InternalRouteListener(FibListener fibListener) {
    this.fibListener = fibListener;
}
 
开发者ID:shlee89,项目名称:athena,代码行数:9,代码来源:Router.java


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