openlsd.network.server.legacy.LSDStorage Class Reference

Inheritance diagram for openlsd.network.server.legacy.LSDStorage:

Inheritance graph
[legend]
Collaboration diagram for openlsd.network.server.legacy.LSDStorage:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class LSDDbStorage that could represent a mount point of a filesystem. It depends on one Legacy. The size of all Storage in one Legacy is the same.
Storage are created automatically when it is necessary. However, even if they would be automatically created when needed, The Storage administrator should handle filesystems creations and mounts and so LSDStorage creation using the LSDAdmin function (or Web interface).

Warning: The size in Legacy must be less than real size since encryption should add some bytes. In general, depending on average files size and crypto mode, 5 percent less than the real size should be enough.

Author:
Frederic Bregier LGPL

Public Member Functions

 LSDStorage (LSDLegacy legacy, long sid)
void clear ()
void setLoopIdUnique (LSDLegacy legacy, long sid)
boolean delete ()
boolean setLSDPath (long id)
String getGlobalPath ()
String getAbstractName ()
String getGlobalPathWoBasename ()
String getBaseName ()

Public Attributes

LSDLegacy legacy = null
long idUnique = LSDConstants.invalide_idx

Constructor & Destructor Documentation

openlsd.network.server.legacy.LSDStorage.LSDStorage ( LSDLegacy  legacy,
long  sid 
)

Create a new Storage using one Legacy and the storage id.

Parameters:
legacy 
sid 


Member Function Documentation

void openlsd.network.server.legacy.LSDStorage.clear (  ) 

Set empty this LSDDbStorage

Reimplemented from openlsd.network.server.legacy.LSDPath.

void openlsd.network.server.legacy.LSDStorage.setLoopIdUnique ( LSDLegacy  legacy,
long  sid 
)

Set the sid for the current Legacy: to use with really care.

The main goal is for quick loop index.

Parameters:
legacy 
sid 

boolean openlsd.network.server.legacy.LSDStorage.delete (  ) 

Delete the directory of this Storage if not empty. Does not clear the LSDDbStorage object.

Returns:
True if the directory is deleted, else False

boolean openlsd.network.server.legacy.LSDPath.setLSDPath ( long  id  )  [inherited]

Create a LSDPath from an id

Parameters:
id 
Returns:
True if the LSDPath is OK, else False

String openlsd.network.server.legacy.LSDPath.getGlobalPath (  )  [inherited]

Get LGlobalPath (/a/b/c)

Returns:
LGlobalPath (/a/b/c)

String openlsd.network.server.legacy.LSDPath.getAbstractName (  )  [inherited]

Get LAbstractName (_a_b_c)

Returns:
LAbstractName (_a_b_c)

String openlsd.network.server.legacy.LSDPath.getGlobalPathWoBasename (  )  [inherited]

Get GlobalPath without Basename (/a/b)

Returns:
GlobalPath without Basename (/a/b)

String openlsd.network.server.legacy.LSDPath.getBaseName (  )  [inherited]

Get BaseName (c)

Returns:
BaseName (c)


Member Data Documentation

associated Storage

Id between LSDConstants.minimal_idx and maximal_idx


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