Package hudson.plugins.s3.callable
Class S3BaseUploadCallable
- java.lang.Object
-
- hudson.plugins.s3.callable.S3BaseUploadCallable
-
- All Implemented Interfaces:
FilePath.FileCallable<String>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
- Direct Known Subclasses:
S3GzipCallable
,S3UploadCallable
public abstract class S3BaseUploadCallable extends Object
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3BaseUploadCallable(String accessKey, Secret secretKey, boolean useRole, Destination dest, Map<String,String> userMetadata, String storageClass, String selregion, boolean useServerSideEncryption, ProxyConfiguration proxy)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected com.amazonaws.services.s3.model.ObjectMetadata
buildMetadata(FilePath filePath)
void
checkRoles(org.jenkinsci.remoting.RoleChecker roleChecker)
Destination
getDest()
protected com.amazonaws.services.s3.transfer.TransferManager
getTransferManager()
abstract String
invoke(FilePath file)
Stream from slave to master, then upload from masterString
invoke(File file, hudson.remoting.VirtualChannel channel)
Upload from slave directly
-
-
-
Constructor Detail
-
S3BaseUploadCallable
public S3BaseUploadCallable(String accessKey, Secret secretKey, boolean useRole, Destination dest, Map<String,String> userMetadata, String storageClass, String selregion, boolean useServerSideEncryption, ProxyConfiguration proxy)
-
-
Method Detail
-
invoke
public String invoke(File file, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
Upload from slave directly- Throws:
IOException
InterruptedException
-
invoke
public abstract String invoke(FilePath file) throws IOException, InterruptedException
Stream from slave to master, then upload from master- Throws:
IOException
InterruptedException
-
buildMetadata
protected com.amazonaws.services.s3.model.ObjectMetadata buildMetadata(FilePath filePath) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
getDest
public Destination getDest()
-
getTransferManager
protected com.amazonaws.services.s3.transfer.TransferManager getTransferManager()
-
checkRoles
public void checkRoles(org.jenkinsci.remoting.RoleChecker roleChecker) throws SecurityException
- Specified by:
checkRoles
in interfaceorg.jenkinsci.remoting.RoleSensitive
- Throws:
SecurityException
-
-