@Test
  public void testDisposableRegistry() {
    final LuceneIndexEngine indexEngine =
        new LuceneIndexEngine(
            mock(FieldFactory.class), mock(MetaModelStore.class), mock(LuceneIndexManager.class));

    assertTrue(PriorityDisposableRegistry.getDisposables().contains(indexEngine));
  }
Esempio n. 2
0
 public ClusterServiceHelix(
     final String clusterName,
     final String zkAddress,
     final String instanceName,
     final String resourceName,
     final MessageHandlerResolver messageHandlerResolver) {
   this.clusterName = clusterName;
   this.instanceName = instanceName;
   this.resourceName = resourceName;
   addMessageHandlerResolver(messageHandlerResolver);
   this.participantManager = getZkHelixManager(clusterName, zkAddress, instanceName);
   PriorityDisposableRegistry.register(this);
   start();
 }