Search in sources :

Example 6 with ObjectBucket

use of com.emc.ecs.management.entity.ObjectBucket in project ecs-dashboard by carone1.

the class BucketObjectCollection method collectObjectsPerBucket.

private void collectObjectsPerBucket() {
    // Collect all objects in that bucket
    logger.info("Collecting object for bucket: " + bucket.getName());
    ObjectBucket objectBucket = getObjectBucket();
    // Check if a search criteria was specified
    if (collectionConfig.getQueryCriteria() != null) {
        queryObjects(objectBucket);
    } else {
        // check whether bucket has search keys configured
        if (objectBucket != null && objectBucket.getSearchMetadata() != null && !objectBucket.getSearchMetadata().isEmpty()) {
            // need to query those objects for that bucket
            if (!queryObjects(objectBucket)) {
                // Something went wonky during the query operation
                // revert to list object call
                listObjects(objectBucket);
            }
        } else {
            listObjects(objectBucket);
        }
    }
}
Also used : ObjectBucket(com.emc.ecs.management.entity.ObjectBucket)

Example 7 with ObjectBucket

use of com.emc.ecs.management.entity.ObjectBucket in project ecs-dashboard by carone1.

the class BucketObjectVersionCollection method collectObjectsVersionsPerBucket.

private void collectObjectsVersionsPerBucket() {
    // Collect all objects in that bucket
    logger.info("Collecting object version for bucket: " + bucket.getName());
    ObjectBucket objectBucket = getObjectBucket();
    if (objectBucket != null) {
        listObjectsVersions(objectBucket);
    }
}
Also used : ObjectBucket(com.emc.ecs.management.entity.ObjectBucket)

Aggregations

ObjectBucket (com.emc.ecs.management.entity.ObjectBucket)7 HashMap (java.util.HashMap)3 ListNamespaceRequest (com.emc.ecs.management.entity.ListNamespaceRequest)2 Namespace (com.emc.ecs.management.entity.Namespace)2 NamespaceRequest (com.emc.ecs.management.entity.NamespaceRequest)2 ObjectUserDetails (com.emc.ecs.management.entity.ObjectUserDetails)2 S3JerseyClient (com.emc.object.s3.jersey.S3JerseyClient)2 RejectedExecutionException (java.util.concurrent.RejectedExecutionException)2 BucketBillingInfo (com.emc.ecs.management.entity.BucketBillingInfo)1 NamespaceBillingInfo (com.emc.ecs.management.entity.NamespaceBillingInfo)1 ObjectBuckets (com.emc.ecs.management.entity.ObjectBuckets)1 HashSet (java.util.HashSet)1 Set (java.util.Set)1 BulkRequestBuilder (org.elasticsearch.action.bulk.BulkRequestBuilder)1 BulkResponse (org.elasticsearch.action.bulk.BulkResponse)1 IndexRequestBuilder (org.elasticsearch.action.index.IndexRequestBuilder)1 XContentBuilder (org.elasticsearch.common.xcontent.XContentBuilder)1