fr.ifremer.isisfish.ui.config
Class SSHLauncherConfigAction

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

public class SSHLauncherConfigAction
extends java.lang.Object

Action for SSHLauncherConfig UI.

Version:
$Revision: 3027 $ Last update : $Date: 2010-04-23 18:24:09 +0200 (ven., 23 avril 2010) $ By : $Author$
Author:
chatellier

Field Summary
protected  SSHLauncherConfigUI configUI
           
protected  java.lang.String currentSSHControlInterval
           
protected  java.lang.String currentSSHDatapath
           
protected  java.lang.String currentSSHIsisHome
           
protected  java.lang.String currentSSHJavaPath
           
protected  java.io.File currentSSHKey
           
protected  java.lang.String currentSSHMaxThreads
           
protected  java.lang.String currentSSHPbsBinPath
           
protected  java.lang.String currentSSHPbsQsubOptions
           
protected  java.lang.String currentSSHserver
           
protected  java.lang.String currentSSHTempPath
           
protected  java.lang.String currentSSHUserhome
           
protected  java.lang.String currentSSHUsername
           
 
Constructor Summary
SSHLauncherConfigAction(SSHLauncherConfigUI configUI)
          Constructor with UI.
 
Method Summary
 void cancelSSHConfiguration()
          Close frame.
 void clearDatabase()
          Clear database.
protected  void clearFolder(java.lang.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  java.lang.String getFolderSize(com.jcraft.jsch.Session session, java.lang.String path)
          Get user home directory with an opened session.
protected  java.lang.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, javax.swing.JComponent component)
          Set color depending of field validity.
protected  void setTestMessage(java.lang.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 java.lang.String currentSSHserver

currentSSHUsername

protected java.lang.String currentSSHUsername

currentSSHKey

protected java.io.File currentSSHKey

currentSSHUserhome

protected java.lang.String currentSSHUserhome

currentSSHDatapath

protected java.lang.String currentSSHDatapath

currentSSHIsisHome

protected java.lang.String currentSSHIsisHome

currentSSHTempPath

protected java.lang.String currentSSHTempPath

currentSSHJavaPath

protected java.lang.String currentSSHJavaPath

currentSSHPbsBinPath

protected java.lang.String currentSSHPbsBinPath

currentSSHPbsQsubOptions

protected java.lang.String currentSSHPbsQsubOptions

currentSSHMaxThreads

protected java.lang.String currentSSHMaxThreads

currentSSHControlInterval

protected java.lang.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 java.lang.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 java.lang.String getFolderSize(com.jcraft.jsch.Session session,
                                         java.lang.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(java.lang.String path)
Clear specified directory.

Parameters:
path - path to clear

generateSSHKey

protected void generateSSHKey()
Generate new SSH key.


setColor

protected void setColor(boolean invalid,
                        javax.swing.JComponent component)
Set color depending of field validity.

Parameters:
invalid - valid field
component - component to set color

setTestMessage

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

Parameters:
message - message to display
error - error status


Copyright © 1999-2010 CodeLutin. All Rights Reserved.