Java 类org.apache.hadoop.hdfs.protocol.proto.AclProtos.GetAclStatusResponseProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static AclStatus convert(GetAclStatusResponseProto e) {
  AclStatusProto r = e.getResult();
  AclStatus.Builder builder = new AclStatus.Builder();
  builder.owner(r.getOwner()).group(r.getGroup()).stickyBit(r.getSticky())
      .addEntries(convertAclEntry(r.getEntriesList()));
  if (r.hasPermission()) {
    builder.setPermission(convert(r.getPermission()));
  }
  return builder.build();
}
项目:hadoop    文件:PBHelper.java   
public static GetAclStatusResponseProto convert(AclStatus e) {
  AclStatusProto.Builder builder = AclStatusProto.newBuilder();
  builder.setOwner(e.getOwner())
      .setGroup(e.getGroup()).setSticky(e.isStickyBit())
      .addAllEntries(convertAclEntryProto(e.getEntries()));
  if (e.getPermission() != null) {
    builder.setPermission(convert(e.getPermission()));
  }
  AclStatusProto r = builder.build();
  return GetAclStatusResponseProto.newBuilder().setResult(r).build();
}
项目:hadoop    文件:ClientNamenodeProtocolServerSideTranslatorPB.java   
@Override
public GetAclStatusResponseProto getAclStatus(RpcController controller,
    GetAclStatusRequestProto req) throws ServiceException {
  try {
    return PBHelper.convert(server.getAclStatus(req.getSrc()));
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static AclStatus convert(GetAclStatusResponseProto e) {
  AclStatusProto r = e.getResult();
  AclStatus.Builder builder = new AclStatus.Builder();
  builder.owner(r.getOwner()).group(r.getGroup()).stickyBit(r.getSticky())
      .addEntries(convertAclEntry(r.getEntriesList()));
  if (r.hasPermission()) {
    builder.setPermission(convert(r.getPermission()));
  }
  return builder.build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static GetAclStatusResponseProto convert(AclStatus e) {
  AclStatusProto.Builder builder = AclStatusProto.newBuilder();
  builder.setOwner(e.getOwner())
      .setGroup(e.getGroup()).setSticky(e.isStickyBit())
      .addAllEntries(convertAclEntryProto(e.getEntries()));
  if (e.getPermission() != null) {
    builder.setPermission(convert(e.getPermission()));
  }
  AclStatusProto r = builder.build();
  return GetAclStatusResponseProto.newBuilder().setResult(r).build();
}
项目:aliyun-oss-hadoop-fs    文件:ClientNamenodeProtocolServerSideTranslatorPB.java   
@Override
public GetAclStatusResponseProto getAclStatus(RpcController controller,
    GetAclStatusRequestProto req) throws ServiceException {
  try {
    return PBHelperClient.convert(server.getAclStatus(req.getSrc()));
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:big-c    文件:PBHelper.java   
public static AclStatus convert(GetAclStatusResponseProto e) {
  AclStatusProto r = e.getResult();
  AclStatus.Builder builder = new AclStatus.Builder();
  builder.owner(r.getOwner()).group(r.getGroup()).stickyBit(r.getSticky())
      .addEntries(convertAclEntry(r.getEntriesList()));
  if (r.hasPermission()) {
    builder.setPermission(convert(r.getPermission()));
  }
  return builder.build();
}
项目:big-c    文件:PBHelper.java   
public static GetAclStatusResponseProto convert(AclStatus e) {
  AclStatusProto.Builder builder = AclStatusProto.newBuilder();
  builder.setOwner(e.getOwner())
      .setGroup(e.getGroup()).setSticky(e.isStickyBit())
      .addAllEntries(convertAclEntryProto(e.getEntries()));
  if (e.getPermission() != null) {
    builder.setPermission(convert(e.getPermission()));
  }
  AclStatusProto r = builder.build();
  return GetAclStatusResponseProto.newBuilder().setResult(r).build();
}
项目:big-c    文件:ClientNamenodeProtocolServerSideTranslatorPB.java   
@Override
public GetAclStatusResponseProto getAclStatus(RpcController controller,
    GetAclStatusRequestProto req) throws ServiceException {
  try {
    return PBHelper.convert(server.getAclStatus(req.getSrc()));
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ClientNamenodeProtocolServerSideTranslatorPB.java   
@Override
public GetAclStatusResponseProto getAclStatus(RpcController controller,
    GetAclStatusRequestProto req) throws ServiceException {
  try {
    return PBHelper.convert(server.getAclStatus(req.getSrc()));
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:FlexMap    文件:ClientNamenodeProtocolServerSideTranslatorPB.java   
@Override
public GetAclStatusResponseProto getAclStatus(RpcController controller,
    GetAclStatusRequestProto req) throws ServiceException {
  try {
    return PBHelper.convert(server.getAclStatus(req.getSrc()));
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-on-lustre2    文件:ClientNamenodeProtocolServerSideTranslatorPB.java   
@Override
public GetAclStatusResponseProto getAclStatus(RpcController controller,
    GetAclStatusRequestProto req) throws ServiceException {
  try {
    return PBHelper.convert(server.getAclStatus(req.getSrc()));
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static AclStatus convert(GetAclStatusResponseProto e) {
  AclStatusProto r = e.getResult();
  return new AclStatus.Builder().owner(r.getOwner()).group(r.getGroup())
      .stickyBit(r.getSticky())
      .addEntries(convertAclEntry(r.getEntriesList())).build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static GetAclStatusResponseProto convert(AclStatus e) {
  AclStatusProto r = AclStatusProto.newBuilder().setOwner(e.getOwner())
      .setGroup(e.getGroup()).setSticky(e.isStickyBit())
      .addAllEntries(convertAclEntryProto(e.getEntries())).build();
  return GetAclStatusResponseProto.newBuilder().setResult(r).build();
}
项目:FlexMap    文件:PBHelper.java   
public static AclStatus convert(GetAclStatusResponseProto e) {
  AclStatusProto r = e.getResult();
  return new AclStatus.Builder().owner(r.getOwner()).group(r.getGroup())
      .stickyBit(r.getSticky())
      .addEntries(convertAclEntry(r.getEntriesList())).build();
}
项目:FlexMap    文件:PBHelper.java   
public static GetAclStatusResponseProto convert(AclStatus e) {
  AclStatusProto r = AclStatusProto.newBuilder().setOwner(e.getOwner())
      .setGroup(e.getGroup()).setSticky(e.isStickyBit())
      .addAllEntries(convertAclEntryProto(e.getEntries())).build();
  return GetAclStatusResponseProto.newBuilder().setResult(r).build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static AclStatus convert(GetAclStatusResponseProto e) {
  AclStatusProto r = e.getResult();
  return new AclStatus.Builder().owner(r.getOwner()).group(r.getGroup())
      .stickyBit(r.getSticky())
      .addEntries(convertAclEntry(r.getEntriesList())).build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static GetAclStatusResponseProto convert(AclStatus e) {
  AclStatusProto r = AclStatusProto.newBuilder().setOwner(e.getOwner())
      .setGroup(e.getGroup()).setSticky(e.isStickyBit())
      .addAllEntries(convertAclEntryProto(e.getEntries())).build();
  return GetAclStatusResponseProto.newBuilder().setResult(r).build();
}