public class SSHLauncherConfigHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected SSHLauncherConfigUI |
configUI |
protected String |
currentSSHControlInterval |
protected String |
currentSSHDatapath |
protected String |
currentSSHIsisHome |
protected String |
currentSSHJavaPath |
protected File |
currentSSHKey |
protected String |
currentSSHMaxMemory |
protected String |
currentSSHMaxThreads |
protected String |
currentSSHPbsQsubOptions |
protected String |
currentSSHserver |
protected String |
currentSSHTempPath |
protected String |
currentSSHUserhome |
protected String |
currentSSHUsername |
Constructor and Description |
---|
SSHLauncherConfigHandler(SSHLauncherConfigUI configUI)
Constructor with UI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterInit() |
void |
cancelSSHConfiguration()
Close frame.
|
void |
clearDatabase()
Clear database.
|
protected void |
clearFolder(String path)
Clear specified directory.
|
void |
clearTempDirectory()
Clear temp directory.
|
protected void |
configurationChanged()
Reset display.
|
void |
doCheck()
Check input format validity.
|
protected void |
generateSSHKey()
Generate new SSH key.
|
protected String |
getFolderSize(com.jcraft.jsch.Session session,
String path)
Get user home directory with an opened session.
|
protected String |
getUserHomeDirectory(com.jcraft.jsch.Session session)
Get user home directory with an opened session.
|
void |
resetSSHConfiguration()
Reset values with default configuration values.
|
void |
saveSSHConfiguration()
Set values in config and force configuration save.
|
protected void |
setColor(boolean invalid,
JComponent component)
Set color depending of field validity.
|
protected void |
setTestMessage(String message,
boolean error)
Set message in message field with status color.
|
void |
testSSHConfiguration()
Realise une connexion ssh et teste les données.
|
protected SSHLauncherConfigUI configUI
protected String currentSSHserver
protected String currentSSHUsername
protected File currentSSHKey
protected String currentSSHUserhome
protected String currentSSHDatapath
protected String currentSSHIsisHome
protected String currentSSHTempPath
protected String currentSSHJavaPath
protected String currentSSHPbsQsubOptions
protected String currentSSHMaxThreads
protected String currentSSHMaxMemory
protected String currentSSHControlInterval
public SSHLauncherConfigHandler(SSHLauncherConfigUI configUI)
configUI
- config uiprotected void afterInit()
public void resetSSHConfiguration()
protected void configurationChanged()
public void doCheck()
public void saveSSHConfiguration()
public void cancelSSHConfiguration()
public void testSSHConfiguration()
protected String getUserHomeDirectory(com.jcraft.jsch.Session session) throws SSHException
session
- opened sessionSSHException
protected String getFolderSize(com.jcraft.jsch.Session session, String path) throws SSHException
session
- opened sessionpath
- path to get sizeSSHException
public void clearDatabase()
public void clearTempDirectory()
protected void clearFolder(String path)
path
- path to clearprotected void generateSSHKey()
protected void setColor(boolean invalid, JComponent component)
invalid
- valid fieldcomponent
- component to set colorprotected void setTestMessage(String message, boolean error)
message
- message to displayerror
- error statusCopyright © 1999–2020 CodeLutin. All rights reserved.