Package org.apache.slider.server.services.registry

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


    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


  }

  public RegistryDiscoveryContext createDiscoveryContext(
    ServiceDiscovery<ServiceInstanceData> discovery) {
    Preconditions.checkNotNull(discovery);
    return new RegistryDiscoveryContext(discovery,
                                        new RandomStrategy<ServiceInstanceData>(),
                                        RegistryServiceConstants.INSTANCE_REFRESH_MS,
                                        ServiceInstanceData.class);

  }
View Full Code Here

    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.registry.RegistryDiscoveryContext

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.