Package org.jets3t.service.multi.event
Class ListObjectsEvent
- java.lang.Object
-
- org.jets3t.service.multi.event.ServiceEvent
-
- org.jets3t.service.multi.event.ListObjectsEvent
-
public class ListObjectsEvent extends ServiceEvent
Multi-threaded service event fired byThreadedStorageService.listObjects(String, String[], String, long)
.EVENT_IN_PROGRESS events include a List of
StorageObjectsChunk
objects that contain information about the objects and common-prefixes for the bucket listing operation. Each chunk object will contain a prefix identifying the prefix value used by the listing operation that produced the chunk. These objects are available viagetChunkList()
.- Author:
- James Murty
-
-
Field Summary
-
Fields inherited from class org.jets3t.service.multi.event.ServiceEvent
EVENT_CANCELLED, EVENT_COMPLETED, EVENT_ERROR, EVENT_IGNORED_ERRORS, EVENT_IN_PROGRESS, EVENT_STARTED
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<StorageObjectsChunk>
getChunkList()
static ListObjectsEvent
newCancelledEvent(Object uniqueOperationId)
static ListObjectsEvent
newCompletedEvent(Object uniqueOperationId)
static ListObjectsEvent
newErrorEvent(Throwable t, Object uniqueOperationId)
static ListObjectsEvent
newIgnoredErrorsEvent(ThreadWatcher threadWatcher, Throwable[] ignoredErrors, Object uniqueOperationId)
static ListObjectsEvent
newInProgressEvent(ThreadWatcher threadWatcher, List<StorageObjectsChunk> chunkList, Object uniqueOperationId)
static ListObjectsEvent
newStartedEvent(ThreadWatcher threadWatcher, Object uniqueOperationId)
-
Methods inherited from class org.jets3t.service.multi.event.ServiceEvent
getErrorCause, getEventCode, getIgnoredErrors, getThreadWatcher, getUniqueOperationId, toString
-
-
-
-
Method Detail
-
newErrorEvent
public static ListObjectsEvent newErrorEvent(Throwable t, Object uniqueOperationId)
-
newStartedEvent
public static ListObjectsEvent newStartedEvent(ThreadWatcher threadWatcher, Object uniqueOperationId)
-
newInProgressEvent
public static ListObjectsEvent newInProgressEvent(ThreadWatcher threadWatcher, List<StorageObjectsChunk> chunkList, Object uniqueOperationId)
-
newCompletedEvent
public static ListObjectsEvent newCompletedEvent(Object uniqueOperationId)
-
newCancelledEvent
public static ListObjectsEvent newCancelledEvent(Object uniqueOperationId)
-
newIgnoredErrorsEvent
public static ListObjectsEvent newIgnoredErrorsEvent(ThreadWatcher threadWatcher, Throwable[] ignoredErrors, Object uniqueOperationId)
-
getChunkList
public List<StorageObjectsChunk> getChunkList() throws IllegalStateException
- Returns:
- a list of the
StorageObjectsChunk
s that have been generated since the last progress event was fired. - Throws:
IllegalStateException
- listed objects are only available from EVENT_IN_PROGRESS events.
-
-