Class SSHLauncherConfigHandler

java.lang.Object
fr.ifremer.isisfish.ui.config.SSHLauncherConfigHandler

public class SSHLauncherConfigHandler extends Object
Action for SSHLauncherConfig UI.
Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
  • Field Details

    • configUI

      protected SSHLauncherConfigUI configUI
    • currentSSHserver

      protected String currentSSHserver
    • currentSSHUsername

      protected String currentSSHUsername
    • currentSSHKey

      protected File currentSSHKey
    • currentFTPserver

      protected String currentFTPserver
    • currentFTPUsername

      protected String currentFTPUsername
    • currentSSHIsisHome

      protected String currentSSHIsisHome
    • currentSSHJavaPath

      protected String currentSSHJavaPath
    • currentSSHPbsQsubOptions

      protected String currentSSHPbsQsubOptions
    • currentSSHMaxThreads

      protected String currentSSHMaxThreads
    • currentSSHMaxMemory

      protected String currentSSHMaxMemory
    • currentSSHControlInterval

      protected String currentSSHControlInterval
  • Constructor Details

    • SSHLauncherConfigHandler

      public SSHLauncherConfigHandler(SSHLauncherConfigUI configUI)
      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

      protected void setColor(boolean invalid, JComponent component)
      Set color depending of field validity.
      Parameters:
      invalid - valid field
      component - component to set color
    • setTestSSHMessage

      protected void setTestSSHMessage(String message, boolean error)
      Set message in message field with status color.
      Parameters:
      message - message to display
      error - error status
    • setTestFTPMessage

      protected void setTestFTPMessage(String message, boolean error)
      Set message in message field with status color.
      Parameters:
      message - message to display
      error - error status
    • setTestMiscMessage

      protected void setTestMiscMessage(String message, boolean error)
      Set message in message field with status color.
      Parameters:
      message - message to display
      error - error status