public interface

SystemHelper

com.atlassian.confluence.it.system.SystemHelper
Known Indirect Subclasses

Summary

Constants
int ULIMIT_UNLIMITED
Public Methods
abstract int getNumberOfAllOpenFiles()
get the number of open files in any directory for the current user.
abstract int getNumberOfOpenFiles(File directory)
get the number of file open in the given directory for the current user.
abstract int getNumberOfOpenFiles(String directory)
abstract int getOpenFileLimit()
gets the limit of allowed open files for the current user.

Constants

public static final int ULIMIT_UNLIMITED

Constant Value: -1 (0xffffffff)

Public Methods

public abstract int getNumberOfAllOpenFiles ()

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

Returns
  • the number of open files

public abstract 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 abstract int getNumberOfOpenFiles (String directory)

public abstract 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.