@AfterClass public static void shutdown() throws InterruptedException { speaker1.shutdown(); speaker2.shutdown(); Thread.sleep(1000l); Parameters.INSTANCE.setProperty(ClusterService.PROTOCOL_PROPERTY, "tcp"); Parameters.INSTANCE.setProperty(MeMember.ENCRYPTION_PROPERTY, "false"); }
@BeforeClass public static void init() throws InterruptedException { Parameters.INSTANCE.setProperty(ClusterService.PROTOCOL_PROPERTY, "udp"); Parameters.INSTANCE.setProperty(MeMember.ENCRYPTION_PROPERTY, "true"); speaker1 = BigIO.bootstrap(); speaker2 = BigIO.bootstrap(); speaker2.addListener("MyUDPTopic", listener); Thread.sleep(1000l); }