public class

UnixSystemHelper

extends Object
implements SystemHelper
java.lang.Object
   ↳ com.atlassian.confluence.it.system.UnixSystemHelper

Summary

[Expand]
Inherited Constants
From interface com.atlassian.confluence.it.system.SystemHelper
Public Constructors
UnixSystemHelper()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.it.system.SystemHelper

Public Constructors

public UnixSystemHelper ()

Public Methods

public int getNumberOfAllOpenFiles ()

get the number of open files in any directory for the current user.

Returns
  • the number of open files

public int getNumberOfOpenFiles (File directory)

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

public int getNumberOfOpenFiles (String directory)

public int getOpenFileLimit ()

gets the limit of allowed open files for the current user.

Returns
  • the maximum number of files the user can open, ULIMIT_UNLIMITED if it is unlimited.