Class TransferThread
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.server.distribution.impl.TransferThread
-
- All Implemented Interfaces:
java.util.concurrent.Callable<ThreadResponseData>
public class TransferThread extends java.lang.Object implements java.util.concurrent.Callable<ThreadResponseData>
Thread Future used to send stream to one offer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TIMEOUT_TEST
-
Constructor Summary
Constructors Constructor Description TransferThread(Driver driver, OfferReference offerReference, StoragePutRequest request, Digest globalDigest, long size)
Default constructorTransferThread(Driver driver, OfferReference offerReference, StoragePutRequest request, Digest globalDigest, long size, StorageOfferProvider offerProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadResponseData
call()
static void
setJunitMode(boolean mode)
Allow to check timeout in Junit
-
-
-
Field Detail
-
TIMEOUT_TEST
public static final java.lang.String TIMEOUT_TEST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransferThread
public TransferThread(Driver driver, OfferReference offerReference, StoragePutRequest request, Digest globalDigest, long size)
Default constructor- Parameters:
driver
- thre diverofferReference
- the offer reference to put objectrequest
- the request to put objectglobalDigest
- the globalDigest associated with the stream
-
TransferThread
public TransferThread(Driver driver, OfferReference offerReference, StoragePutRequest request, Digest globalDigest, long size, StorageOfferProvider offerProvider)
-
-
Method Detail
-
setJunitMode
public static void setJunitMode(boolean mode)
Allow to check timeout in Junit- Parameters:
mode
- if true allow to implement timeout using GUID to "timeoutTest"
-
call
public ThreadResponseData call() throws StorageException, StorageDriverException, java.lang.InterruptedException
- Specified by:
call
in interfacejava.util.concurrent.Callable<ThreadResponseData>
- Throws:
StorageException
StorageDriverException
java.lang.InterruptedException
-
-