/** * Convenience method to trigger an event cancellation via {@link CancelEventTrigger#cancelTask} * if this thread watcher is associated with an operation that can be cancelled. */ public void cancelTask() { if (isCancelTaskSupported()) { cancelEventListener.cancelTask(this); } }
public void updateThreadsCompletedCount(long completedThreads, org.jets3t.service.multithread.CancelEventTrigger cancelEventListener) { super.updateThreadsCompletedCount(completedThreads, cancelEventListener); }
@Override public void run() { threadedService.listObjects(bucketName, finalPrefixes, finalDelimiter, Constants.DEFAULT_OBJECT_LIST_CHUNK_SIZE); }; }).run();
public void event(ListObjectsEvent event) { storeThrowable(event); }
@Override public S3Object getObject() { return (S3Object) super.getObject(); }
protected void forceInterrupt() { forceInterruptCalled(); } }
/** * Retrieves details of multiple objects (details only, no data) * * @param bucketName * name of the bucket containing the objects. * @param objectKeys * the key names of the objects to retrieve. * @return * objects populated with the details retrieved. * @throws ServiceException */ public StorageObject[] getObjectsHeads(String bucketName, final String[] objectKeys) throws ServiceException { return getObjectsHeads(bucketName, objectKeys, null); }
/** * Convenience method to trigger an event cancellation via {@link CancelEventTrigger#cancelTask} * if this thread watcher is associated with an operation that can be cancelled. */ public void cancelTask() { if (isCancelTaskSupported()) { cancelEventListener.cancelTask(this); } }
public void event(UpdateACLEvent event) { storeThrowable(event); }
/** * Sets information about the number of threads completed and the total number of threads. * * @param completedThreads * the number of threads that have completed. */ public void updateThreadsCompletedCount(long completedThreads) { updateThreadsCompletedCount(completedThreads, null); }
@Override public void run() { threadedService.listObjects(bucketName, finalPrefixes, finalDelimiter, Constants.DEFAULT_OBJECT_LIST_CHUNK_SIZE); }; }).run();
@Override public S3Object getObject() { return (S3Object) super.getObject(); }
public void event(CreateBucketsEvent event) { storeThrowable(event); }
/** * Sets information about the number of threads completed and the total number of threads. * * @param completedThreads * the number of threads that have completed. */ public void updateThreadsCompletedCount(long completedThreads) { updateThreadsCompletedCount(completedThreads, null); }
public void event(CreateObjectsEvent event) { storeThrowable(event); }
public void updateThreadsCompletedCount(long completedThreads, org.jets3t.service.multithread.CancelEventTrigger cancelEventListener) { super.updateThreadsCompletedCount(completedThreads, cancelEventListener); }
public void event(CreateBucketsEvent event) { storeThrowable(event); }
public void event(DeleteObjectsEvent event) { storeThrowable(event); }
public void event(GetObjectHeadsEvent event) { storeThrowable(event); }
public void event(DownloadObjectsEvent event) { storeThrowable(event); }