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
From S3 Plugin modified for this purpose
This class supports subclasses to create S3 object metadata
- See Also:
-
Constructor Summary
ConstructorDescriptionS3BaseUploadCallable
(ClientHelper clientHelper, Map<String, String> userMetadata, String storageClass, boolean useServerSideEncryption) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.amazonaws.services.s3.model.ObjectMetadata
buildMetadata
(File file) invoke
(com.amazonaws.services.s3.transfer.TransferManager transferManager, File f, hudson.remoting.VirtualChannel channel) Override this if you do want a transfer managerOverride this if you don't want a transfer managerMethods inherited from class jenkins.MasterToSlaveFileCallable
checkRoles
-
Constructor Details
-
S3BaseUploadCallable
public S3BaseUploadCallable(ClientHelper clientHelper, Map<String, String> userMetadata, String storageClass, boolean useServerSideEncryption)
-
-
Method Details
-
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
-