@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class FileSystemLinkResolver<T> extends Object
FileSystem
s.FSLinkResolver
Constructor and Description |
---|
FileSystemLinkResolver() |
Modifier and Type | Method and Description |
---|---|
abstract T |
doCall(Path p)
FileSystem subclass-specific implementation of superclass method.
|
abstract T |
next(FileSystem fs,
Path p)
Calls the abstract FileSystem call equivalent to the specialized subclass
implementation in
doCall(Path) . |
T |
resolve(FileSystem filesys,
Path path)
|
public abstract T doCall(Path p) throws IOException, UnresolvedLinkException
Path
.p
- Path on which to perform an operationIOException
UnresolvedLinkException
public abstract T next(FileSystem fs, Path p) throws IOException
doCall(Path)
. This is used when retrying the
call with a newly resolved Path and corresponding new FileSystem.fs
- FileSystem with which to retry callp
- Resolved Target of pathIOException
public T resolve(FileSystem filesys, Path path) throws IOException
doCall(Path)
method with
specified FileSystem
and Path
. If the call fails with an
UnresolvedLinkException, it will try to resolve the path and retry the call
by calling next(FileSystem, Path)
.filesys
- FileSystem with which to try callpath
- Path with which to try callIOException
Copyright © 2013 Apache Software Foundation. All rights reserved.