com.atlassian.confluence.it.system
Class UnixSystemHelper

java.lang.Object
  extended by com.atlassian.confluence.it.system.UnixSystemHelper
All Implemented Interfaces:
SystemHelper

public class UnixSystemHelper
extends java.lang.Object
implements SystemHelper


Field Summary
 
Fields inherited from interface com.atlassian.confluence.it.system.SystemHelper
ULIMIT_UNLIMITED
 
Constructor Summary
UnixSystemHelper()
           
 
Method Summary
 int getNumberOfAllOpenFiles()
          get the number of open files in any directory for the current user.
 int getNumberOfOpenFiles(java.io.File directory)
          get the number of file open in the given directory for the current user.
 int getNumberOfOpenFiles(java.lang.String directory)
           
 int getOpenFileLimit()
          gets the limit of allowed open files for the current user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnixSystemHelper

public UnixSystemHelper()
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 interface SystemHelper
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 interface SystemHelper
Returns:
the number of open files

getNumberOfOpenFiles

public int getNumberOfOpenFiles(java.io.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 interface SystemHelper
Parameters:
directory - the directory in which to look for open files.
Returns:
the number of open files

getNumberOfOpenFiles

public int getNumberOfOpenFiles(java.lang.String directory)
Specified by:
getNumberOfOpenFiles in interface SystemHelper
See Also:
SystemHelper.getNumberOfOpenFiles(java.io.File)


Copyright © 2003-2010 Atlassian. All Rights Reserved.