public class HandleLimitFS extends HandleTrackingFS
delegate, fileSystem, scheme| Constructor and Description | 
|---|
| HandleLimitFS(FileSystem delegate,
             int limit)Create a new instance, limiting the maximum number
 of open files to  limit | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | onClose(Path path,
       Object stream)Called when  pathis closed viastream. | 
| protected void | onOpen(Path path,
      Object stream)Called when  pathis opened viastream. | 
newAsynchronousFileChannel, newByteChannel, newDirectoryStream, newFileChannel, newInputStream, newOutputStreamcheckAccess, copy, createDirectory, createLink, createSymbolicLink, delete, deleteIfExists, getFileAttributeView, getFileStore, getFileSystem, getPath, getScheme, isHidden, isSameFile, move, newFileSystem, newFileSystem, onClose, readAttributes, readAttributes, readSymbolicLink, setAttribute, toDelegate, toStringinstalledProviderspublic HandleLimitFS(FileSystem delegate, int limit)
limitdelegate - delegate filesystem to wrap.limit - maximum number of open files.protected void onOpen(Path path, Object stream) throws IOException
HandleTrackingFSpath is opened via stream.onOpen in class HandleTrackingFSpath - Path that was openedstream - Stream or Channel opened against the path.IOException - if an I/O error occurs.protected void onClose(Path path, Object stream) throws IOException
HandleTrackingFSpath is closed via stream.onClose in class HandleTrackingFSpath - Path that was closedstream - Stream or Channel closed against the path.IOException - if an I/O error occurs.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.