protected abstract class ThreadedStorageService.ThreadGroupManager
extends java.lang.Object
The manager starts all the threads, monitors their progress and stops threads when they are
cancelled or an error occurs - all the while firing the appropriate ServiceEvent
event
notifications.
Constructor and Description |
---|
ThreadGroupManager(ThreadedStorageService.AbstractRunnable[] runnables,
ThreadWatcher threadWatcher,
Jets3tProperties jets3tProperties,
boolean isAdminTask) |
Modifier and Type | Method and Description |
---|---|
abstract void |
fireCancelEvent() |
abstract void |
fireCompletedEvent() |
abstract void |
fireErrorEvent(java.lang.Throwable t) |
abstract void |
fireIgnoredErrorsEvent(ThreadWatcher threadWatcher,
java.lang.Throwable[] ignoredErrors) |
abstract void |
fireProgressEvent(ThreadWatcher threadWatcher,
java.util.List completedResults) |
abstract void |
fireStartEvent(ThreadWatcher threadWatcher) |
void |
run()
Runs and manages all the threads involved in a multi-operation.
|
public ThreadGroupManager(ThreadedStorageService.AbstractRunnable[] runnables, ThreadWatcher threadWatcher, Jets3tProperties jets3tProperties, boolean isAdminTask)
public void run()
public abstract void fireStartEvent(ThreadWatcher threadWatcher)
public abstract void fireProgressEvent(ThreadWatcher threadWatcher, java.util.List completedResults)
public abstract void fireCompletedEvent()
public abstract void fireCancelEvent()
public abstract void fireErrorEvent(java.lang.Throwable t)
public abstract void fireIgnoredErrorsEvent(ThreadWatcher threadWatcher, java.lang.Throwable[] ignoredErrors)