Java 类org.apache.hadoop.fs.local.LocalConfigKeys 实例源码

项目:hops    文件:ViewFsBaseTest.java   
@Test
public void testServerDefaultsInternalDir() throws Exception {
  FsServerDefaults localDefs = LocalConfigKeys.getServerDefaults();
  FsServerDefaults viewDefs = fcView
      .getDefaultFileSystem().getServerDefaults(new Path("/internalDir"));
  assertEquals(localDefs.getReplication(), viewDefs.getReplication());
  assertEquals(localDefs.getBlockSize(), viewDefs.getBlockSize());
  assertEquals(localDefs.getBytesPerChecksum(),
      viewDefs.getBytesPerChecksum());
  assertEquals(localDefs.getFileBufferSize(),
      viewDefs.getFileBufferSize());
  assertEquals(localDefs.getWritePacketSize(),
      viewDefs.getWritePacketSize());
  assertEquals(localDefs.getEncryptDataTransfer(),
      viewDefs.getEncryptDataTransfer());
  assertEquals(localDefs.getTrashInterval(), viewDefs.getTrashInterval());
  assertEquals(localDefs.getChecksumType(), viewDefs.getChecksumType());
}
项目:hops    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults(final Path f) throws IOException {
  InodeTree.ResolveResult<AbstractFileSystem> res;
  try {
    res = fsState.resolve(getUriPath(f), true);
  } catch (FileNotFoundException fnfe) {
    return LocalConfigKeys.getServerDefaults();
  }
  return res.targetFileSystem.getServerDefaults(res.remainingPath);
}
项目:hadoop-oss    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:hadoop    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:aliyun-oss-hadoop-fs    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:big-c    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:hadoop-plus    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:ignite    文件:HadoopLocalFileSystemV2.java   
/** {@inheritDoc} */
@Override public FsServerDefaults getServerDefaults() throws IOException {
    return LocalConfigKeys.getServerDefaults();
}
项目:hops    文件:ViewFs.java   
@Override
@Deprecated
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:hops    文件:ViewFs.java   
@Override
@Deprecated
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults();
}
项目:hops    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults(final Path f) throws IOException {
  return LocalConfigKeys.getServerDefaults();
}
项目:hadoop-TCP    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:hardfs    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:hadoop-on-lustre2    文件:ViewFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
  return LocalConfigKeys.getServerDefaults(); 
}
项目:spliceengine    文件:RawSpliceFs.java   
@Override
public FsServerDefaults getServerDefaults() throws IOException {
    return LocalConfigKeys.getServerDefaults();
}