Package jenkins.plugins.itemstorage.s3
Class S3BaseUploadCallable<T>
- java.lang.Object
-
- jenkins.MasterToSlaveFileCallable<T>
-
- jenkins.plugins.itemstorage.s3.S3BaseUploadCallable<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
FilePath.FileCallable<T>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
- Direct Known Subclasses:
S3UploadAllCallable
,S3UploadCallable
public abstract class S3BaseUploadCallable<T> extends MasterToSlaveFileCallable<T>
From S3 Plugin modified for this purpose This class supports subclasses to create S3 object metadata- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3BaseUploadCallable(ClientHelper clientHelper, Map<String,String> userMetadata, String storageClass, boolean useServerSideEncryption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.amazonaws.services.s3.model.ObjectMetadata
buildMetadata(File file)
T
invoke(com.amazonaws.services.s3.transfer.TransferManager transferManager, File f, hudson.remoting.VirtualChannel channel)
Override this if you do want a transfer managerT
invoke(File f, hudson.remoting.VirtualChannel channel)
Override this if you don't want a transfer manager-
Methods inherited from class jenkins.MasterToSlaveFileCallable
checkRoles
-
-
-
-
Constructor Detail
-
S3BaseUploadCallable
public S3BaseUploadCallable(ClientHelper clientHelper, Map<String,String> userMetadata, String storageClass, boolean useServerSideEncryption)
-
-
Method Detail
-
buildMetadata
protected com.amazonaws.services.s3.model.ObjectMetadata buildMetadata(File file) throws IOException
- Throws:
IOException
-
invoke
public T invoke(File f, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
Override this if you don't want a transfer manager- Throws:
IOException
InterruptedException
-
invoke
public T invoke(com.amazonaws.services.s3.transfer.TransferManager transferManager, File f, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
Override this if you do want a transfer manager- Throws:
IOException
InterruptedException
-
-