use of net.dempsy.cluster.local.LocalClusterSessionFactory in project Dempsy by Dempsy.
the class TestSimpleRoutingStrategy method setup.
@Before
public void setup() {
sessFact = new LocalClusterSessionFactory();
session = sessFact.createSession();
sched = new AutoDisposeSingleThreadScheduler("test");
infra = makeInfra(session, sched);
}
use of net.dempsy.cluster.local.LocalClusterSessionFactory in project Dempsy by Dempsy.
the class TestContainer method setUp.
@Before
public void setUp() throws Exception {
justThrowMe = null;
throwMeInActivation = null;
track(new SystemPropertyManager()).set("container-type", containerId);
context = track(new ClassPathXmlApplicationContext(ctx));
sessionFactory = new LocalClusterSessionFactory();
final Node node = context.getBean(Node.class);
manager = track(new NodeManager()).node(node).collaborator(track(sessionFactory.createSession())).start();
statsCollector = manager.getClusterStatsCollector(new ClusterId("test-app", "test-cluster"));
container = manager.getContainers().get(0);
assertTrue(poll(manager, m -> m.isReady()));
}
Aggregations