Package org.apache.slider.core.registry.info

Examples of org.apache.slider.core.registry.info.RegisteredEndpoint


  public static void buildEndpointDetails(Map<String, String> details,
      ServiceInstanceData self) {
    Map<String, RegisteredEndpoint> endpoints =
        self.getRegistryView(true).endpoints;
    for (Map.Entry<String, RegisteredEndpoint> endpoint : endpoints.entrySet()) {
      RegisteredEndpoint val = endpoint.getValue();
      if (val.type.equals(RegisteredEndpoint.TYPE_URL)) {
          details.put(val.description, val.value);
      }
    }
  }
View Full Code Here



    // IPC services
    instanceData.externalView.endpoints.put(
        CustomRegistryConstants.AM_IPC_PROTOCOL,
        new RegisteredEndpoint(rpcServiceAddress,
            RegisteredEndpoint.PROTOCOL_HADOOP_PROTOBUF,
            "Slider AM RPC") );


    // internal services
View Full Code Here

    super.applyInitialRegistryDefinitions(amWebAPI, instanceData);

    try {
      instanceData.internalView.endpoints.put(
          CustomRegistryConstants.AGENT_REST_API,
          new RegisteredEndpoint(
              new URL(amWebAPI, SLIDER_PATH_AGENTS),
              "Agent REST API") );
    } catch (URISyntaxException e) {
      throw new IOException(e);
    }
View Full Code Here

  private void logEndpoints(ServiceInstanceData instance) {
      Map<String, RegisteredEndpoint> endpoints =
          instance.listEndpoints(true);
      for (Map.Entry<String, RegisteredEndpoint> entry : endpoints.entrySet()) {
        String name = entry.getKey();
        RegisteredEndpoint endpoint = entry.getValue();
        log.info("  {}", endpoint);
    }
  }
View Full Code Here

            new HdfsConfiguration(true)) );


    try {
      RegistryView externalView = instanceData.externalView;
      RegisteredEndpoint webUI =
          new RegisteredEndpoint(amWebAPI, "Application Master Web UI");

      externalView.endpoints.put(CommonRegistryConstants.WEB_UI, webUI);

      externalView.endpoints.put(
          CustomRegistryConstants.MANAGEMENT_REST_API,
          new RegisteredEndpoint(
              new URL(amWebAPI, SLIDER_PATH_MANAGEMENT),
              "Management REST API") );

      externalView.endpoints.put(
          CustomRegistryConstants.REGISTRY_REST_API,
          new RegisteredEndpoint(
              new URL(amWebAPI, RestPaths.SLIDER_PATH_REGISTRY + "/" +
                                RestPaths.REGISTRY_SERVICE),
              "Registry Web Service" ) );

      URL publisherURL = new URL(amWebAPI, SLIDER_PATH_PUBLISHER);
      externalView.endpoints.put(
          CustomRegistryConstants.PUBLISHER_REST_API,
          new RegisteredEndpoint(
              publisherURL,
              "Publisher Service") );
     
    /*
     * Set the configurations URL.
View Full Code Here

  public static void buildEndpointDetails(Map<String, String> details,
      ServiceInstanceData self) {
    Map<String, RegisteredEndpoint> endpoints =
        self.getRegistryView(true).endpoints;
    for (Map.Entry<String, RegisteredEndpoint> endpoint : endpoints.entrySet()) {
      RegisteredEndpoint val = endpoint.getValue();
      if (val.type.equals(RegisteredEndpoint.TYPE_URL)) {
          details.put(val.description, val.address);
      }
    }
  }
View Full Code Here

    );

    try {
      instanceData.internalView.endpoints.put(
          CustomRegistryConstants.AGENT_REST_API,
          new RegisteredEndpoint(
              new URL(secureWebAPI, SLIDER_PATH_AGENTS),
              "Agent REST API"));
    } catch (URISyntaxException e) {
      throw new IOException(e);
    }
View Full Code Here


    // IPC services
    instanceData.externalView.endpoints.put(
        CustomRegistryConstants.AM_IPC_PROTOCOL,
        new RegisteredEndpoint(rpcServiceAddress,
            RegisteredEndpoint.PROTOCOL_HADOOP_PROTOBUF,
            "Slider AM RPC") );


    // internal services
View Full Code Here

  private void logEndpoints(ServiceInstanceData instance) {
      Map<String, RegisteredEndpoint> endpoints =
          instance.listEndpoints(true);
      for (Map.Entry<String, RegisteredEndpoint> entry : endpoints.entrySet()) {
        String name = entry.getKey();
        RegisteredEndpoint endpoint = entry.getValue();
        log.info("  {}", endpoint);
    }
  }
View Full Code Here

            new HdfsConfiguration(true)) );


    try {
      RegistryView externalView = instanceData.externalView;
      RegisteredEndpoint webUI =
          new RegisteredEndpoint(unsecureWebAPI, "Application Master Web UI");

      externalView.endpoints.put(CommonRegistryConstants.WEB_UI, webUI);

      externalView.endpoints.put(
          CustomRegistryConstants.MANAGEMENT_REST_API,
          new RegisteredEndpoint(
              new URL(unsecureWebAPI, SLIDER_PATH_MANAGEMENT),
              "Management REST API") );

      externalView.endpoints.put(
          CustomRegistryConstants.REGISTRY_REST_API,
          new RegisteredEndpoint(
              new URL(unsecureWebAPI, RestPaths.SLIDER_PATH_REGISTRY + "/" +
                                RestPaths.REGISTRY_SERVICE),
              "Registry Web Service" ) );

      URL publisherURL = new URL(unsecureWebAPI, SLIDER_PATH_PUBLISHER);
      externalView.endpoints.put(
          CustomRegistryConstants.PUBLISHER_REST_API,
          new RegisteredEndpoint(
              publisherURL,
              "Publisher Service") );
     
    /*
     * Set the configurations URL.
View Full Code Here

TOP

Related Classes of org.apache.slider.core.registry.info.RegisteredEndpoint

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.