public interface ObjectStoreManagement
| Modifier and Type | Method and Description |
|---|---|
ObjectStoreStatus |
create(ObjectStoreConfiguration config)
Create an object store.
|
void |
delete(java.lang.String bucketName)
Deletes an existing object store.
|
java.util.List<java.lang.String> |
getBucketNames()
Get the list of object stores bucket names
THIS IS A BETA FEATURE AND SUBJECT TO CHANGE
|
ObjectStoreStatus |
getStatus(java.lang.String bucketName)
Gets the status for an existing object store bucket.
|
java.util.List<ObjectStoreStatus> |
getStatuses()
Gets the status for all object store buckets.
|
ObjectStoreStatus create(ObjectStoreConfiguration config) throws java.io.IOException, JetStreamApiException
config - the object store configurationjava.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the datajava.lang.IllegalArgumentException - the server is not JetStream enabledjava.util.List<java.lang.String> getBucketNames()
throws java.io.IOException,
JetStreamApiException
java.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the dataObjectStoreStatus getStatus(java.lang.String bucketName) throws java.io.IOException, JetStreamApiException
bucketName - the object store bucket name to get info forjava.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the datajava.util.List<ObjectStoreStatus> getStatuses() throws java.io.IOException, JetStreamApiException
java.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the datavoid delete(java.lang.String bucketName)
throws java.io.IOException,
JetStreamApiException
bucketName - the object store bucket name to deletejava.io.IOException - covers various communication issues with the NATS
server such as timeout or interruptionJetStreamApiException - the request had an error related to the data