Java 类org.apache.hadoop.hdfs.server.datanode.fsdataset.RollingLogs 实例源码

项目:hadoop-plus    文件:FsDatasetImpl.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix
    ) throws IOException {
  String dir = null;
  final List<FsVolumeImpl> volumes = getVolumes();
  for (FsVolumeImpl vol : volumes) {
    String bpDir = vol.getPath(bpid);
    if (RollingLogsImpl.isFilePresent(bpDir, prefix)) {
      dir = bpDir;
      break;
    }
  }
  if (dir == null) {
    dir = volumes.get(0).getPath(bpid);
  }
  return new RollingLogsImpl(dir, prefix);
}
项目:FlexMap    文件:FsDatasetImpl.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix
    ) throws IOException {
  String dir = null;
  final List<FsVolumeImpl> volumes = getVolumes();
  for (FsVolumeImpl vol : volumes) {
    String bpDir = vol.getPath(bpid);
    if (RollingLogsImpl.isFilePresent(bpDir, prefix)) {
      dir = bpDir;
      break;
    }
  }
  if (dir == null) {
    dir = volumes.get(0).getPath(bpid);
  }
  return new RollingLogsImpl(dir, prefix);
}
项目:hops    文件:FsDatasetImpl.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix)
    throws IOException {
  String dir = null;
  final List<FsVolumeImpl> volumes = getVolumes();
  for (FsVolumeImpl vol : volumes) {
    String bpDir = vol.getPath(bpid);
    if (RollingLogsImpl.isFilePresent(bpDir, prefix)) {
      dir = bpDir;
      break;
    }
  }
  if (dir == null) {
    dir = volumes.get(0).getPath(bpid);
  }
  return new RollingLogsImpl(dir, prefix);
}
项目:hadoop-TCP    文件:FsDatasetImpl.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix
    ) throws IOException {
  String dir = null;
  final List<FsVolumeImpl> volumes = getVolumes();
  for (FsVolumeImpl vol : volumes) {
    String bpDir = vol.getPath(bpid);
    if (RollingLogsImpl.isFilePresent(bpDir, prefix)) {
      dir = bpDir;
      break;
    }
  }
  if (dir == null) {
    dir = volumes.get(0).getPath(bpid);
  }
  return new RollingLogsImpl(dir, prefix);
}
项目:hardfs    文件:FsDatasetImpl.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix
    ) throws IOException {
  String dir = null;
  final List<FsVolumeImpl> volumes = getVolumes();
  for (FsVolumeImpl vol : volumes) {
    String bpDir = vol.getPath(bpid);
    if (RollingLogsImpl.isFilePresent(bpDir, prefix)) {
      dir = bpDir;
      break;
    }
  }
  if (dir == null) {
    dir = volumes.get(0).getPath(bpid);
  }
  return new RollingLogsImpl(dir, prefix);
}
项目:hadoop-plus    文件:BlockPoolSliceScanner.java   
private LogFileHandler(RollingLogs logs)  {
  this.logs = logs;
}
项目:hadoop-plus    文件:SimulatedFSDataset.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix) {
  throw new UnsupportedOperationException();
}
项目:FlexMap    文件:BlockPoolSliceScanner.java   
private LogFileHandler(RollingLogs logs)  {
  this.logs = logs;
}
项目:FlexMap    文件:SimulatedFSDataset.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix) {
  throw new UnsupportedOperationException();
}
项目:hops    文件:BlockPoolSliceScanner.java   
private LogFileHandler(RollingLogs logs) {
  this.logs = logs;
}
项目:hops    文件:SimulatedFSDataset.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix) {
  throw new UnsupportedOperationException();
}
项目:hadoop-TCP    文件:BlockPoolSliceScanner.java   
private LogFileHandler(RollingLogs logs)  {
  this.logs = logs;
}
项目:hadoop-TCP    文件:SimulatedFSDataset.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix) {
  throw new UnsupportedOperationException();
}
项目:hardfs    文件:BlockPoolSliceScanner.java   
private LogFileHandler(RollingLogs logs)  {
  this.logs = logs;
}
项目:hardfs    文件:SimulatedFSDataset.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix) {
  throw new UnsupportedOperationException();
}
项目:hadoop-on-lustre2    文件:BlockPoolSliceScanner.java   
private LogFileHandler(RollingLogs logs)  {
  this.logs = logs;
}
项目:hadoop-on-lustre2    文件:SimulatedFSDataset.java   
@Override
public RollingLogs createRollingLogs(String bpid, String prefix) {
  throw new UnsupportedOperationException();
}