public class SshMeta
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
commandLine
The command line.
|
private java.lang.String |
passphrase
The passphrase.
|
private java.lang.String |
password
The password.
|
private java.lang.String |
privKeyRelativePath
The priv key relative path.
|
private boolean |
privKeyUsePassphrase
The priv key use passphrase.
|
private boolean |
runAsSuperUser
The priv key for runAsSuperUser.
|
private int |
sshConnectionTimeoutMillis
The ssh connection timeout millis.
|
private SshLoginType |
sshLoginType
The ssh login type.
|
private int |
sshPort
The ssh port.
|
private java.lang.String |
userName
The user name.
|
Constructor and Description |
---|
SshMeta()
Instantiates a new ssh meta.
|
SshMeta(java.lang.String commandLine,
java.lang.String userName,
int sshPort,
SshLoginType sshLoginType,
java.lang.String privKeyRelativePath,
java.lang.String password,
boolean privKeyUsePassphrase,
java.lang.String passphrase,
int sshConnectionTimeoutMillis,
boolean runAsSuperUser)
Instantiates a new ssh meta.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandLine()
Gets the command line.
|
java.lang.String |
getPassphrase()
Gets the passphrase.
|
java.lang.String |
getPassword()
Gets the password.
|
java.lang.String |
getPrivKeyAbsPath()
Gets the priv key abs path.
|
java.lang.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.
|
java.lang.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(java.lang.String commandLine)
Sets the command line.
|
void |
setPassphrase(java.lang.String passphrase)
Sets the passphrase.
|
void |
setPassword(java.lang.String password)
Sets the password.
|
void |
setPrivKeyRelativePath(java.lang.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(java.lang.String userName)
Sets the user name.
|
boolean |
validation()
Validation.
|
private java.lang.String commandLine
private java.lang.String userName
private int sshPort
private SshLoginType sshLoginType
private java.lang.String privKeyRelativePath
private java.lang.String password
private boolean privKeyUsePassphrase
private boolean runAsSuperUser
private java.lang.String passphrase
private int sshConnectionTimeoutMillis
public SshMeta(java.lang.String commandLine, java.lang.String userName, int sshPort, SshLoginType sshLoginType, java.lang.String privKeyRelativePath, java.lang.String password, boolean privKeyUsePassphrase, java.lang.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 java.lang.String getPassphrase()
public void setPassphrase(java.lang.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 java.lang.String getCommandLine()
public void setCommandLine(java.lang.String commandLine)
commandLine
- the new command linepublic java.lang.String getPassword()
public void setPassword(java.lang.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 java.lang.String getPrivKeyRelativePath()
public void setPrivKeyRelativePath(java.lang.String privKeyRelativePath)
privKeyRelativePath
- the new priv key relative pathpublic java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- the new user namepublic java.lang.String getPrivKeyAbsPath()
public int getSshConnectionTimeoutMillis()
public void setSshConnectionTimeoutMillis(int sshConnectionTimeoutMillis)
sshConnectionTimeoutMillis
- the new ssh connection timeout millis