Package com.taobao.metamorphosis.gregor.master.SamsaMasterBroker

Examples of com.taobao.metamorphosis.gregor.master.SamsaMasterBroker.RecoverPartition


    @Test
    public void testFork() {
        final List<RecoverPartition> parts = new ArrayList<RecoverPartition>();
        for (int i = 0; i < 10; i++) {
            final String topic = "test" + i % 2;
            parts.add(new RecoverPartition(topic, i));
        }

        System.out.println(parts);
        final List<List<RecoverPartition>> forks = SamsaMasterBroker.fork(parts, 3);
        System.out.println(forks);
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.gregor.master.SamsaMasterBroker.RecoverPartition

Copyright © 2018 www.massapicom. 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.