public class FileSystemInstrumentationFactory<S extends ScopeType<S>> extends Object
FileSystem. Instrumentations are usually decorators of the underlying
FileSystem that add some additional features to it. Implementations can extend FileSystemInstrumentation
for convenience.| Constructor and Description |
|---|
FileSystemInstrumentationFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.FileSystem |
instrumentFileSystem(org.apache.hadoop.fs.FileSystem fs,
SharedResourcesBroker<S> broker,
ConfigView<S,FileSystemKey> config)
Return an instrumented version of the input
FileSystem. |
public org.apache.hadoop.fs.FileSystem instrumentFileSystem(org.apache.hadoop.fs.FileSystem fs,
SharedResourcesBroker<S> broker,
ConfigView<S,FileSystemKey> config)
FileSystem. Generally, this will return a decorator for the
input FileSystem. If the instrumentation will be a no-op (due to, for example, configuration), it is
recommended to return the input FileSystem directly for performance.