Description
Following work done in JAMES-2563 we want to introduce a health-check for object-storage.
Add a `long countBlob()` public method to the ObjectStorageBlobsDAO class.
In your ObjectStoragetHealthCheck call this method:
- If a count is returned then swift is healthy
- If an exception is encountered then swift is unhealthy.
Write tests on top of a `pausable` swift container in `server/blob/blob-objectstorage`.
Bind this health check in `server/container/guice/blob-objectstorage-guice/src/main/java/org/apache/james/modules/objectstorage/ObjectStorageBlobStoreModule.java`