Examples of SliderRegistryService


Examples of org.apache.slider.server.services.registry.SliderRegistryService

   */
  @VisibleForTesting
  public List<ServiceInstanceData> actionRegistryList(
      ActionRegistryArgs registryArgs)
      throws YarnException, IOException {
    SliderRegistryService registryService = getRegistry();
    String serviceType = registryArgs.serviceType;
    String name = registryArgs.name;
    List<CuratorServiceInstance<ServiceInstanceData>> instances =
        registryService.findInstances(serviceType, name);
    int size = instances.size();
    if (size == 0) {
      throw new FileNotFoundException("No entries for servicetype "
                                      + serviceType
                                      + " name " + name);
View Full Code Here

Examples of org.apache.slider.server.services.registry.SliderRegistryService

    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

Examples of org.apache.slider.server.services.registry.SliderRegistryService

  public SliderRegistryService createRegistryBinderService(
      String basePath,
      ServiceDiscoveryBuilder<ServiceInstanceData> discoveryBuilder) {
    discoveryBuilder.basePath(basePath);
    return new SliderRegistryService(curator,
        basePath,
        discoveryBuilder.build());
  }
View Full Code Here

Examples of org.apache.slider.server.services.registry.SliderRegistryService

  public SliderRegistryService createRegistryBinderService(
    String basePath) {
    ServiceDiscoveryBuilder<ServiceInstanceData> discoveryBuilder =
      createDiscoveryBuilder();
    //registry will start curator as well as the binder, in the correct order
    SliderRegistryService registryBinderService =
      createRegistryBinderService(basePath, discoveryBuilder);
    return registryBinderService;
  }
View Full Code Here

Examples of org.apache.slider.server.services.registry.SliderRegistryService

    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

Examples of org.apache.slider.server.services.registry.SliderRegistryService

   */
  @VisibleForTesting
  public List<ServiceInstanceData> actionRegistryList(
      ActionRegistryArgs registryArgs)
      throws YarnException, IOException {
    SliderRegistryService registryService = getRegistry();
    String serviceType = registryArgs.serviceType;
    String name = registryArgs.name;
    List<CuratorServiceInstance<ServiceInstanceData>> instances =
        registryService.findInstances(serviceType, name);
    int size = instances.size();
    if (size == 0) {
      throw new FileNotFoundException("No entries for servicetype "
                                      + serviceType
                                      + " name " + name);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.