fr.ifremer.isisfish.ui.config
Class SSHLauncherConfigAction

java.lang.Object
  extended by fr.ifremer.isisfish.ui.config.SSHLauncherConfigAction

public class SSHLauncherConfigAction
extends Object

Action for SSHLauncherConfig UI.

Version:
$Revision: 3460 $ Last update : $Date: 2011-10-06 22:08:09 +0200 (Thu, 06 Oct 2011) $ By : $Author$
Author:
chatellier

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

configUI

protected SSHLauncherConfigUI configUI

currentSSHserver

protected String currentSSHserver

currentSSHUsername

protected String currentSSHUsername

currentSSHKey

protected File currentSSHKey

currentSSHUserhome

protected String currentSSHUserhome

currentSSHDatapath

protected String currentSSHDatapath

currentSSHIsisHome

protected String currentSSHIsisHome

currentSSHTempPath

protected String currentSSHTempPath

currentSSHJavaPath

protected String currentSSHJavaPath

currentSSHPbsBinPath

protected String currentSSHPbsBinPath

currentSSHPbsQsubOptions

protected String currentSSHPbsQsubOptions

currentSSHMaxThreads

protected String currentSSHMaxThreads

currentSSHControlInterval

protected String currentSSHControlInterval
Constructor Detail

SSHLauncherConfigAction

public SSHLauncherConfigAction(SSHLauncherConfigUI configUI)
Constructor with UI.

Parameters:
configUI - config ui
Method Detail

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 teste les données.


getUserHomeDirectory

protected String getUserHomeDirectory(com.jcraft.jsch.Session session)
                               throws SSHException
Get user home directory with an opened session.

Parameters:
session - opened session
Returns:
'pwd' result
Throws:
SSHException

getFolderSize

protected String getFolderSize(com.jcraft.jsch.Session session,
                               String path)
                        throws SSHException
Get user home directory with an opened session.

Parameters:
session - opened session
Returns:
'pwd' result
Throws:
SSHException

clearDatabase

public void clearDatabase()
Clear database.


clearTempDirectory

public void clearTempDirectory()
Clear temp directory.


clearFolder

protected void clearFolder(String path)
Clear specified directory.

Parameters:
path - path to clear

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

setTestMessage

protected void setTestMessage(String message,
                              boolean error)
Set message in message field with status color.

Parameters:
message - message to display
error - error status


Copyright © 1999-2012 CodeLutin. All Rights Reserved.