Go to the documentation of this file.
19package org.sleuthkit.autopsy.imagewriter;
21import java.util.ArrayList;
23import org.openide.DialogDescriptor;
24import org.openide.DialogDisplayer;
25import org.openide.NotifyDescriptor;
26import org.openide.util.NbBundle;
27import org.openide.util.lookup.ServiceProvider;
28import org.sleuthkit.autopsy.appservices.AutopsyService;
39 private static final List<ImageWriter>
imageWriters =
new ArrayList<>();
54 ImageWriter writer =
new ImageWriter(imageId, settings);
55 writer.subscribeToEvents();
62 return NbBundle.getMessage(this.getClass(),
"ImageWriterService.serviceName");
72 context.getProgressIndicator().progress(NbBundle.getMessage(
this.getClass(),
"ImageWriterService.waitingForVHDs"));
80 writer.cancelIfNotStarted();
84 boolean jobsAreInProgress =
false;
86 if (writer.jobIsInProgress()) {
87 jobsAreInProgress =
true;
92 if (jobsAreInProgress) {
94 NotifyDescriptor descriptor =
new NotifyDescriptor.Confirmation(
95 NbBundle.getMessage(
this.getClass(),
"ImageWriterService.shouldWait"),
96 NbBundle.getMessage(
this.getClass(),
"ImageWriterService.localDisk"),
97 NotifyDescriptor.YES_NO_OPTION,
98 NotifyDescriptor.WARNING_MESSAGE);
99 descriptor.setValue(NotifyDescriptor.NO_OPTION);
100 Object response = DialogDisplayer.getDefault().notify(descriptor);
102 if (response == DialogDescriptor.NO_OPTION) {
112 writer.waitForJobToFinish();
119 writer.unsubscribeFromEvents();
static final Object imageWritersLock
void closeCaseResources(CaseContext context)
static void createImageWriter(Long imageId, ImageWriterSettings settings)
static final List< ImageWriter > imageWriters
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.