com.atlassian.bamboo.maven.plugins.aws.jsch
Class JschUtils
java.lang.Object
com.atlassian.bamboo.maven.plugins.aws.jsch.JschUtils
public class JschUtils
- extends Object
|
Method Summary |
static Properties |
defaultProperties()
|
static com.jcraft.jsch.JSch |
newJSch()
|
static com.jcraft.jsch.Session |
openSession(org.apache.maven.plugin.logging.Log log,
com.jcraft.jsch.JSch jSch,
String user,
String host,
Properties properties)
|
static
|
runWithRetries(org.apache.maven.plugin.logging.Log log,
com.google.common.base.Supplier<com.atlassian.fugue.Either<com.jcraft.jsch.JSchException,T>> supplier)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultProperties
public static Properties defaultProperties()
newJSch
public static com.jcraft.jsch.JSch newJSch()
openSession
public static com.jcraft.jsch.Session openSession(org.apache.maven.plugin.logging.Log log,
com.jcraft.jsch.JSch jSch,
String user,
String host,
Properties properties)
throws com.jcraft.jsch.JSchException
- Throws:
com.jcraft.jsch.JSchException
runWithRetries
public static <T> T runWithRetries(org.apache.maven.plugin.logging.Log log,
com.google.common.base.Supplier<com.atlassian.fugue.Either<com.jcraft.jsch.JSchException,T>> supplier)
throws com.jcraft.jsch.JSchException
- Throws:
com.jcraft.jsch.JSchException
Copyright © 2015 Atlassian. All rights reserved.