Class UnixSystemHelper
- java.lang.Object
-
- com.atlassian.confluence.it.system.UnixSystemHelper
-
- All Implemented Interfaces:
SystemHelper
public class UnixSystemHelper extends Object implements SystemHelper
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.it.system.SystemHelper
ULIMIT_UNLIMITED
-
-
Constructor Summary
Constructors Constructor Description UnixSystemHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getOpenFileLimit
public int getOpenFileLimit()
Description copied from interface:SystemHelper
gets the limit of allowed open files for the current user.- Specified by:
getOpenFileLimit
in interfaceSystemHelper
- Returns:
- the maximum number of files the user can open,
SystemHelper.ULIMIT_UNLIMITED
if it is unlimited.
-
getNumberOfAllOpenFiles
public int getNumberOfAllOpenFiles()
Description copied from interface:SystemHelper
get the number of open files in any directory for the current user.- Specified by:
getNumberOfAllOpenFiles
in interfaceSystemHelper
- Returns:
- the number of open files
-
getNumberOfOpenFiles
public int getNumberOfOpenFiles(File directory)
Description copied from interface:SystemHelper
get the number of file open in the given directory for the current user.- Specified by:
getNumberOfOpenFiles
in interfaceSystemHelper
- Parameters:
directory
- the directory in which to look for open files.- Returns:
- the number of open files
-
getNumberOfOpenFiles
public int getNumberOfOpenFiles(String directory)
- Specified by:
getNumberOfOpenFiles
in interfaceSystemHelper
- See Also:
SystemHelper.getNumberOfOpenFiles(java.io.File)
-
-