public class JschUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
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 <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) |
public static Properties defaultProperties()
public static com.jcraft.jsch.JSch newJSch()
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
com.jcraft.jsch.JSchExceptionpublic 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
com.jcraft.jsch.JSchExceptionCopyright © 2015 Atlassian. All rights reserved.