public class SshMeta extends Object
| Constructor and Description |
|---|
SshMeta()
Instantiates a new ssh meta.
|
SshMeta(String commandLine,
String userName,
int sshPort,
SshLoginType sshLoginType,
String privKeyRelativePath,
String password,
boolean privKeyUsePassphrase,
String passphrase,
int sshConnectionTimeoutMillis,
boolean runAsSuperUser)
Instantiates a new ssh meta.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandLine()
Gets the command line.
|
String |
getPassphrase()
Gets the passphrase.
|
String |
getPassword()
Gets the password.
|
String |
getPrivKeyAbsPath()
Gets the priv key abs path.
|
String |
getPrivKeyRelativePath()
Gets the priv key relative path.
|
int |
getSshConnectionTimeoutMillis()
Gets the ssh connection timeout millis.
|
SshLoginType |
getSshLoginType()
Gets the ssh login type.
|
int |
getSshPort()
Gets the ssh port.
|
String |
getUserName()
Gets the user name.
|
boolean |
isPrivKeyUsePassphrase()
Checks if is priv key use passphrase.
|
boolean |
isRunAsSuperUser()
Checks if is run as super user.
|
void |
setCommandLine(String commandLine)
Sets the command line.
|
void |
setPassphrase(String passphrase)
Sets the passphrase.
|
void |
setPassword(String password)
Sets the password.
|
void |
setPrivKeyRelativePath(String privKeyRelativePath)
Sets the priv key relative path.
|
void |
setPrivKeyUsePassphrase(boolean privKeyUsePassphrase)
Sets the priv key use passphrase.
|
void |
setRunAsSuperUser(boolean runAsSuperUser)
Sets the runAsSuperUser.
|
void |
setSshConnectionTimeoutMillis(int sshConnectionTimeoutMillis)
Sets the ssh connection timeout millis.
|
void |
setSshLoginType(SshLoginType sshLoginType)
Sets the ssh login type.
|
void |
setSshPort(int sshPort)
Sets the ssh port.
|
void |
setUserName(String userName)
Sets the user name.
|
boolean |
validation()
Validation.
|
public SshMeta(String commandLine, String userName, int sshPort, SshLoginType sshLoginType, String privKeyRelativePath, String password, boolean privKeyUsePassphrase, String passphrase, int sshConnectionTimeoutMillis, boolean runAsSuperUser)
commandLine - the command lineuserName - the user namesshPort - the ssh portsshLoginType - the ssh login typeprivKeyRelativePath - the priv key relative pathpassword - the passwordprivKeyUsePassphrase - the priv key use passphrasepassphrase - the passphrasesshConnectionTimeoutMillis - the ssh connection timeout millisrunAsSuperUser - if the ssh will be run as superuser.public SshMeta()
public boolean isPrivKeyUsePassphrase()
public void setPrivKeyUsePassphrase(boolean privKeyUsePassphrase)
privKeyUsePassphrase - the new priv key use passphrasepublic String getPassphrase()
public void setPassphrase(String passphrase)
passphrase - the new passphrasepublic boolean isRunAsSuperUser()
public void setRunAsSuperUser(boolean runAsSuperUser)
runAsSuperUser - the new runAsSuperUserpublic boolean validation()
throws ParallelTaskInvalidException
ParallelTaskInvalidException - the parallel task invalid exceptionpublic String getCommandLine()
public void setCommandLine(String commandLine)
commandLine - the new command linepublic String getPassword()
public void setPassword(String password)
password - the new passwordpublic SshLoginType getSshLoginType()
public void setSshLoginType(SshLoginType sshLoginType)
sshLoginType - the new ssh login typepublic int getSshPort()
public void setSshPort(int sshPort)
sshPort - the new ssh portpublic String getPrivKeyRelativePath()
public void setPrivKeyRelativePath(String privKeyRelativePath)
privKeyRelativePath - the new priv key relative pathpublic String getUserName()
public void setUserName(String userName)
userName - the new user namepublic String getPrivKeyAbsPath()
public int getSshConnectionTimeoutMillis()
public void setSshConnectionTimeoutMillis(int sshConnectionTimeoutMillis)
sshConnectionTimeoutMillis - the new ssh connection timeout millisCopyright © 2015–2017 eBay. All rights reserved.