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

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