public static GetObjectsEvent newInProgressEvent( ThreadWatcher threadWatcher, SS3Object[] completedObjects, Object uniqueOperationId) { GetObjectsEvent event = new GetObjectsEvent(EVENT_IN_PROGRESS, uniqueOperationId); event.setThreadWatcher(threadWatcher); event.setObjects(completedObjects); return event; }
public static GetObjectsEvent newIgnoredErrorsEvent( ThreadWatcher threadWatcher, Throwable[] ignoredErrors, Object uniqueOperationId) { GetObjectsEvent event = new GetObjectsEvent(EVENT_IGNORED_ERRORS, uniqueOperationId); event.setIgnoredErrors(ignoredErrors); return event; }
public static GetObjectsEvent newCancelledEvent( SS3Object[] incompletedObjects, Object uniqueOperationId) { GetObjectsEvent event = new GetObjectsEvent(EVENT_CANCELLED, uniqueOperationId); event.setObjects(incompletedObjects); return event; }
public static GetObjectsEvent newStartedEvent( ThreadWatcher threadWatcher, Object uniqueOperationId) { GetObjectsEvent event = new GetObjectsEvent(EVENT_STARTED, uniqueOperationId); event.setThreadWatcher(threadWatcher); return event; }
public static GetObjectsEvent newErrorEvent(Throwable t, Object uniqueOperationId) { GetObjectsEvent event = new GetObjectsEvent(EVENT_ERROR, uniqueOperationId); event.setErrorCause(t); return event; }