You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

ServiceDeploymentContributor
package org.apache.hadoop.gateway.deploy;
import org.apache.hadoop.gateway.topology.Service;
public interface ServiceDeploymentContributor {
  // The role of this service deployment contributor.  e.g. WEBHDFS
  String getRole();

  // The name of this service deployment contributor.  Not used yet.
  String getName();
 
  // The list of versions supported.  Each element formatted according to the Maven Enforcer plugin syntax.
  String[] getVersions();

  // Called after provider initializeContribution methods and in arbitrary order relative to other service contributors.
  void initializeContribution( DeploymentContext context );

  // Called per service based on the service's role.
  // Returns a list of resources it added to the descriptor.
  void contributeService( DeploymentContext context, Service service ) throws Exception;

  // Called after all contributors and before provider finalizeContribution methods.
  void finalizeContribution( DeploymentContext context );
}
Toplogy File
<topology>
    <gateway>
    ...
    </gateway>
    ....
    <service>
        <role>HIVE</role>
        <url>http://localhost:10001/cliservice</url>
        <version>0.13.0</version>
    </service>
</topology>

 

Selection

  1. In general the contributor declaring the latest explicit version support that includes the required version is selected.
  2. In the case of a tie selection will continue with the next latest explicit version support
  3. This will continue until a single contributor is selected.
  4. If this is not possible an arbitrary selection will be made from the remaining candidates.

Questions

  • No labels