com.atlassian.confluence.it.system
Interface SystemHelper

All Known Implementing Classes:
UnixSystemHelper

public interface SystemHelper


Field Summary
static int ULIMIT_UNLIMITED
           
 
Method Summary
 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.
 

Field Detail

ULIMIT_UNLIMITED

static final int ULIMIT_UNLIMITED
See Also:
Constant Field Values
Method Detail

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_UNLIMITED if 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

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

getNumberOfOpenFiles

int getNumberOfOpenFiles(String directory)
See Also:
getNumberOfOpenFiles(java.io.File)


Copyright © 2003-2013 Atlassian. All Rights Reserved.