Class WriteTask
java.lang.Object
fr.gouv.vitam.storage.offers.tape.worker.tasks.WriteTask
- All Implemented Interfaces:
Future<ReadWriteResult>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWriteTask
(WriteOrder writeOrder, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, ArchiveReferentialRepository archiveReferentialRepository, ArchiveCacheStorage archiveCacheStorage, String inputTarPath, boolean forceOverrideNonEmptyCartridges) -
Method Summary
-
Field Details
-
TAPE_MSG
- See Also:
-
TAPE_LABEL
- See Also:
-
SLEEP_TIME
public static final int SLEEP_TIME- See Also:
-
CARTRIDGE_RETRY
public static final int CARTRIDGE_RETRY- See Also:
-
MSG_PREFIX
-
cancelled
protected boolean cancelled -
done
protected boolean done
-
-
Constructor Details
-
WriteTask
public WriteTask(WriteOrder writeOrder, TapeCatalog workerCurrentTape, TapeLibraryService tapeLibraryService, TapeCatalogService tapeCatalogService, ArchiveReferentialRepository archiveReferentialRepository, ArchiveCacheStorage archiveCacheStorage, String inputTarPath, boolean forceOverrideNonEmptyCartridges)
-
-
Method Details
-
get
- Specified by:
get
in interfaceFuture<ReadWriteResult>
-
get
public ReadWriteResult get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<ReadWriteResult>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancel
in interfaceFuture<ReadWriteResult>
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<ReadWriteResult>
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceFuture<ReadWriteResult>
-