Java 类org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.CacheDirectiveStatsProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static CacheDirectiveStatsProto convert(CacheDirectiveStats stats) {
  CacheDirectiveStatsProto.Builder builder = 
      CacheDirectiveStatsProto.newBuilder();
  builder.setBytesNeeded(stats.getBytesNeeded());
  builder.setBytesCached(stats.getBytesCached());
  builder.setFilesNeeded(stats.getFilesNeeded());
  builder.setFilesCached(stats.getFilesCached());
  builder.setHasExpired(stats.hasExpired());
  return builder.build();
}
项目:hadoop    文件:PBHelper.java   
public static CacheDirectiveStats convert(CacheDirectiveStatsProto proto) {
  CacheDirectiveStats.Builder builder = new CacheDirectiveStats.Builder();
  builder.setBytesNeeded(proto.getBytesNeeded());
  builder.setBytesCached(proto.getBytesCached());
  builder.setFilesNeeded(proto.getFilesNeeded());
  builder.setFilesCached(proto.getFilesCached());
  builder.setHasExpired(proto.getHasExpired());
  return builder.build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static CacheDirectiveStats convert(CacheDirectiveStatsProto proto) {
  CacheDirectiveStats.Builder builder = new CacheDirectiveStats.Builder();
  builder.setBytesNeeded(proto.getBytesNeeded());
  builder.setBytesCached(proto.getBytesCached());
  builder.setFilesNeeded(proto.getFilesNeeded());
  builder.setFilesCached(proto.getFilesCached());
  builder.setHasExpired(proto.getHasExpired());
  return builder.build();
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static CacheDirectiveStatsProto convert(CacheDirectiveStats stats) {
  CacheDirectiveStatsProto.Builder builder =
      CacheDirectiveStatsProto.newBuilder();
  builder.setBytesNeeded(stats.getBytesNeeded());
  builder.setBytesCached(stats.getBytesCached());
  builder.setFilesNeeded(stats.getFilesNeeded());
  builder.setFilesCached(stats.getFilesCached());
  builder.setHasExpired(stats.hasExpired());
  return builder.build();
}
项目:big-c    文件:PBHelper.java   
public static CacheDirectiveStatsProto convert(CacheDirectiveStats stats) {
  CacheDirectiveStatsProto.Builder builder = 
      CacheDirectiveStatsProto.newBuilder();
  builder.setBytesNeeded(stats.getBytesNeeded());
  builder.setBytesCached(stats.getBytesCached());
  builder.setFilesNeeded(stats.getFilesNeeded());
  builder.setFilesCached(stats.getFilesCached());
  builder.setHasExpired(stats.hasExpired());
  return builder.build();
}
项目:big-c    文件:PBHelper.java   
public static CacheDirectiveStats convert(CacheDirectiveStatsProto proto) {
  CacheDirectiveStats.Builder builder = new CacheDirectiveStats.Builder();
  builder.setBytesNeeded(proto.getBytesNeeded());
  builder.setBytesCached(proto.getBytesCached());
  builder.setFilesNeeded(proto.getFilesNeeded());
  builder.setFilesCached(proto.getFilesCached());
  builder.setHasExpired(proto.getHasExpired());
  return builder.build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static CacheDirectiveStatsProto convert(CacheDirectiveStats stats) {
  CacheDirectiveStatsProto.Builder builder = 
      CacheDirectiveStatsProto.newBuilder();
  builder.setBytesNeeded(stats.getBytesNeeded());
  builder.setBytesCached(stats.getBytesCached());
  builder.setFilesNeeded(stats.getFilesNeeded());
  builder.setFilesCached(stats.getFilesCached());
  builder.setHasExpired(stats.hasExpired());
  return builder.build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static CacheDirectiveStats convert(CacheDirectiveStatsProto proto) {
  CacheDirectiveStats.Builder builder = new CacheDirectiveStats.Builder();
  builder.setBytesNeeded(proto.getBytesNeeded());
  builder.setBytesCached(proto.getBytesCached());
  builder.setFilesNeeded(proto.getFilesNeeded());
  builder.setFilesCached(proto.getFilesCached());
  builder.setHasExpired(proto.getHasExpired());
  return builder.build();
}
项目:FlexMap    文件:PBHelper.java   
public static CacheDirectiveStatsProto convert(CacheDirectiveStats stats) {
  CacheDirectiveStatsProto.Builder builder = 
      CacheDirectiveStatsProto.newBuilder();
  builder.setBytesNeeded(stats.getBytesNeeded());
  builder.setBytesCached(stats.getBytesCached());
  builder.setFilesNeeded(stats.getFilesNeeded());
  builder.setFilesCached(stats.getFilesCached());
  builder.setHasExpired(stats.hasExpired());
  return builder.build();
}
项目:FlexMap    文件:PBHelper.java   
public static CacheDirectiveStats convert(CacheDirectiveStatsProto proto) {
  CacheDirectiveStats.Builder builder = new CacheDirectiveStats.Builder();
  builder.setBytesNeeded(proto.getBytesNeeded());
  builder.setBytesCached(proto.getBytesCached());
  builder.setFilesNeeded(proto.getFilesNeeded());
  builder.setFilesCached(proto.getFilesCached());
  builder.setHasExpired(proto.getHasExpired());
  return builder.build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static CacheDirectiveStatsProto convert(CacheDirectiveStats stats) {
  CacheDirectiveStatsProto.Builder builder = 
      CacheDirectiveStatsProto.newBuilder();
  builder.setBytesNeeded(stats.getBytesNeeded());
  builder.setBytesCached(stats.getBytesCached());
  builder.setFilesNeeded(stats.getFilesNeeded());
  builder.setFilesCached(stats.getFilesCached());
  builder.setHasExpired(stats.hasExpired());
  return builder.build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static CacheDirectiveStats convert(CacheDirectiveStatsProto proto) {
  CacheDirectiveStats.Builder builder = new CacheDirectiveStats.Builder();
  builder.setBytesNeeded(proto.getBytesNeeded());
  builder.setBytesCached(proto.getBytesCached());
  builder.setFilesNeeded(proto.getFilesNeeded());
  builder.setFilesCached(proto.getFilesCached());
  builder.setHasExpired(proto.getHasExpired());
  return builder.build();
}