Class BucketManager

java.lang.Object
org.yamcs.buckets.BucketManager

public class BucketManager extends Object
Provides access to buckets of various types.
  • Constructor Details

    • BucketManager

      public BucketManager()
  • Method Details

    • loadBuckets

      public void loadBuckets() throws IOException
      Throws:
      IOException
    • getBucket

      public Bucket getBucket(String bucketName) throws IOException
      Throws:
      IOException
    • createBucket

      public Bucket createBucket(String bucketName) throws IOException
      Throws:
      IOException
    • createFileSystemBucket

      public FileSystemBucket createFileSystemBucket(String bucketName, Path location) throws IOException
      Adds a bucket that maps to the file system. This is a transient operation that has to be done on each server restart.
      Parameters:
      bucketName - the name of the bucket
      location - path to the bucket contents. The directory is created if it does not yet exist.
      Returns:
      the created bucket
      Throws:
      IOException - on I/O issues
    • listBuckets

      public List<Bucket> listBuckets() throws IOException
      Throws:
      IOException
    • deleteBucket

      public void deleteBucket(String bucketName) throws IOException
      Throws:
      IOException
    • setMockup

      public static void setMockup()
      Configure this class for use in standalone unit tests