Package org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos

Examples of org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProtoOrBuilder


    viaProto = true;
  }

  @Override
  public LocalResource getResource() {
    ResourceLocalizationSpecProtoOrBuilder p = viaProto ? proto : builder;
    if (resource != null) {
      return resource;
    }
    if (!p.hasResource()) {
      return null;
    }
    resource = new LocalResourcePBImpl(p.getResource());
    return resource;
  }
View Full Code Here


    resource = rsrc;
  }

  @Override
  public URL getDestinationDirectory() {
    ResourceLocalizationSpecProtoOrBuilder p = viaProto ? proto : builder;
    if (destinationDirectory != null) {
      return destinationDirectory;
    }
    if (!p.hasDestinationDirectory()) {
      return null;
    }
    destinationDirectory = new URLPBImpl(p.getDestinationDirectory());
    return destinationDirectory;
  }
View Full Code Here

    }
    viaProto = false;
  }

  private void mergeLocalToBuilder() {
    ResourceLocalizationSpecProtoOrBuilder l = viaProto ? proto : builder;
    if (this.resource != null
        && !(l.getResource()
          .equals(((LocalResourcePBImpl) resource).getProto()))) {
      maybeInitBuilder();
      builder.setResource(((LocalResourcePBImpl) resource).getProto());
    }
    if (this.destinationDirectory != null
        && !(l.getDestinationDirectory()
          .equals(((URLPBImpl) destinationDirectory).getProto()))) {
      maybeInitBuilder();
      builder.setDestinationDirectory(((URLPBImpl) destinationDirectory)
        .getProto());
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProtoOrBuilder

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.