Class FileStorage

java.lang.Object
com.github.invictum.reportportal.FileStorage

public class FileStorage extends Object
Provides access to shared sync directory. Required for launches merge functionality
  • Constructor Details

    • FileStorage

      public FileStorage(String root)
      Inits storage in specific location If folder is absent it will be created. Warning: at the end of storage life cycle it will be removed
      Parameters:
      root - path for storage
  • Method Details

    • touch

      public void touch(Long id)
      Creates file in a storage
      Parameters:
      id - of file to create, usually it is launch ID
    • count

      public long count()
      Checks the count of launch files inside storage
    • loadAndClean

      public Set<Long> loadAndClean()
      Collects the set of launches and removes storage