@InterfaceAudience.Private @InterfaceStability.Evolving public class HsftpFileSystem extends HftpFileSystem
ListPathsServlet
,
FileDataServlet
Modifier and Type | Class and Description |
---|---|
protected static class |
HsftpFileSystem.DummyHostnameVerifier
Dummy hostname verifier that is used to bypass hostname checking
|
protected static class |
HsftpFileSystem.DummyTrustManager
Dummy trustmanager that is used to trust all server certificates
|
HftpFileSystem.TokenManager
FileSystem.Statistics
df, HFTP_DATE_FORMAT, HFTP_TIMEZONE, nnUri, TOKEN_KIND, ugi
DEFAULT_FS, FS_DEFAULT_NAME_KEY, LOG, SHUTDOWN_HOOK_PRIORITY, statistics
Constructor and Description |
---|
HsftpFileSystem() |
Modifier and Type | Method and Description |
---|---|
protected int |
getDefaultPort()
Get the default port for this file system.
|
String |
getScheme()
Return the protocol scheme for the FileSystem.
|
protected String |
getUnderlyingProtocol()
Return the underlying protocol that is used to talk to the namenode.
|
void |
initialize(URI name,
Configuration conf)
Called after a new FileSystem instance is constructed.
|
protected HttpURLConnection |
openConnection(String path,
String query)
Open an HTTP connection to the namenode to read file data and metadata.
|
addDelegationTokenParam, append, canonicalizeUri, close, create, delete, getCanonicalServiceName, getContentSummary, getDateFormat, getDelegationToken, getFileChecksum, getFileStatus, getNamenodeAddr, getNamenodeUri, getNamenodeURL, getRenewToken, getUri, getWorkingDirectory, initDelegationToken, listStatus, mkdirs, open, rename, selectDelegationToken, setDelegationToken, setWorkingDirectory
addDelegationTokens, append, append, cancelDeleteOnExit, checkPath, clearStatistics, closeAll, closeAllForUGI, completeLocalOutput, concat, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, createNonRecursive, createNonRecursive, createSnapshot, createSnapshot, createSymlink, delete, deleteOnExit, deleteSnapshot, enableSymlinks, exists, fixRelativePart, get, get, get, getAllStatistics, getBlockSize, getCanonicalUri, getChildFileSystems, getDefaultBlockSize, getDefaultBlockSize, getDefaultReplication, getDefaultReplication, getDefaultUri, getFileBlockLocations, getFileBlockLocations, getFileLinkStatus, getFileSystemClass, getFSofPath, getHomeDirectory, getInitialWorkingDirectory, getLength, getLinkTarget, getLocal, getName, getNamed, getReplication, getServerDefaults, getServerDefaults, getStatistics, getStatistics, getStatus, getStatus, getUsed, globStatus, globStatus, isDirectory, isFile, isSymlinksEnabled, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, makeQualified, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, newInstance, newInstance, newInstance, newInstanceLocal, open, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, rename, renameSnapshot, resolveLink, resolvePath, setDefaultUri, setDefaultUri, setOwner, setPermission, setReplication, setTimes, setVerifyChecksum, setWriteChecksum, startLocalOutput, supportsSymlinks
getConf, setConf
public String getScheme()
getScheme
in class HftpFileSystem
hsftp
protected String getUnderlyingProtocol()
getUnderlyingProtocol
in class HftpFileSystem
public void initialize(URI name, Configuration conf) throws IOException
FileSystem
initialize
in class HftpFileSystem
name
- a uri whose authority section names the host, port, etc.
for this FileSystemconf
- the configurationIOException
protected int getDefaultPort()
FileSystem
getDefaultPort
in class HftpFileSystem
protected HttpURLConnection openConnection(String path, String query) throws IOException
HftpFileSystem
openConnection
in class HftpFileSystem
path
- The path component of the URLquery
- The query component of the URLIOException
Copyright © 2013 Apache Software Foundation. All rights reserved.