|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.ui.config.SSHLauncherConfigAction
public class SSHLauncherConfigAction
Action for SSHLauncherConfig UI.
| Field Summary | |
|---|---|
protected SSHLauncherConfigUI |
configUI
|
protected String |
currentSSHControlInterval
|
protected String |
currentSSHDatapath
|
protected String |
currentSSHIsisHome
|
protected String |
currentSSHJavaPath
|
protected File |
currentSSHKey
|
protected String |
currentSSHMaxThreads
|
protected String |
currentSSHPbsBinPath
|
protected String |
currentSSHPbsQsubOptions
|
protected String |
currentSSHserver
|
protected String |
currentSSHTempPath
|
protected String |
currentSSHUserhome
|
protected String |
currentSSHUsername
|
| Constructor Summary | |
|---|---|
SSHLauncherConfigAction(SSHLauncherConfigUI configUI)
Constructor with UI. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 currentSSHPbsBinPath
protected String currentSSHPbsQsubOptions
protected String currentSSHMaxThreads
protected String currentSSHControlInterval
| Constructor Detail |
|---|
public SSHLauncherConfigAction(SSHLauncherConfigUI configUI)
configUI - config ui| Method Detail |
|---|
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 session
SSHException
protected String getFolderSize(com.jcraft.jsch.Session session,
String path)
throws SSHException
session - opened session
SSHExceptionpublic 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 color
protected void setTestMessage(String message,
boolean error)
message - message to displayerror - error status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||