java.lang.Object
org.yamcs.buckets.BucketManager
Provides access to buckets of various types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBucket(String bucketName) createFileSystemBucket(String bucketName, Path location) Adds a bucket that maps to the file system.voiddeleteBucket(String bucketName) voidstatic voidConfigure this class for use in standalone unit tests
-
Constructor Details
-
BucketManager
public BucketManager()
-
-
Method Details
-
loadBuckets
- Throws:
IOException
-
getBucket
- Throws:
IOException
-
createBucket
- Throws:
IOException
-
createFileSystemBucket
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 bucketlocation- 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
- Throws:
IOException
-
deleteBucket
- Throws:
IOException
-
setMockup
public static void setMockup()Configure this class for use in standalone unit tests
-