Package org.apache.hadoop.gateway.services.hostmap

Examples of org.apache.hadoop.gateway.services.hostmap.FileBasedHostMapper


  }

  @Override
  public void initialize( UrlRewriteEnvironment environment, HostmapFunctionDescriptor descriptor ) throws Exception {
    URL url = environment.getResource( DESCRIPTOR_DEFAULT_LOCATION );
    hostMapper = new FileBasedHostMapper( url );
    clusterName = environment.getAttributeGatewayServices.GATEWAY_CLUSTER_ATTRIBUTE );
    GatewayServices services = environment.getAttribute( GatewayServices.GATEWAY_SERVICES_ATTRIBUTE );
    if( clusterName != null && services != null ) {
      hostMapperService = services.getService( GatewayServices.HOST_MAPPING_SERVICE );
      if( hostMapperService != null ) {
View Full Code Here

TOP

Related Classes of org.apache.hadoop.gateway.services.hostmap.FileBasedHostMapper

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.