19 package org.sleuthkit.autopsy.test;
21 import java.util.logging.Level;
22 import org.openide.util.lookup.ServiceProvider;
37 return "Test Autopsy Service";
44 progressIndicator.
start(
"Test Autopsy Service doing first task...");
45 logger.log(Level.INFO,
"Test Autopsy Service simulating work on first task");
56 progressIndicator.
finish();
57 progressIndicator.
start(
"Test Autopsy Service doing second task...");
58 for (
int i = 0; i < 10000; ++i) {
59 logger.log(Level.INFO,
"Test Autopsy Service simulating work on second task");
60 if (context.cancelRequested()) {
61 logger.log(Level.INFO,
"Test Autopsy Service cancelled while doing second task, cancel requested = {0}", context.cancelRequested());
65 progressIndicator.
finish();
66 }
catch (InterruptedException ex) {
67 logger.log(Level.INFO,
"Test Autopsy Service interrupted (cancelled) while doing first task, cancel requested = {0}", context.cancelRequested());
void openCaseResources(CaseContext context)
void start(String message, int totalWorkUnits)
static final Logger logger
synchronized static Logger getLogger(String name)
void progress(String message)