/** * Retrieves details (but no data) about multiple objects from a bucket, and sends * {@link GetObjectHeadsEvent} notification events. * <p> * The maximum number of threads is controlled by the JetS3t configuration property * <tt>threaded-service.admin-max-thread-count</tt>. * * @param bucketName * name of the bucket containing the objects. * @param objectKeys * the key names of the objects with details to retrieve. * * @return * true if all the threaded tasks completed successfully, false otherwise. */ public boolean getObjectsHeads(final String bucketName, final String[] objectKeys) { return getObjectsHeads(bucketName, objectKeys, null); }
/** * Retrieves details (but no data) about multiple objects from a bucket, and sends * {@link GetObjectHeadsEvent} notification events. * <p> * The maximum number of threads is controlled by the JetS3t configuration property * <tt>threaded-service.admin-max-thread-count</tt>. * * @param bucketName * name of the bucket containing the objects. * @param objectKeys * the key names of the objects with details to retrieve. * * @return * true if all the threaded tasks completed successfully, false otherwise. */ public boolean getObjectsHeads(final String bucketName, final String[] objectKeys) { return getObjectsHeads(bucketName, objectKeys, null); }
/** * Retrieves details (but no data) about multiple objects from a bucket, and sends * {@link GetObjectHeadsEvent} notification events. * * @param bucketName * name of the bucket containing the objects whose details will be retrieved. * @param objects * the objects with details to retrieve. * * @return * true if all the threaded tasks completed successfully, false otherwise. */ public boolean getObjectsHeads(String bucketName, StorageObject[] objects) { String[] objectKeys = new String[objects.length]; for (int i = 0; i < objects.length; i++) { objectKeys[i] = objects[i].getKey(); } return getObjectsHeads(bucketName, objectKeys, null); }
/** * Retrieves details (but no data) about multiple objects from a bucket, and sends * {@link GetObjectHeadsEvent} notification events. * * @param bucketName * name of the bucket containing the objects whose details will be retrieved. * @param objects * the objects with details to retrieve. * * @return * true if all the threaded tasks completed successfully, false otherwise. */ public boolean getObjectsHeads(String bucketName, StorageObject[] objects) { String[] objectKeys = new String[objects.length]; for (int i = 0; i < objects.length; i++) { objectKeys[i] = objects[i].getKey(); } return getObjectsHeads(bucketName, objectKeys, null); }
(new ThreadedStorageService(service, adaptor)).getObjectsHeads( bucketName, objectKeys, errorPermitter); throwError(adaptor);
(new ThreadedStorageService(service, adaptor)).getObjectsHeads( bucketName, objectKeys, errorPermitter); throwError(adaptor);
threadedService.addServiceEventListener(eventListener); threadedService.getObjectsHeads(bucketName, objectsForMetadataRetrieval.toArray(new StorageObject[] {})); if (serviceExceptions[0] != null) {
threadedService.addServiceEventListener(eventListener); threadedService.getObjectsHeads(bucketName, objectsForMetadataRetrieval.toArray(new StorageObject[] {})); if (serviceExceptions[0] != null) {