org.gridkit.vicluster.telecontrol.ssh
Class SimpleSshSessionProvider

java.lang.Object
  extended by org.gridkit.vicluster.telecontrol.ssh.SimpleSshSessionProvider
All Implemented Interfaces:
SshSessionFactory

public class SimpleSshSessionProvider
extends Object
implements SshSessionFactory


Constructor Summary
SimpleSshSessionProvider()
           
SimpleSshSessionProvider(JSch jsch)
           
 
Method Summary
 Session getSession(String host, String account)
           
 void setConfig(String key, String value)
           
 void setKeyFile(String fileName)
           
 void setPassword(String password)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSshSessionProvider

public SimpleSshSessionProvider()

SimpleSshSessionProvider

public SimpleSshSessionProvider(JSch jsch)
Method Detail

setUser

public void setUser(String user)

setPassword

public void setPassword(String password)

setKeyFile

public void setKeyFile(String fileName)

setConfig

public void setConfig(String key,
                      String value)

getSession

public Session getSession(String host,
                          String account)
                   throws JSchException
Specified by:
getSession in interface SshSessionFactory
Throws:
JSchException


Copyright © 2017. All Rights Reserved.