Interface ObjectStoreClient
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancheckObjectExists(String namespace, String objectName) voidcreateDownloadSession(String namespace, String objectName, Path destinationFolderPath) createDownloadSession(String namespace, String objectName, Path destinationFolderPath, TransferProperties properties) createUploadSession(String namespace, Path sourceFilePath) createUploadSession(String namespace, Path sourceFilePath, TransferProperties properties) createUploadSession(String namespace, Path sourceFilePath, String objectName) createUploadSession(String namespace, Path sourceFilePath, String objectName, TransferProperties properties) voiddeleteNamespaceStorageConfiguration(String namespace) voiddeleteObjects(String namespace, ObjectPath... objectPaths) voiddeleteObjects(String namespace, Iterable<ObjectPath> objectPaths) List<? extends TransferSession> List<? extends TransferSession> intReturn all object paths that match the request.getObjectDetail(String namespace, String objectName) intbooleanbooleanputNamespaceStorageConfiguration(NamespaceStorageConfiguration namespaceStorageConfiguration) voidsetDownloadMaxBytesPerSecond(int downloadMaxBytesPerSecond) voidsetUploadMaxBytesPerSecond(int uploadMaxBytesPerSecond) voidvoid
-
Method Details
-
getActiveSessions
List<? extends TransferSession> getActiveSessions() -
getAllSessions
List<? extends TransferSession> getAllSessions() -
isUploadsActive
boolean isUploadsActive() -
isDownloadsActive
boolean isDownloadsActive() -
getUploadMaxBytesPerSecond
int getUploadMaxBytesPerSecond() -
setUploadMaxBytesPerSecond
void setUploadMaxBytesPerSecond(int uploadMaxBytesPerSecond) -
getDownloadMaxBytesPerSecond
int getDownloadMaxBytesPerSecond() -
setDownloadMaxBytesPerSecond
void setDownloadMaxBytesPerSecond(int downloadMaxBytesPerSecond) -
createUploadSession
- Throws:
IOException
-
createUploadSession
UploadSession createUploadSession(String namespace, Path sourceFilePath, TransferProperties properties) throws IOException - Throws:
IOException
-
createUploadSession
UploadSession createUploadSession(String namespace, Path sourceFilePath, String objectName) throws IOException - Throws:
IOException
-
createUploadSession
UploadSession createUploadSession(String namespace, Path sourceFilePath, String objectName, TransferProperties properties) throws IOException - Throws:
IOException
-
createDownloadSession
DownloadSession createDownloadSession(String namespace, String objectName, Path destinationFolderPath) -
createDownloadSession
DownloadSession createDownloadSession(String namespace, String objectName, Path destinationFolderPath, TransferProperties properties) -
startTransfers
void startTransfers() -
stopTransfers
void stopTransfers() -
clearInactiveSessions
void clearInactiveSessions() -
abortAllTransfers
void abortAllTransfers() -
getObjectDetail
-
checkObjectExists
-
getNamespaces
-
getNamespaceObjectPaths
Return all object paths that match the request.For large numbers of objects, consider using either
streamNamespaceObjectPaths(co.yellowdog.platform.interaction.objectstore.ObjectPathsRequest)orgetNamespaceObjectPaths(ObjectPathsSliceRequest).- Parameters:
request- the request- Returns:
- the object paths
-
streamNamespaceObjectPaths
-
getNamespaceObjectPaths
-
deleteObjects
-
deleteObjects
-
putNamespaceStorageConfiguration
NamespaceStorageConfiguration putNamespaceStorageConfiguration(NamespaceStorageConfiguration namespaceStorageConfiguration) -
deleteNamespaceStorageConfiguration
-
getNamespaceStorageConfigurations
List<NamespaceStorageConfiguration> getNamespaceStorageConfigurations() -
buildUploadBatch
UploadBatchBuilder buildUploadBatch() -
buildDownloadBatch
DownloadBatchBuilder buildDownloadBatch()
-