Class ShuffleCacheImpl

java.lang.Object
org.alfresco.filesys.alfresco.ShuffleCacheImpl
All Implemented Interfaces:
ShuffleCache

public class ShuffleCacheImpl extends Object implements ShuffleCache
Cache for alfresco "CIFS shuffles"
  • Constructor Details

    • ShuffleCacheImpl

      public ShuffleCacheImpl()
  • Method Details

    • createTemporaryFile

      public void createTemporaryFile(String path)
      Description copied from interface: ShuffleCache
      Add a new temporary file to the "shuffle cache". Content is not persisted in the alfresco repo until either a rename occurs or after a time delay.
      Specified by:
      createTemporaryFile in interface ShuffleCache
    • softDelete

      public void softDelete(String path)
      Description copied from interface: ShuffleCache
      Soft delete a file. The file may be re-instated later or the delete made permenant after a time delay.
      Specified by:
      softDelete in interface ShuffleCache
    • renameTemporaryFile

      public void renameTemporaryFile(String oldPath, String newPath)
      Description copied from interface: ShuffleCache
      Takes the contents of a temporary file and applies it to the new path.

      If the new path has been soft deleted then the soft delete is removed.

      After the contents of the temporary file have been written the it may may be made available for garbage collection.

      Specified by:
      renameTemporaryFile in interface ShuffleCache
      Parameters:
      oldPath - the location of the temporaryFile
      newPath - the location of the new file.
    • isShuffleDirectory

      public boolean isShuffleDirectory(String dir)
      Description copied from interface: ShuffleCache
      Does the specified directory contain a shuffled temporary file
      Specified by:
      isShuffleDirectory in interface ShuffleCache
      Parameters:
      dir - String
      Returns:
      boolean
    • isDeleted

      public boolean isDeleted(String path)
      Description copied from interface: ShuffleCache
      Has the path been "soft deleted"
      Specified by:
      isDeleted in interface ShuffleCache
    • isCreated

      public boolean isCreated(String path)
      Description copied from interface: ShuffleCache
      Has the path been "soft created"
      Specified by:
      isCreated in interface ShuffleCache
      Parameters:
      path - String
      Returns:
      boolean
    • setCaseSensitive

      public void setCaseSensitive(boolean caseSensitive)
    • isCaseSensitive

      public boolean isCaseSensitive()