Package org.yamcs.yarch
Class FileSystemBucket
java.lang.Object
org.yamcs.yarch.FileSystemBucket
- All Implemented Interfaces:
 Bucket
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteObject(String objectName) findObject(String objectName) retrieve the object properties or null if not such an object existgetName()This bucket's namebyte[]Retrieve object from the bucket.retrieve objects whose name start with prefix and that match the condition Note that searching by prefix is cheap, the condition will be evaluated for all objects that match the prefixvoidvoidsetMaxObjects(int maxObjects) Update the object count limit for this bucket.voidsetMaxSize(long maxSize) Update the size limit for this bucket.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.yarch.Bucket
listObjects, listObjects, listObjects 
- 
Constructor Details
- 
FileSystemBucket
- Throws:
 IOException
 
 - 
 - 
Method Details
- 
getName
Description copied from interface:BucketThis bucket's name - 
setMaxSize
Description copied from interface:BucketUpdate the size limit for this bucket.If the specified size is smaller than the current size, the bucket will no longer accept new files.
- Specified by:
 setMaxSizein interfaceBucket- Throws:
 IOException
 - 
setMaxObjects
Description copied from interface:BucketUpdate the object count limit for this bucket.If the specified count is smaller than the current count, the bucket will no longer accept new files.
- Specified by:
 setMaxObjectsin interfaceBucket- Throws:
 IOException
 - 
getProperties
- Specified by:
 getPropertiesin interfaceBucket- Throws:
 IOException
 - 
listObjects
public List<Tablespace.ObjectProperties> listObjects(String prefix, Predicate<Tablespace.ObjectPropertiesOrBuilder> p) throws IOException Description copied from interface:Bucketretrieve objects whose name start with prefix and that match the condition Note that searching by prefix is cheap, the condition will be evaluated for all objects that match the prefix- Specified by:
 listObjectsin interfaceBucketp- predicate to be matched by the returned objects- Returns:
 - list of objects
 - Throws:
 IOException
 - 
putObject
public void putObject(String objectName, String contentType, Map<String, String> metadata, byte[] objectData) throws IOException- Specified by:
 putObjectin interfaceBucket- Throws:
 IOException
 - 
getObject
Description copied from interface:BucketRetrieve object from the bucket. Returns null if object does not exist.- Specified by:
 getObjectin interfaceBucket- Returns:
 - Throws:
 IOException
 - 
deleteObject
- Specified by:
 deleteObjectin interfaceBucket- Throws:
 IOException
 - 
findObject
Description copied from interface:Bucketretrieve the object properties or null if not such an object exist- Specified by:
 findObjectin interfaceBucket- Returns:
 - Throws:
 IOException
 - 
getBucketRoot
 
 -