Examples of RetCtrInfo


Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

    public void setUp() throws Exception {
        dc = new DebugCounter();
        mctr = dc.moduleCounters;

        mctr.put("switch", new ConcurrentHashMap<String, CounterIndexStore>());
        RetCtrInfo rci = dc.getCounterId("switch", "01");
        dc.addToModuleCounterHierarchy("switch", 4, rci);
        rci = dc.getCounterId("switch", "01/pktin");
        dc.addToModuleCounterHierarchy("switch", 42, rci);
        rci = dc.getCounterId("switch", "01/pktout");
        dc.addToModuleCounterHierarchy("switch", 47, rci);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

    }


    @Test
    public void testHierarchyAll() {
        RetCtrInfo rci = dc.new RetCtrInfo();
        ArrayList<Integer> retval = new ArrayList<Integer>();

        for (String moduleName : mctr.keySet()) {
            ArrayList<Integer> ids = dc.getHierarchyBelow(moduleName, rci);
            retval.addAll(ids);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

    }


    @Test
    public void testHierarchy0() {
        RetCtrInfo rci = dc.getCounterId("switch", "");
        ArrayList<Integer> retval = dc.getHierarchyBelow("switch", rci);
        List<Integer> temp  = Arrays.asList(2, 5);
        exp.removeAll(temp);
        log.info("got==> {}, exp=> {}", retval, exp);
        isEqual(retval, exp);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

        isEqual(retval, exp);
    }

    @Test
    public void testHierarchy0a() {
        RetCtrInfo rci = dc.getCounterId("linkd", "");
        ArrayList<Integer> retval = dc.getHierarchyBelow("linkd", rci);
        List<Integer> temp  = Arrays.asList(4, 42, 47, 427, 428, 5, 8);
        exp.removeAll(temp);
        log.info("got==> {}, exp=> {}", retval, exp);
        isEqual(retval, exp);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

        isEqual(retval, exp);
    }

    @Test
    public void testHierarchy1() {
        RetCtrInfo rci = dc.getCounterId("switch", "01");
        ArrayList<Integer> retval = dc.getHierarchyBelow("switch", rci);
        List<Integer> temp  = Arrays.asList(4, 8, 2, 5);
        exp.removeAll(temp);
        log.info("got==> {}, exp=> {}", retval, exp);
        isEqual(retval, exp);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

        isEqual(retval, exp);
    }

    @Test
    public void testHierarchy1a() {
        RetCtrInfo rci = dc.getCounterId("switch", "02");
        ArrayList<Integer> retval = dc.getHierarchyBelow("switch", rci);
        List<Integer> temp  = Arrays.asList(4, 42, 47, 427, 428, 2, 5, 8);
        exp.removeAll(temp);
        log.info("got==> {}, exp=> {}", retval, exp);
        isEqual(retval, exp);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

        isEqual(retval, exp);
    }

    @Test
    public void testHierarchy1b() {
        RetCtrInfo rci = dc.getCounterId("sinkd", "tunnel");
        ArrayList<Integer> retval = dc.getHierarchyBelow("sinkd", rci);
        List<Integer> temp  = Arrays.asList(4, 42, 47, 427, 428, 2, 5, 8);
        exp.removeAll(temp);
        log.info("got==> {}, exp=> {}", retval, exp);
        isEqual(retval, exp);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

        isEqual(retval, exp);
    }

    @Test
    public void testHierarchy2() {
        RetCtrInfo rci = dc.getCounterId("switch", "01/pktin");
        ArrayList<Integer> retval = dc.getHierarchyBelow("switch", rci);
        List<Integer> temp  = Arrays.asList(4, 42, 47, 2, 5, 8);
        exp.removeAll(temp);
        log.info("got==> {}, exp=> {}", retval, exp);
        isEqual(retval, exp);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

        isEqual(retval, exp);
    }

    @Test
    public void testHierarchy2a() {
        RetCtrInfo rci = dc.getCounterId("switch", "01/pktout");
        ArrayList<Integer> retval = dc.getHierarchyBelow("switch", rci);
        List<Integer> temp  = Arrays.asList(4, 42, 47, 427, 428, 2, 5, 8);
        exp.removeAll(temp);
        log.info("got==> {}, exp=> {}", retval, exp);
        isEqual(retval, exp);
View Full Code Here

Examples of net.floodlightcontroller.debugcounter.DebugCounter.RetCtrInfo

        isEqual(retval, exp);
    }

    @Test
    public void testHierarchy2b() {
        RetCtrInfo rci = dc.getCounterId("switch", "02/pktin");
        ArrayList<Integer> retval = dc.getHierarchyBelow("switch", rci);
        List<Integer> temp  = Arrays.asList(4, 42, 47, 427, 428, 2, 5, 8);
        exp.removeAll(temp);
        log.info("got==> {}, exp=> {}", retval, exp);
        isEqual(retval, exp);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.