Interface AccessorObjectServiceInterface
- All Known Implementing Classes:
AccessorObjectService
,AccessorObjectService
public interface AccessorObjectServiceInterface
-
Method Summary
Modifier and TypeMethodDescriptioncreateObject
(AccessorObject accessorObject, String hash, long len, String clientId) Before really creating Object, creates it in DB if possiblecreateObjectFinalize
(AccessorObject accessorObject, String hash, long len, String clientId, boolean external) Once Object really created in Driver Storage, finalize the Object in DB and Replicator if neededvoid
deleteObject
(String bucketName, String objectName, String clientId, boolean external) Delete object in DB and through Replicator if neededfilterObjects
(String bucketName, AccessorFilter filter, String clientId, boolean external) getObjectInfo
(String bucketName, String objectName, String clientId) Get DB Object DTOobjectOrDirectoryExists
(String bucketName, String objectOrDirectoryName, boolean fullCheck, String clientId) Check if object or directory exists (internal)objectOrDirectoryExists
(String bucketName, String objectOrDirectoryName, boolean fullCheck, String clientId, String opId, boolean external) Check if object or directory exists
-
Method Details
-
objectOrDirectoryExists
StorageType objectOrDirectoryExists(String bucketName, String objectOrDirectoryName, boolean fullCheck, String clientId) throws CcsOperationException Check if object or directory exists (internal)- Parameters:
bucketName
- bucket nameobjectOrDirectoryName
- prefix or full namefullCheck
- if True, and if Object, will check on Driver Storage- Returns:
- the associated StorageType
- Throws:
CcsOperationException
-
objectOrDirectoryExists
StorageType objectOrDirectoryExists(String bucketName, String objectOrDirectoryName, boolean fullCheck, String clientId, String opId, boolean external) throws CcsOperationException Check if object or directory exists- Throws:
CcsOperationException
-
filterObjects
InputStream filterObjects(String bucketName, AccessorFilter filter, String clientId, boolean external) throws CcsOperationException - Parameters:
bucketName
- bucket namefilter
- the filter to apply on Objectsexternal
- True if bucket will be for external usage- Returns:
- a stream (InputStream) of AccessorObject line by line (newline separated)
- Throws:
CcsOperationException
-
getObjectInfo
AccessorObject getObjectInfo(String bucketName, String objectName, String clientId) throws CcsNotExistException, CcsOperationException Get DB Object DTO -
createObject
AccessorObject createObject(AccessorObject accessorObject, String hash, long len, String clientId) throws CcsOperationException, CcsAlreadyExistException, CcsNotExistException, CcsNotAcceptableException Before really creating Object, creates it in DB if possible- Throws:
CcsNotAcceptableException
- if already in creation stepCcsOperationException
CcsAlreadyExistException
CcsNotExistException
-
createObjectFinalize
AccessorObject createObjectFinalize(AccessorObject accessorObject, String hash, long len, String clientId, boolean external) Once Object really created in Driver Storage, finalize the Object in DB and Replicator if needed -
deleteObject
void deleteObject(String bucketName, String objectName, String clientId, boolean external) throws CcsDeletedException, CcsNotExistException, CcsOperationException Delete object in DB and through Replicator if needed
-