Package hudson.plugins.s3.callable
Class S3DownloadCallable
- java.lang.Object
-
- hudson.plugins.s3.callable.S3DownloadCallable
-
- All Implemented Interfaces:
FilePath.FileCallable<String>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
public final class S3DownloadCallable extends Object
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3DownloadCallable(String accessKey, Secret secretKey, boolean useRole, Destination dest, String region, 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(File file, hudson.remoting.VirtualChannel channel)
-
-
-
Constructor Detail
-
S3DownloadCallable
public S3DownloadCallable(String accessKey, Secret secretKey, boolean useRole, Destination dest, String region, ProxyConfiguration proxy)
-
-
Method Detail
-
invoke
public String invoke(File file, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
- 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
-
-