Package org.apache.helix.controller.context

Examples of org.apache.helix.controller.context.ControllerContextHolder


    }
    Assert.assertTrue(testRebalancerCreated);
    Assert.assertTrue(testRebalancerInvoked);

    // check that context can be extracted
    ControllerContextHolder holder = accessor.getProperty(keyBuilder.controllerContext(db2));
    Assert.assertNotNull(holder);
    Assert.assertNotNull(holder.getContext());
  }
View Full Code Here


    // persist pending contexts
    Map<ContextId, ControllerContext> pendingContexts = contextProvider.getPendingContexts();
    List<PropertyKey> keys = Lists.newArrayList();
    List<ControllerContextHolder> properties = Lists.newArrayList();
    for (ContextId contextId : pendingContexts.keySet()) {
      ControllerContextHolder holder = new ControllerContextHolder(pendingContexts.get(contextId));
      if (holder != null) {
        keys.add(keyBuilder.controllerContext(contextId.stringify()));
        properties.add(holder);
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.helix.controller.context.ControllerContextHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.