Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
class | TaskAttempt |
interface | Terminator |
Static Public Member Functions | |
static< T > T | attemptTask (Callable< T > task, List< TaskAttempt > attempts, ScheduledThreadPoolExecutor executor, Terminator terminator, Logger logger, String taskDesc) throws InterruptedException |
static long | getTotalFailedTasksCount () |
static long | getTotalTaskAttemptTimeOutsCount () |
static long | getTotalTaskRetriesCount () |
static long | getTotalTasksCount () |
Private Member Functions | |
TaskRetryUtil () | |
Static Private Attributes | |
static final AtomicLong | totalFailedTasks = new AtomicLong() |
static final AtomicLong | totalTaskAttemptTimeOuts = new AtomicLong() |
static final AtomicLong | totalTaskRetries = new AtomicLong() |
static final AtomicLong | totalTasks = new AtomicLong() |
A utility that attempts a task a specified number of times with a specified delay before each attempt and an optional timeout for each attempt. If an attempt times out, the attempt will be cancelled and the next attempt, if any, will begin.
Definition at line 38 of file TaskRetryUtil.java.
|
private |
Private contructor to prevent TaskRetryUtil object instantiation.
Definition at line 289 of file TaskRetryUtil.java.
|
static |
Attempts a task a specified number of times with a specified delay before each attempt and an optional timeout for each attempt. If an attempt times out, that particular attempt task will be cancelled.
T | The return type of the task. |
task | The task. |
attempts | The defining details for each attempt of the task. |
executor | The scheduled task executor to be used to attempt the task. |
terminator | A task terminator that can be used to stop the task attempts between attempts. Optional, may be null. |
logger | A logger that will be used to log info messages about each task attempt and for error messages. Optional, may be null. |
taskDesc | A description of the task for log messages. Optional, may be null. |
InterruptedException |
Definition at line 183 of file TaskRetryUtil.java.
References org.sleuthkit.autopsy.threadutils.TaskRetryUtil.TaskAttempt.getDelay(), org.sleuthkit.autopsy.threadutils.TaskRetryUtil.TaskAttempt.getTimeout(), and org.sleuthkit.autopsy.threadutils.TaskRetryUtil.TaskAttempt.getTimeUnit().
|
static |
Returns a count of the total number of tasks submitted to this utility that were not able to be completed despite retry attempts.
Definition at line 282 of file TaskRetryUtil.java.
Referenced by org.sleuthkit.autopsy.modules.embeddedfileextractor.EmbeddedFileExtractorIngestModule.shutDown().
|
static |
Returns a count of the total number of task attempts that timed out.
Definition at line 272 of file TaskRetryUtil.java.
Referenced by org.sleuthkit.autopsy.modules.embeddedfileextractor.EmbeddedFileExtractorIngestModule.shutDown().
|
static |
Returns a count of the total number of task retry attempts.
Definition at line 263 of file TaskRetryUtil.java.
Referenced by org.sleuthkit.autopsy.modules.embeddedfileextractor.EmbeddedFileExtractorIngestModule.shutDown().
|
static |
Returns a count of the total number of tasks submitted to this utility.
Definition at line 254 of file TaskRetryUtil.java.
Referenced by org.sleuthkit.autopsy.modules.embeddedfileextractor.EmbeddedFileExtractorIngestModule.shutDown().
|
staticprivate |
Definition at line 43 of file TaskRetryUtil.java.
|
staticprivate |
Definition at line 42 of file TaskRetryUtil.java.
|
staticprivate |
Definition at line 41 of file TaskRetryUtil.java.
|
staticprivate |
Definition at line 40 of file TaskRetryUtil.java.
Copyright © 2012-2022 Basis Technology. Generated on: Thu Jun 1 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.