public class WriteTask extends Object implements Future<ReadWriteResult>
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelled |
static int |
CARTRIDGE_RETRY |
protected boolean |
done |
String |
MSG_PREFIX |
static int |
SLEEP_TIME |
static String |
TAPE_LABEL |
static String |
TAPE_MSG |
Constructor and Description |
---|
WriteTask(WriteOrder writeOrder,
TapeCatalog workerCurrentTape,
TapeLibraryService tapeLibraryService,
TapeCatalogService tapeCatalogService,
ArchiveReferentialRepository archiveReferentialRepository,
String inputTarPath,
boolean forceOverrideNonEmptyCartridges) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
ReadWriteResult |
get() |
ReadWriteResult |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public static final String TAPE_MSG
public static final String TAPE_LABEL
public static final int SLEEP_TIME
public static final int CARTRIDGE_RETRY
public final String MSG_PREFIX
protected boolean cancelled
protected boolean done
public WriteTask(WriteOrder writeOrder, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, ArchiveReferentialRepository archiveReferentialRepository, String inputTarPath, boolean forceOverrideNonEmptyCartridges)
public ReadWriteResult get()
get
in interface Future<ReadWriteResult>
public ReadWriteResult get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<ReadWriteResult>
InterruptedException
ExecutionException
TimeoutException
public boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface Future<ReadWriteResult>
public boolean isCancelled()
isCancelled
in interface Future<ReadWriteResult>
public boolean isDone()
isDone
in interface Future<ReadWriteResult>
Copyright © 2019 Vitam. All rights reserved.