public class TransferThread extends Object implements Callable<ThreadResponseData>
Modifier and Type | Field and Description |
---|---|
static String |
TIMEOUT_TEST |
Constructor and Description |
---|
TransferThread(Driver driver,
OfferReference offerReference,
StoragePutRequest request,
Digest globalDigest,
long size)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
ThreadResponseData |
call() |
static void |
setJunitMode(boolean mode)
Allow to check timeout in Junit
|
public static final String TIMEOUT_TEST
public TransferThread(Driver driver, OfferReference offerReference, StoragePutRequest request, Digest globalDigest, long size)
driver
- thre diverofferReference
- the offer reference to put objectrequest
- the request to put objectglobalDigest
- the globalDigest associated with the streampublic static void setJunitMode(boolean mode)
mode
- if true allow to implement timeout using GUID to "timeoutTest"public ThreadResponseData call() throws StorageException, StorageDriverException, StorageAlreadyExistsException, InterruptedException
call
in interface Callable<ThreadResponseData>
StorageException
StorageDriverException
StorageAlreadyExistsException
InterruptedException
Copyright © 2018 Vitam. All rights reserved.