public class DiskObjectStore extends AbstractObjectStore
| Modifier and Type | Class and Description |
|---|---|
static interface |
DiskObjectStore.Factory |
ObjectStore.Builder| Constructor and Description |
|---|
DiskObjectStore(File rootDir) |
DiskObjectStore(ObjectStoreBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortPut(ObjectPartKey partKey) |
void |
completePut(ObjectPartKey partKey,
List<ObjectPartId> partIds) |
void |
createBucket(String bucketName) |
URI |
createSignedGet(ObjectKey objectKey,
long timeout,
TimeUnit unit) |
void |
delete(ObjectKey objectKey) |
void |
deleteBucket(String bucketName) |
<T> T |
get(ObjectKey objectKey,
ObjectReader<T> objectReader,
Long start,
Long end) |
ObjectMetadata |
head(ObjectKey objectKey) |
List<ObjectKey> |
list(ObjectKey objectKey,
com.distelli.persistence.PageIterator iterator) |
ObjectPartId |
multipartPut(ObjectPartKey partKey,
int partNum,
long contentLength,
InputStream in) |
ObjectPartKey |
newMultipartPut(ObjectKey objectKey) |
void |
put(ObjectKey objectKey,
long contentLength,
InputStream in) |
get, get, multipartPut, multipartPut, put, putclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic DiskObjectStore(File rootDir)
@Inject public DiskObjectStore(ObjectStoreBuilder builder)
public void createBucket(String bucketName)
createBucket in interface ObjectStorecreateBucket in class AbstractObjectStorepublic void deleteBucket(String bucketName) throws AccessControlException
deleteBucket in interface ObjectStoredeleteBucket in class AbstractObjectStoreAccessControlExceptionpublic void put(ObjectKey objectKey, long contentLength, InputStream in)
put in interface ObjectStoreput in class AbstractObjectStorepublic ObjectMetadata head(ObjectKey objectKey)
head in interface ObjectStorehead in class AbstractObjectStorepublic <T> T get(ObjectKey objectKey, ObjectReader<T> objectReader, Long start, Long end) throws javax.persistence.EntityNotFoundException, IOException
get in interface ObjectStoreget in class AbstractObjectStorejavax.persistence.EntityNotFoundExceptionIOExceptionpublic List<ObjectKey> list(ObjectKey objectKey, com.distelli.persistence.PageIterator iterator)
list in interface ObjectStorelist in class AbstractObjectStorepublic void delete(ObjectKey objectKey) throws javax.persistence.EntityNotFoundException
delete in interface ObjectStoredelete in class AbstractObjectStorejavax.persistence.EntityNotFoundExceptionpublic URI createSignedGet(ObjectKey objectKey, long timeout, TimeUnit unit) throws javax.persistence.EntityNotFoundException
createSignedGet in interface ObjectStorecreateSignedGet in class AbstractObjectStorejavax.persistence.EntityNotFoundExceptionpublic ObjectPartKey newMultipartPut(ObjectKey objectKey)
newMultipartPut in interface ObjectStorenewMultipartPut in class AbstractObjectStorepublic ObjectPartId multipartPut(ObjectPartKey partKey, int partNum, long contentLength, InputStream in)
multipartPut in interface ObjectStoremultipartPut in class AbstractObjectStorepublic void abortPut(ObjectPartKey partKey)
abortPut in interface ObjectStoreabortPut in class AbstractObjectStorepublic void completePut(ObjectPartKey partKey, List<ObjectPartId> partIds)
completePut in interface ObjectStorecompletePut in class AbstractObjectStoreCopyright © 2017. All rights reserved.