Go to the documentation of this file.
19package org.sleuthkit.autopsy.coreutils;
21import java.util.concurrent.ExecutionException;
22import java.util.logging.Level;
23import javafx.concurrent.Task;
24import org.openide.util.Cancellable;
29public abstract class LoggedTask<T>
extends Task<T> implements Cancellable {
36 updateTitle(taskName);
51 LOGGER.log(Level.SEVERE, getTitle() +
" failed!", getException());
68 }
catch (InterruptedException | ExecutionException ex) {
69 LOGGER.log(Level.SEVERE, getTitle() +
" threw unexpected exception: ", ex);
LoggedTask(String taskName, boolean logStateChanges)
final boolean logStateChanges
static final Logger LOGGER
synchronized static Logger getLogger(String name)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.