Package hudson.plugins.s3.callable
Class S3UploadCallable
- java.lang.Object
-
- hudson.plugins.s3.callable.S3BaseUploadCallable
-
- hudson.plugins.s3.callable.S3UploadCallable
-
- All Implemented Interfaces:
FilePath.FileCallable<String>
,MasterSlaveCallable<String>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
public final class S3UploadCallable extends S3BaseUploadCallable implements MasterSlaveCallable<String>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3UploadCallable(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 Concrete Methods Modifier and Type Method Description void
checkRoles(org.jenkinsci.remoting.RoleChecker roleChecker)
protected com.amazonaws.services.s3.transfer.TransferManager
getTransferManager()
String
invoke(FilePath file)
Stream from slave to master, then upload from master-
Methods inherited from class hudson.plugins.s3.callable.S3BaseUploadCallable
buildMetadata, getDest, invoke
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.plugins.s3.callable.MasterSlaveCallable
invoke
-
-
-
-
Constructor Detail
-
S3UploadCallable
public S3UploadCallable(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(FilePath file) throws IOException, InterruptedException
Stream from slave to master, then upload from master- Specified by:
invoke
in interfaceMasterSlaveCallable<String>
- Specified by:
invoke
in classS3BaseUploadCallable
- Throws:
IOException
InterruptedException
-
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
-
-