Interface SystemHelper
- All Known Implementing Classes:
UnixSystemHelper
public interface SystemHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintget the number of open files in any directory for the current user.intgetNumberOfOpenFiles(File directory) get the number of file open in the given directory for the current user.intgetNumberOfOpenFiles(String directory) intgets the limit of allowed open files for the current user.
-
Field Details
-
ULIMIT_UNLIMITED
static final int ULIMIT_UNLIMITED- See Also:
-
-
Method Details
-
getOpenFileLimit
int getOpenFileLimit()gets the limit of allowed open files for the current user.- Returns:
- the maximum number of files the user can open,
ULIMIT_UNLIMITEDif it is unlimited.
-
getNumberOfAllOpenFiles
int getNumberOfAllOpenFiles()get the number of open files in any directory for the current user.- Returns:
- the number of open files
-
getNumberOfOpenFiles
get the number of file open in the given directory for the current user.- Parameters:
directory- the directory in which to look for open files.- Returns:
- the number of open files
-
getNumberOfOpenFiles
- See Also:
-