Interface IDfFileStore

All Superinterfaces:
IDfPersistentObject, IDfStore, IDfTypedObject

public interface IDfFileStore extends IDfStore
A file-based content storage area.
Since:
5.4
  • Method Details

    • getRoot

      String getRoot() throws DfException
      Throws:
      DfException
    • setRoot

      void setRoot(String value) throws DfException
      Throws:
      DfException
    • isPublic

      boolean isPublic() throws DfException
      Throws:
      DfException
    • setPublic

      void setPublic(boolean value) throws DfException
      Throws:
      DfException
    • getUseExtensions

      boolean getUseExtensions() throws DfException
      Throws:
      DfException
    • setUseExtensions

      void setUseExtensions(boolean value) throws DfException
      Throws:
      DfException
    • setNewRoot

      void setNewRoot(String path) throws DfException
      Sets the root of this storage by specifying the system path. The location object is created when save. The name of the location is _location[id] where id is an unique identifier. For example, replicatStore_location10.
      Parameters:
      path - The system path of the location.
      Throws:
      DfException
    • setCreateFtIndex

      void setCreateFtIndex(boolean isFTIndex) throws DfException
      Creates a new FT index for this storage, with its location_name equal to the store's root. This method only applies to new storage. If this method is called on an existing storage, an exception is thrown.
      Parameters:
      isFTIndex - If true, creates fulltext index for this storage.
      Throws:
      DfException
    • getFTIndexName

      String getFTIndexName() throws DfException
      Gets the name of the FT index of this storage. If this is a new storage, this method returns null because there is no full text index yet.
      Returns:
      The name of the FT index of this storage.
      Throws:
      DfException
    • getActiveFileCount

      long getActiveFileCount() throws DfException
      Gets the number of active files in this file storage.
      Returns:
      The number of active files in this storage.
      Throws:
      DfException
    • getActiveBytes

      long getActiveBytes() throws DfException
      Gets the number of bytes of active files in this storage.
      Returns:
      The number of bytes of active files in this storage.
      Throws:
      DfException
    • getOrphanedFileCount

      long getOrphanedFileCount() throws DfException
      Gets the number of Orphaned files in this file storage.
      Returns:
      The number of orphaned files in this storage.
      Throws:
      DfException
    • getOrphanedBytes

      long getOrphanedBytes() throws DfException
      Gets the number of bytes of orphaned files in this storage.
      Returns:
      The number of bytes of orphaned files in this storage.
      Throws:
      DfException