Java 类net.floodlightcontroller.core.internal.OFConnectionCounters 实例源码

项目:fresco_floodlight    文件:OFConnectionCountersTest.java   
@Override
@Before
public void setUp() throws Exception {
    dc = new DebugCounterServiceImpl();
    dc.registerModule(OFConnectionCounters.COUNTER_MODULE);
    auxId = OFAuxId.of(5);
    dpId = DatapathId.of(5);
    counters = new OFConnectionCounters(dc, dpId, auxId);
}
项目:fresco_floodlight    文件:OFConnectionTest.java   
@Before
public void setUp() throws Exception {
    factory = OFFactories.getFactory(OFVersion.OF_13);
    switchId = DatapathId.of(1);
    timer = new HashedWheelTimer();
    channel = EasyMock.createMock(Channel.class);        
    IDebugCounterService debugCounterService = new DebugCounterServiceImpl();
    debugCounterService.registerModule(OFConnectionCounters.COUNTER_MODULE);
    conn = new OFConnection(switchId, factory, channel, OFAuxId.MAIN,
                            debugCounterService, timer);
    eventLoop = new TestEventLoop();

    expect(channel.eventLoop()).andReturn(eventLoop).anyTimes();
}
项目:SDN-Multicast    文件:OFConnectionCountersTest.java   
@Override
@Before
public void setUp() throws Exception {
    dc = new DebugCounterServiceImpl();
    dc.registerModule(OFConnectionCounters.COUNTER_MODULE);
    auxId = OFAuxId.of(5);
    dpId = DatapathId.of(5);
    counters = new OFConnectionCounters(dc, dpId, auxId);
}
项目:SDN-Multicast    文件:OFConnectionTest.java   
@Before
public void setUp() throws Exception {
    factory = OFFactories.getFactory(OFVersion.OF_13);
    switchId = DatapathId.of(1);
    timer = new HashedWheelTimer();
    channel = EasyMock.createMock(Channel.class);        
    IDebugCounterService debugCounterService = new DebugCounterServiceImpl();
    debugCounterService.registerModule(OFConnectionCounters.COUNTER_MODULE);
    conn = new OFConnection(switchId, factory, channel, OFAuxId.MAIN,
                            debugCounterService, timer);
    eventLoop = new TestEventLoop();

    expect(channel.eventLoop()).andReturn(eventLoop).anyTimes();
}
项目:arscheduler    文件:OFConnectionCountersTest.java   
@Override
@Before
public void setUp() throws Exception {
    dc = new DebugCounterServiceImpl();
    dc.registerModule(OFConnectionCounters.COUNTER_MODULE);
    auxId = OFAuxId.of(5);
    dpId = DatapathId.of(5);
    counters = new OFConnectionCounters(dc, dpId, auxId);
}
项目:arscheduler    文件:OFConnectionTest.java   
@Before
public void setUp() throws Exception {
    factory = OFFactories.getFactory(OFVersion.OF_13);
    switchId = DatapathId.of(1);
    timer = new HashedWheelTimer();
    channel = EasyMock.createMock(Channel.class);        
    IDebugCounterService debugCounterService = new DebugCounterServiceImpl();
    debugCounterService.registerModule(OFConnectionCounters.COUNTER_MODULE);
    conn = new OFConnection(switchId, factory, channel, OFAuxId.MAIN,
                            debugCounterService, timer);
    eventLoop = new TestEventLoop();

    expect(channel.eventLoop()).andReturn(eventLoop).anyTimes();
}
项目:floodlight1.2-delay    文件:OFConnectionCountersTest.java   
@Override
@Before
public void setUp() throws Exception {
    dc = new DebugCounterServiceImpl();
    dc.registerModule(OFConnectionCounters.COUNTER_MODULE);
    auxId = OFAuxId.of(5);
    dpId = DatapathId.of(5);
    counters = new OFConnectionCounters(dc, dpId, auxId);
}
项目:floodlight1.2-delay    文件:OFConnectionTest.java   
@Before
public void setUp() throws Exception {
    factory = OFFactories.getFactory(OFVersion.OF_13);
    switchId = DatapathId.of(1);
    timer = new HashedWheelTimer();
    channel = EasyMock.createMock(Channel.class);        
    IDebugCounterService debugCounterService = new DebugCounterServiceImpl();
    debugCounterService.registerModule(OFConnectionCounters.COUNTER_MODULE);
    conn = new OFConnection(switchId, factory, channel, OFAuxId.MAIN,
                            debugCounterService, timer);
    eventLoop = new TestEventLoop();

    expect(channel.eventLoop()).andReturn(eventLoop).anyTimes();
}
项目:floodlight-hardware    文件:OFConnectionCountersTest.java   
@Override
@Before
public void setUp() throws Exception {
    dc = new DebugCounterServiceImpl();
    dc.registerModule(OFConnectionCounters.COUNTER_MODULE);
    auxId = OFAuxId.of(5);
    dpId = DatapathId.of(5);
    counters = new OFConnectionCounters(dc, dpId, auxId);
}
项目:floodlight-hardware    文件:OFConnectionTest.java   
@Before
public void setUp() throws Exception {
    factory = OFFactories.getFactory(OFVersion.OF_13);
    switchId = DatapathId.of(1);
    timer = new HashedWheelTimer();
    channel = EasyMock.createMock(Channel.class);        
    IDebugCounterService debugCounterService = new DebugCounterServiceImpl();
    debugCounterService.registerModule(OFConnectionCounters.COUNTER_MODULE);
    conn = new OFConnection(switchId, factory, channel, OFAuxId.MAIN,
                            debugCounterService, timer);
    eventLoop = new TestEventLoop();

    expect(channel.eventLoop()).andReturn(eventLoop).anyTimes();
}
项目:ACAMPController    文件:OFConnectionCountersTest.java   
@Override
@Before
public void setUp() throws Exception {
    dc = new DebugCounterServiceImpl();
    dc.registerModule(OFConnectionCounters.COUNTER_MODULE);
    auxId = OFAuxId.of(5);
    dpId = DatapathId.of(5);
    counters = new OFConnectionCounters(dc, dpId, auxId);
}
项目:ACAMPController    文件:OFConnectionTest.java   
@Before
public void setUp() throws Exception {
    factory = OFFactories.getFactory(OFVersion.OF_13);
    switchId = DatapathId.of(1);
    timer = new HashedWheelTimer();
    channel = EasyMock.createMock(Channel.class);        
    IDebugCounterService debugCounterService = new DebugCounterServiceImpl();
    debugCounterService.registerModule(OFConnectionCounters.COUNTER_MODULE);
    conn = new OFConnection(switchId, factory, channel, OFAuxId.MAIN,
                            debugCounterService, timer);
    eventLoop = new TestEventLoop();

    expect(channel.eventLoop()).andReturn(eventLoop).anyTimes();
}