java类org.jboss.netty.channel.ChannelConfig的实例源码

OspfInterfaceImplTest.java 文件源码 项目:athena 阅读 33 收藏 0 点赞 0 评论 0
/**
 * Tests electRouter() method.
 */
@Test
public void testElectRouter() throws Exception {
    ospfInterface.setOspfArea(ospfArea);
    ospfInterface.setDr(Ip4Address.valueOf("3.3.3.3"));
    ospfInterface.setBdr(Ip4Address.valueOf("3.3.3.3"));
    ospfInterface.setIpNetworkMask(Ip4Address.valueOf("255.255.255.255"));
    ChannelConfig channelConfig = EasyMock.createMock(ChannelConfig.class);
    EasyMock.expect(channelConfig.getBufferFactory()).andReturn(new HeapChannelBufferFactory());
    Channel channel = EasyMock.createMock(Channel.class);
    ospfInterface.electRouter(channel);
    assertThat(ospfInterface.dr(), is(notNullValue()));
}
OspfInterfaceImplTest.java 文件源码 项目:onos 阅读 30 收藏 0 点赞 0 评论 0
/**
 * Tests electRouter() method.
 */
@Test
public void testElectRouter() throws Exception {
    ospfInterface.setOspfArea(ospfArea);
    ospfInterface.setDr(Ip4Address.valueOf("3.3.3.3"));
    ospfInterface.setBdr(Ip4Address.valueOf("3.3.3.3"));
    ospfInterface.setIpNetworkMask(Ip4Address.valueOf("255.255.255.255"));
    ChannelConfig channelConfig = EasyMock.createMock(ChannelConfig.class);
    EasyMock.expect(channelConfig.getBufferFactory()).andReturn(new HeapChannelBufferFactory());
    Channel channel = EasyMock.createMock(Channel.class);
    ospfInterface.electRouter(channel);
    assertThat(ospfInterface.dr(), is(notNullValue()));
}
HttpTunnelServerChannelHandler.java 文件源码 项目:httptunnel 阅读 34 收藏 0 点赞 0 评论 0
@Override
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
    final ChannelConfig config = e.getChannel().getConfig();

    config.setPipelineFactory(pipelineFactory);

    super.channelOpen(ctx, e);
}
ChannelAdapter.java 文件源码 项目:athena 阅读 29 收藏 0 点赞 0 评论 0
@Override
public ChannelConfig getConfig() {
    return null;
}
InvocationChannel.java 文件源码 项目:HeliosStreams 阅读 32 收藏 0 点赞 0 评论 0
/**
 * {@inheritDoc}
 * @see org.jboss.netty.channel.Channel#getConfig()
 */
@Override
public ChannelConfig getConfig() {
    // TODO Auto-generated method stub
    return null;
}
PcepClientControllerImplTest.java 文件源码 项目:onos 阅读 30 收藏 0 点赞 0 评论 0
@Override
public ChannelConfig getConfig() {
    // TODO Auto-generated method stub
    return null;
}
ChannelAdapter.java 文件源码 项目:onos 阅读 33 收藏 0 点赞 0 评论 0
@Override
public ChannelConfig getConfig() {
    return null;
}


问题


面经


文章

微信
公众号

扫码关注公众号