Package fr.ifremer.isisfish.ui.config
Class SSHLauncherConfigHandler
java.lang.Object
fr.ifremer.isisfish.ui.config.SSHLauncherConfigHandler
Action for SSHLauncherConfig UI.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
Close frame.protected void
Reset display.void
doCheck()
Check input format validity.protected void
Generate new SSH key.void
Reset values with default configuration values.void
Set values in config and force configuration save.protected void
setColor
(boolean invalid, JComponent component) Set color depending of field validity.protected void
setTestFTPMessage
(String message, boolean error) Set message in message field with status color.protected void
setTestMiscMessage
(String message, boolean error) Set message in message field with status color.protected void
setTestSSHMessage
(String message, boolean error) Set message in message field with status color.protected boolean
Test FTP connection.protected boolean
testMiscConfiguration
(com.jcraft.jsch.Session session) Test some others configuration.void
Realise une connexion SSH et FTP.protected boolean
Realise une connexion ssh et teste les données.
-
Field Details
-
configUI
-
currentSSHserver
-
currentSSHUsername
-
currentSSHKey
-
currentFTPserver
-
currentFTPUsername
-
currentSSHIsisHome
-
currentSSHJavaPath
-
currentSSHPbsQsubOptions
-
currentSSHMaxThreads
-
currentSSHMaxMemory
-
currentSSHControlInterval
-
-
Constructor Details
-
SSHLauncherConfigHandler
Constructor with UI.- Parameters:
configUI
- config ui
-
-
Method Details
-
afterInit
protected void afterInit() -
resetSSHConfiguration
public void resetSSHConfiguration()Reset values with default configuration values. -
configurationChanged
protected void configurationChanged()Reset display. -
doCheck
public void doCheck()Check input format validity. -
saveSSHConfiguration
public void saveSSHConfiguration()Set values in config and force configuration save. -
cancelSSHConfiguration
public void cancelSSHConfiguration()Close frame. -
testSSHConfiguration
public void testSSHConfiguration()Realise une connexion SSH et FTP. -
testSSHOnlyConfiguration
protected boolean testSSHOnlyConfiguration()Realise une connexion ssh et teste les données. -
testFTPOnlyConfiguration
protected boolean testFTPOnlyConfiguration()Test FTP connection. -
testMiscConfiguration
protected boolean testMiscConfiguration(com.jcraft.jsch.Session session) Test some others configuration. -
generateSSHKey
protected void generateSSHKey()Generate new SSH key. -
setColor
Set color depending of field validity.- Parameters:
invalid
- valid fieldcomponent
- component to set color
-
setTestSSHMessage
Set message in message field with status color.- Parameters:
message
- message to displayerror
- error status
-
setTestFTPMessage
Set message in message field with status color.- Parameters:
message
- message to displayerror
- error status
-
setTestMiscMessage
Set message in message field with status color.- Parameters:
message
- message to displayerror
- error status
-