openlsd.web.legacy
Class LSDWebStorage

java.lang.Object
  extended by openlsd.web.legacy.LSDWebStorage

public class LSDWebStorage
extends java.lang.Object

Class to manipulate Storage from Web Admin

Author:
Frederic Bregier LGPL

Field Summary
 java.lang.String globalpath
          Global Path
 long SID
          Storage Id
 java.lang.String subpath
          Sub Path up to Storage
 
Constructor Summary
LSDWebStorage(java.lang.String basepath, long sid)
          Create a new WebStorage using the storage id.
 
Method Summary
 void clean()
          Clean the object
 double[] getGlobalUsedFreeSpace()
          Get the Global Used and Free space in KB
 double getUsedSpace()
          Get the Used space in KB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SID

public long SID
Storage Id


subpath

public java.lang.String subpath
Sub Path up to Storage


globalpath

public java.lang.String globalpath
Global Path

Constructor Detail

LSDWebStorage

public LSDWebStorage(java.lang.String basepath,
                     long sid)
Create a new WebStorage using the storage id.

Parameters:
basepath -
sid -
Method Detail

getGlobalUsedFreeSpace

public double[] getGlobalUsedFreeSpace()
Get the Global Used and Free space in KB

Returns:
the global and used and free space in KB in long[] or null in error

getUsedSpace

public double getUsedSpace()
Get the Used space in KB

Returns:
the used space in KB

clean

public void clean()
Clean the object