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 by
ThreadedStorageService.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 via getChunkList()
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
newErrorEvent
public static ListObjectsEvent newErrorEvent(java.lang.Throwable t,
java.lang.Object uniqueOperationId)
newStartedEvent
public static ListObjectsEvent newStartedEvent(ThreadWatcher threadWatcher,
java.lang.Object uniqueOperationId)
newInProgressEvent
public static ListObjectsEvent newInProgressEvent(ThreadWatcher threadWatcher,
java.util.List<StorageObjectsChunk> chunkList,
java.lang.Object uniqueOperationId)
newCompletedEvent
public static ListObjectsEvent newCompletedEvent(java.lang.Object uniqueOperationId)
newCancelledEvent
public static ListObjectsEvent newCancelledEvent(java.lang.Object uniqueOperationId)
newIgnoredErrorsEvent
public static ListObjectsEvent newIgnoredErrorsEvent(ThreadWatcher threadWatcher,
java.lang.Throwable[] ignoredErrors,
java.lang.Object uniqueOperationId)
getChunkList
public java.util.List<StorageObjectsChunk> getChunkList()
throws java.lang.IllegalStateException
- Returns:
- a list of the
StorageObjectsChunk
s that have been generated since the
last progress event was fired.
- Throws:
java.lang.IllegalStateException
- listed objects are only available from EVENT_IN_PROGRESS events.