openlsd.common.LSDDuLib Class Reference

Collaboration diagram for openlsd.common.LSDDuLib:

Collaboration graph
[legend]

List of all members.


Detailed Description

Interface to C lib that compute somehow equivalent to du -ks
Author:
Frederic BREGIER LGPL 2007

Static Public Member Functions

static String getDu (String pathFrom)
static synchronized final boolean initNativeLibrary (String libpath)

Static Private Member Functions

static native String getDuNative (String pathFrom)
static synchronized final boolean _initNativeLibrary ()
static synchronized final boolean _loadNativeLibrary ()

Static Private Attributes

static boolean native_lib_loaded = false
static boolean native_lib_init_pending = true
static String native_lib_path

Member Function Documentation

static native String openlsd.common.LSDDuLib.getDuNative ( String  pathFrom  )  [static, private]

This is the defininition of the native method.

Parameters:
pathFrom Path from which the compute will start
Returns:
a String of the form "globalsize_inKb path nbdirs nbfiles"

static String openlsd.common.LSDDuLib.getDu ( String  pathFrom  )  [static]

Get result from something close to du -ks

Parameters:
pathFrom 
Returns:
a String of the form "globalsize_inKb path nbdirs nbfiles"

static synchronized final boolean openlsd.common.LSDDuLib.initNativeLibrary ( String  libpath  )  [static]

Initialize the Native Library from path

Parameters:
libpath 
Returns:
True if the native Library is loaded, else False

static synchronized final boolean openlsd.common.LSDDuLib._initNativeLibrary (  )  [static, private]

Internal Function to initialize if needed the Native Library support

Returns:
True if the native Library is loaded, else False

static synchronized final boolean openlsd.common.LSDDuLib._loadNativeLibrary (  )  [static, private]

Try to load the Native Library

Returns:
True if the native Library is loaded, else False


Member Data Documentation

boolean openlsd.common.LSDDuLib.native_lib_loaded = false [static, private]

Is the native lib loaded

boolean openlsd.common.LSDDuLib.native_lib_init_pending = true [static, private]

Is the native lib init pending

String openlsd.common.LSDDuLib.native_lib_path [static, private]

Initial value:

 
        "D:/Java/ALLJARS/lib/arch/win32_x86/openlsddu.dll"
The default native lib path


The documentation for this class was generated from the following file: