org.jgroups.tests.bla8a Maven / Gradle / Ivy
package org.jgroups.tests;
import org.jgroups.JChannel;
import org.jgroups.blocks.RequestOptions;
import org.jgroups.blocks.RpcDispatcher;
import org.jgroups.util.RspList;
import org.jgroups.util.Util;
/**
* @author Bela Ban
* @since x.y
*/
public class bla8a {
protected JChannel a, b;
protected RpcDispatcher disp1, disp2;
protected int counter=1;
public int foo() {
return counter++;
}
protected void start() throws Exception {
a=new JChannel(Util.getTestStack()).name("A");
disp1=new RpcDispatcher(a, this);
a.connect("demo");
b=new JChannel(Util.getTestStack()).name("B");
disp2=new RpcDispatcher(b, this);
b.connect("demo");
Util.waitUntilAllChannelsHaveSameSize(10000, 500, a,b);
while(true) {
Util.keyPress("");
RspList
© 2015 - 2025 Weber Informatics LLC | Privacy Policy