Java 类org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.FsServerDefaultsProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(), 
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      PBHelper.convert(fs.getChecksumType()));
}
项目:hadoop    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
    setBlockSize(fs.getBlockSize()).
    setBytesPerChecksum(fs.getBytesPerChecksum()).
    setWritePacketSize(fs.getWritePacketSize())
    .setReplication(fs.getReplication())
    .setFileBufferSize(fs.getFileBufferSize())
    .setEncryptDataTransfer(fs.getEncryptDataTransfer())
    .setTrashInterval(fs.getTrashInterval())
    .setChecksumType(PBHelper.convert(fs.getChecksumType()))
    .build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(),
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      convert(fs.getChecksumType()));
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
      setBlockSize(fs.getBlockSize()).
      setBytesPerChecksum(fs.getBytesPerChecksum()).
      setWritePacketSize(fs.getWritePacketSize())
      .setReplication(fs.getReplication())
      .setFileBufferSize(fs.getFileBufferSize())
      .setEncryptDataTransfer(fs.getEncryptDataTransfer())
      .setTrashInterval(fs.getTrashInterval())
      .setChecksumType(convert(fs.getChecksumType()))
      .build();
}
项目:big-c    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(), 
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      PBHelper.convert(fs.getChecksumType()));
}
项目:big-c    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
    setBlockSize(fs.getBlockSize()).
    setBytesPerChecksum(fs.getBytesPerChecksum()).
    setWritePacketSize(fs.getWritePacketSize())
    .setReplication(fs.getReplication())
    .setFileBufferSize(fs.getFileBufferSize())
    .setEncryptDataTransfer(fs.getEncryptDataTransfer())
    .setTrashInterval(fs.getTrashInterval())
    .setChecksumType(PBHelper.convert(fs.getChecksumType()))
    .build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(), 
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      PBHelper.convert(fs.getChecksumType()));
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
    setBlockSize(fs.getBlockSize()).
    setBytesPerChecksum(fs.getBytesPerChecksum()).
    setWritePacketSize(fs.getWritePacketSize())
    .setReplication(fs.getReplication())
    .setFileBufferSize(fs.getFileBufferSize())
    .setEncryptDataTransfer(fs.getEncryptDataTransfer())
    .setTrashInterval(fs.getTrashInterval())
    .setChecksumType(PBHelper.convert(fs.getChecksumType()))
    .build();
}
项目:hadoop-plus    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(), 
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      PBHelper.convert(fs.getChecksumType()));
}
项目:hadoop-plus    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
    setBlockSize(fs.getBlockSize()).
    setBytesPerChecksum(fs.getBytesPerChecksum()).
    setWritePacketSize(fs.getWritePacketSize())
    .setReplication(fs.getReplication())
    .setFileBufferSize(fs.getFileBufferSize())
    .setEncryptDataTransfer(fs.getEncryptDataTransfer())
    .setTrashInterval(fs.getTrashInterval())
    .setChecksumType(PBHelper.convert(fs.getChecksumType()))
    .build();
}
项目:FlexMap    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(), 
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      PBHelper.convert(fs.getChecksumType()));
}
项目:FlexMap    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
    setBlockSize(fs.getBlockSize()).
    setBytesPerChecksum(fs.getBytesPerChecksum()).
    setWritePacketSize(fs.getWritePacketSize())
    .setReplication(fs.getReplication())
    .setFileBufferSize(fs.getFileBufferSize())
    .setEncryptDataTransfer(fs.getEncryptDataTransfer())
    .setTrashInterval(fs.getTrashInterval())
    .setChecksumType(PBHelper.convert(fs.getChecksumType()))
    .build();
}
项目:hops    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) {
    return null;
  }
  return new FsServerDefaults(fs.getBlockSize(), fs.getBytesPerChecksum(),
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(), fs.getEncryptDataTransfer(),
      fs.getTrashInterval(), PBHelper.convert(fs.getChecksumType()),
      fs.getQuotaEnabled());
}
项目:hops    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) {
    return null;
  }
  return FsServerDefaultsProto.newBuilder().
      setBlockSize(fs.getBlockSize()).
      setBytesPerChecksum(fs.getBytesPerChecksum()).
      setWritePacketSize(fs.getWritePacketSize())
      .setReplication(fs.getReplication())
      .setFileBufferSize(fs.getFileBufferSize())
      .setEncryptDataTransfer(fs.getEncryptDataTransfer())
      .setTrashInterval(fs.getTrashInterval())
      .setChecksumType(PBHelper.convert(fs.getChecksumType()))
      .setQuotaEnabled(fs.getQuotaEnabled()).build();
}
项目:hadoop-TCP    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(), 
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      PBHelper.convert(fs.getChecksumType()));
}
项目:hadoop-TCP    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
    setBlockSize(fs.getBlockSize()).
    setBytesPerChecksum(fs.getBytesPerChecksum()).
    setWritePacketSize(fs.getWritePacketSize())
    .setReplication(fs.getReplication())
    .setFileBufferSize(fs.getFileBufferSize())
    .setEncryptDataTransfer(fs.getEncryptDataTransfer())
    .setTrashInterval(fs.getTrashInterval())
    .setChecksumType(PBHelper.convert(fs.getChecksumType()))
    .build();
}
项目:hardfs    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(), 
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      PBHelper.convert(fs.getChecksumType()));
}
项目:hardfs    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
    setBlockSize(fs.getBlockSize()).
    setBytesPerChecksum(fs.getBytesPerChecksum()).
    setWritePacketSize(fs.getWritePacketSize())
    .setReplication(fs.getReplication())
    .setFileBufferSize(fs.getFileBufferSize())
    .setEncryptDataTransfer(fs.getEncryptDataTransfer())
    .setTrashInterval(fs.getTrashInterval())
    .setChecksumType(PBHelper.convert(fs.getChecksumType()))
    .build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static FsServerDefaults convert(FsServerDefaultsProto fs) {
  if (fs == null) return null;
  return new FsServerDefaults(
      fs.getBlockSize(), fs.getBytesPerChecksum(), 
      fs.getWritePacketSize(), (short) fs.getReplication(),
      fs.getFileBufferSize(),
      fs.getEncryptDataTransfer(),
      fs.getTrashInterval(),
      PBHelper.convert(fs.getChecksumType()));
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static FsServerDefaultsProto convert(FsServerDefaults fs) {
  if (fs == null) return null;
  return FsServerDefaultsProto.newBuilder().
    setBlockSize(fs.getBlockSize()).
    setBytesPerChecksum(fs.getBytesPerChecksum()).
    setWritePacketSize(fs.getWritePacketSize())
    .setReplication(fs.getReplication())
    .setFileBufferSize(fs.getFileBufferSize())
    .setEncryptDataTransfer(fs.getEncryptDataTransfer())
    .setTrashInterval(fs.getTrashInterval())
    .setChecksumType(PBHelper.convert(fs.getChecksumType()))
    .build();
}