Java 类org.jboss.netty.channel.ChannelConfig 实例源码

项目:athena    文件:OspfInterfaceImplTest.java   
/**
 * 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()));
}
项目:onos    文件:OspfInterfaceImplTest.java   
/**
 * 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()));
}
项目:httptunnel    文件:HttpTunnelServerChannelHandler.java   
@Override
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
    final ChannelConfig config = e.getChannel().getConfig();

    config.setPipelineFactory(pipelineFactory);

    super.channelOpen(ctx, e);
}
项目:athena    文件:ChannelAdapter.java   
@Override
public ChannelConfig getConfig() {
    return null;
}
项目:HeliosStreams    文件:InvocationChannel.java   
/**
 * {@inheritDoc}
 * @see org.jboss.netty.channel.Channel#getConfig()
 */
@Override
public ChannelConfig getConfig() {
    // TODO Auto-generated method stub
    return null;
}
项目:onos    文件:PcepClientControllerImplTest.java   
@Override
public ChannelConfig getConfig() {
    // TODO Auto-generated method stub
    return null;
}
项目:onos    文件:ChannelAdapter.java   
@Override
public ChannelConfig getConfig() {
    return null;
}