Package com.taobao.metamorphosis.client

Examples of com.taobao.metamorphosis.client.MetaMessageSessionFactory.shutdown()


            Message msg = it.next();
            System.out.println("message body:" + new String(msg.getData()));
        }

        browser.shutdown();
        sessionFactory.shutdown();
    }
}
View Full Code Here


        BooleanCommand resp =
                (BooleanCommand) sessionFactory.getRemotingClient().invokeToGroup(serverUrl, new StatsCommand(0, item));
        if (resp != null) {
            System.out.println(resp.getErrorMsg());
        }
        sessionFactory.shutdown();
    }


    private static ZKConfig initZkConfig(Properties serverProperties) throws IOException {
        final String zkConnect = serverProperties.getProperty("zk.zkConnect");
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.