Package org.jets3t.service.multithread
Class DeleteVersionedObjectsEvent
- java.lang.Object
-
- org.jets3t.service.multi.event.ServiceEvent
-
- org.jets3t.service.multithread.ServiceEvent
-
- org.jets3t.service.multithread.DeleteVersionedObjectsEvent
-
public class DeleteVersionedObjectsEvent extends ServiceEvent
Multi-threaded service event fired byS3ServiceMulti.deleteVersionsOfObject(String[], String, String)
orS3ServiceMulti.deleteVersionsOfObjectWithMFA(String[], String, String, String, String)
.EVENT_IN_PROGRESS events include an array of the
S3Version
s that have been deleted since the last progress event was fired. These versions are available viagetDeletedVersions()
.EVENT_CANCELLED events include an array of the
S3Version
s that had not been deleted before the operation was cancelled. These versions are available viagetCancelledVersions()
.- 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 S3Version[]
getCancelledVersions()
S3Version[]
getDeletedVersions()
static DeleteVersionedObjectsEvent
newCancelledEvent(S3Version[] remainingVersions, Object uniqueOperationId)
static DeleteVersionedObjectsEvent
newCompletedEvent(Object uniqueOperationId)
static DeleteVersionedObjectsEvent
newErrorEvent(Throwable t, Object uniqueOperationId)
static DeleteVersionedObjectsEvent
newIgnoredErrorsEvent(ThreadWatcher threadWatcher, Throwable[] ignoredErrors, Object uniqueOperationId)
static DeleteVersionedObjectsEvent
newInProgressEvent(ThreadWatcher threadWatcher, S3Version[] deletedVersions, Object uniqueOperationId)
static DeleteVersionedObjectsEvent
newStartedEvent(ThreadWatcher threadWatcher, Object uniqueOperationId)
-
Methods inherited from class org.jets3t.service.multithread.ServiceEvent
getThreadWatcher
-
Methods inherited from class org.jets3t.service.multi.event.ServiceEvent
getErrorCause, getEventCode, getIgnoredErrors, getUniqueOperationId, toString
-
-
-
-
Method Detail
-
newErrorEvent
public static DeleteVersionedObjectsEvent newErrorEvent(Throwable t, Object uniqueOperationId)
-
newStartedEvent
public static DeleteVersionedObjectsEvent newStartedEvent(ThreadWatcher threadWatcher, Object uniqueOperationId)
-
newInProgressEvent
public static DeleteVersionedObjectsEvent newInProgressEvent(ThreadWatcher threadWatcher, S3Version[] deletedVersions, Object uniqueOperationId)
-
newCompletedEvent
public static DeleteVersionedObjectsEvent newCompletedEvent(Object uniqueOperationId)
-
newCancelledEvent
public static DeleteVersionedObjectsEvent newCancelledEvent(S3Version[] remainingVersions, Object uniqueOperationId)
-
newIgnoredErrorsEvent
public static DeleteVersionedObjectsEvent newIgnoredErrorsEvent(ThreadWatcher threadWatcher, Throwable[] ignoredErrors, Object uniqueOperationId)
-
getDeletedVersions
public S3Version[] getDeletedVersions() throws IllegalStateException
- Returns:
- the S3Versions that have been deleted since the last progress event was fired.
- Throws:
IllegalStateException
- deleted versions are only available from EVENT_IN_PROGRESS events.
-
getCancelledVersions
public S3Version[] getCancelledVersions() throws IllegalStateException
- Returns:
- the S3Versions that were not deleted before the operation was cancelled.
- Throws:
IllegalStateException
- cancelled objects are only available from EVENT_CANCELLED events.
-
-