use of org.apache.catalina.tribes.group.GroupChannel in project tomcat by apache.
the class TestDataIntegrity method setUp.
@Before
public void setUp() throws Exception {
channel1 = new GroupChannel();
channel1.addInterceptor(new MessageDispatchInterceptor());
channel2 = new GroupChannel();
channel2.addInterceptor(new MessageDispatchInterceptor());
listener1 = new Listener();
channel2.addChannelListener(listener1);
TesterUtil.addRandomDomain(new ManagedChannel[] { channel1, channel2 });
channel1.start(Channel.DEFAULT);
channel2.start(Channel.DEFAULT);
}
use of org.apache.catalina.tribes.group.GroupChannel in project tomcat by apache.
the class TestRemoteProcessException method setUp.
@Before
public void setUp() throws Exception {
channel1 = new GroupChannel();
channel2 = new GroupChannel();
listener1 = new Listener();
channel2.addChannelListener(listener1);
TesterUtil.addRandomDomain(new ManagedChannel[] { channel1, channel2 });
channel1.start(Channel.DEFAULT);
channel2.start(Channel.DEFAULT);
}
use of org.apache.catalina.tribes.group.GroupChannel in project cas by apereo.
the class CasTomcatServletWebServerFactoryClusterTests method verifyOperation.
@Test
public void verifyOperation() {
casTomcatEmbeddedServletContainerCustomizer.customize(casServletWebServerFactory);
val server = casServletWebServerFactory.getWebServer();
try {
server.start();
val tomcatServer = (TomcatWebServer) server;
val cluster = (SimpleTcpCluster) tomcatServer.getTomcat().getEngine().getCluster();
val channel = (GroupChannel) cluster.getChannel();
val membership = channel.getMembershipService();
assertTrue(membership instanceof McastService);
} finally {
server.stop();
}
}
Aggregations