Package org.apache.slider.server.services.curator

Examples of org.apache.slider.server.services.curator.CuratorHelper


    bind(GenericExceptionHandler.class);
    // bind the REST interface
    bind(AMWebServices.class);
    //bind(AMAgentWebServices.class);

    CuratorHelper curatorHelper = registry.getCuratorHelper();
    ServiceDiscovery<ServiceInstanceData> discovery = registry.getDiscovery();
    RegistryDiscoveryContext discoveryContext = curatorHelper
                                                        .createDiscoveryContext(
                                                          discovery);

    bind(RegistryDiscoveryContext.class).toInstance(discoveryContext);
    RegistryRestResources registryRestResources =
View Full Code Here


   * @param zkPath
   * @return
   */
  public SliderRegistryService startRegistrationService(
    String zkConnection, String zkPath) {
    CuratorHelper curatorHelper =
      new CuratorHelper(getConfig(), zkConnection);

    //registry will start curator as well as the binder, in the correct order
    SliderRegistryService registryBinderService =
      curatorHelper.createRegistryBinderService(zkPath);
    deployChildService(registryBinderService);
    return registryBinderService;
  }
View Full Code Here

   * @param zkPath
   * @return
   */
  public SliderRegistryService startRegistrationService(
    String zkConnection, String zkPath) {
    CuratorHelper curatorHelper =
      new CuratorHelper(getConfig(), zkConnection);

    //registry will start curator as well as the binder, in the correct order
    SliderRegistryService registryBinderService =
      curatorHelper.createRegistryBinderService(zkPath);
    deployChildService(registryBinderService);
    return registryBinderService;
  }
View Full Code Here

    bind(GenericExceptionHandler.class);
    // bind the REST interface
    bind(AMWebServices.class);
    //bind(AMAgentWebServices.class);

    CuratorHelper curatorHelper = registry.getCuratorHelper();
    ServiceDiscovery<ServiceInstanceData> discovery = registry.getDiscovery();
    RegistryDiscoveryContext discoveryContext = curatorHelper
                                                        .createDiscoveryContext(
                                                          discovery);

    bind(RegistryDiscoveryContext.class).toInstance(discoveryContext);
    RegistryRestResources registryRestResources =
View Full Code Here

TOP

Related Classes of org.apache.slider.server.services.curator.CuratorHelper

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.