public class UnixSystemHelper extends Object implements SystemHelper
ULIMIT_UNLIMITED
Constructor and Description |
---|
UnixSystemHelper() |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfAllOpenFiles()
get the number of open files in any directory for the current user.
|
int |
getNumberOfOpenFiles(File directory)
get the number of file open in the given directory for the current user.
|
int |
getNumberOfOpenFiles(String directory) |
int |
getOpenFileLimit()
gets the limit of allowed open files for the current user.
|
public int getOpenFileLimit()
SystemHelper
getOpenFileLimit
in interface SystemHelper
SystemHelper.ULIMIT_UNLIMITED
if it is unlimited.public int getNumberOfAllOpenFiles()
SystemHelper
getNumberOfAllOpenFiles
in interface SystemHelper
public int getNumberOfOpenFiles(File directory)
SystemHelper
getNumberOfOpenFiles
in interface SystemHelper
directory
- the directory in which to look for open files.public int getNumberOfOpenFiles(String directory)
getNumberOfOpenFiles
in interface SystemHelper
SystemHelper.getNumberOfOpenFiles(java.io.File)
Copyright © 2003–2020 Atlassian. All rights reserved.