Interface ObjectStoreClient
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
checkObjectExists
(String namespace, String objectName) void
createDownloadSession
(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) void
deleteNamespaceStorageConfiguration
(String namespace) void
deleteObjects
(String namespace, ObjectPath... objectPaths) void
deleteObjects
(String namespace, Iterable<ObjectPath> objectPaths) List
<? extends TransferSession> List
<? extends TransferSession> int
Return all object paths that match the request.getObjectDetail
(String namespace, String objectName) int
boolean
boolean
putNamespaceStorageConfiguration
(NamespaceStorageConfiguration namespaceStorageConfiguration) void
setDownloadMaxBytesPerSecond
(int downloadMaxBytesPerSecond) void
setUploadMaxBytesPerSecond
(int uploadMaxBytesPerSecond) void
void
-
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()
-