public class PrivilegedFileReplicator extends Object implements FileReplicator, VfsComponent
Constructor and Description |
---|
PrivilegedFileReplicator(FileReplicator replicator) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the replicator.
|
void |
init()
Initializes the component.
|
File |
replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendants.
|
void |
setContext(VfsComponentContext context)
Sets the context for the replicator.
|
void |
setLogger(org.apache.commons.logging.Log logger)
Sets the Logger to use for the component.
|
public PrivilegedFileReplicator(FileReplicator replicator)
public void setLogger(org.apache.commons.logging.Log logger)
setLogger
in interface VfsComponent
logger
- The logger.public void setContext(VfsComponentContext context)
setContext
in interface VfsComponent
context
- The component context.public void init() throws FileSystemException
init
in interface VfsComponent
FileSystemException
- if an error occurs.public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface VfsComponent
public File replicateFile(FileObject srcFile, FileSelector selector) throws FileSystemException
replicateFile
in interface FileReplicator
srcFile
- The source FileObject.selector
- The file selector.FileSystemException
- if an error occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.