|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.util.ApplicationConfig
fr.ifremer.isisfish.IsisConfig
public class IsisConfig
Isis fish configuration.
| Nested Class Summary | |
|---|---|
static class |
IsisConfig.Action
|
static class |
IsisConfig.Option
Options. |
| Nested classes/interfaces inherited from class org.nuiton.util.ApplicationConfig |
|---|
org.nuiton.util.ApplicationConfig.ActionDef, org.nuiton.util.ApplicationConfig.CacheItem<T>, org.nuiton.util.ApplicationConfig.OptionDef, org.nuiton.util.ApplicationConfig.OptionList |
| Field Summary | |
|---|---|
protected static org.nuiton.util.Version |
apiVersion
|
protected File |
backupSessionDirectory
|
static String |
CONFIG_FILENAME
|
static String |
COPYRIGHT_TEXT
|
protected static org.nuiton.util.Version |
databaseVersion
|
protected static org.nuiton.util.Version |
majorVersion
|
static String |
SEP
separateur de liste |
protected long |
startingTime
Mémorise une unité de temps en millisecondes. |
static int |
STEP_AFTER_INIT
Config step after init. |
static int |
STEP_AFTER_INIT_VCS
Config step after init vcs. |
static int |
STEP_AFTER_UI
Config step after ui. |
static int |
STEP_BEFORE_EXIT
Config step before exit. |
protected static org.nuiton.util.Version |
version
La version du logiciel constitue de l.d.a.r l: le numero de version du logiciel d: le numero de version du schema de la base de donnees a: le numero de version de l'api des scripts r: le numero de version de de l'interface graphique ou autre modif mineur |
| Fields inherited from class org.nuiton.util.ApplicationConfig |
|---|
actions, ADJUSTING_PROPERTY, aliases, APP_NAME, cacheAction, cacheOption, classpath, CONFIG_ENCODING, CONFIG_FILE_NAME, CONFIG_PATH, context, curfile, defaults, env, etcfile, homefile, inParseOptionPhase, jvm, line, LIST_SEPARATOR, options, osName, pcs, unparsed, useOnlyAliases, userPath |
| Constructor Summary | |
|---|---|
IsisConfig()
|
|
| Method Summary | |
|---|---|
static org.nuiton.util.Version |
getApiVersion()
La version de l'api de programmation ex: 3.2.0 |
File |
getBackupDirectory()
|
File |
getBackupSessionDirectory()
|
File |
getCommunityDatabaseDirectory()
Retourne le repertoire racine de toutes les donnees communauté (commit utilisateur). |
File |
getCompileDirectory()
Retourne le repertoire ou sont stockes les scripts compiles. |
File |
getContextDatabaseDirectory()
Get database directory to use for script. |
File |
getDatabaseDirectory()
Retourne le repertoire racine de toutes les donnees (script, simulation region, ...) |
String |
getDatabaseLockMode()
Retourne le lock a utiliser pour la base h2. |
static org.nuiton.util.Version |
getDatabaseVersion()
La version de la base ex: 3.2 |
String |
getDefaultExportNames()
|
List<String> |
getDefaultExportNamesAsList()
|
String |
getDefaultMapFilename()
|
String |
getDefaultResultNames()
|
List<String> |
getDefaultResultNamesAsList()
|
String |
getDefaultTagValue()
|
Map<String,String> |
getDefaultTagValueAsMap()
|
String |
getElapsedTimeAsString()
Retourne le temps écoulé depuis de debut de l'application (en secondes). |
String |
getEncoding()
Retourne l'encoding a utiliser pour les fichiers textes. |
File |
getJavadocDirectory()
Get javadoc directory. |
String |
getJavadocURL()
|
Locale |
getLocale()
Retourne l'objet Locale a utilise pour la langue. |
File |
getMonitoringDirectory()
Retourne le repertoire ou sont stockes les informations relatives aux simulations en cours. |
ClassLoader |
getScriptClassLoader()
Retourne un class loader contenant le repertoire de compilation Il permet alors de charger des classes qui viennent d'etre compilees dans isis If current thread is in simulation then return specific simulation compilation directory, else default compilation directory |
String |
getSimulatorClassfile()
|
int |
getSimulatorSshControlCheckInterval()
Retourne l'interval de temps a utiliser pour recuperer le fichier de control. |
String |
getSimulatorSshDataPath()
Retourne le chemin relatif ou abs du repertoire root des données d'isis. |
String |
getSimulatorSshIsisHome()
Retourne le chemin distant ou est installé isis. |
String |
getSimulatorSshJavaPath()
Java path directory. |
int |
getSimulatorSshMaxThreads()
Retourne le nombre de thread simultane a utiliser par le pool de thread du launcher SSH. |
String |
getSimulatorSshPbsBinPath()
PBS bin path directory. |
String |
getSimulatorSshPbsQsubOptions()
PBS qsub options (command line). |
String |
getSimulatorSshServer()
Retourne l'url du serveur de simulation accessible via SSH. |
String |
getSimulatorSshTmpPath()
Retourne l'emplacement du dossier temporaire distant. |
String |
getSimulatorSshUserHome()
Get remote user home directory. |
String |
getSimulatorSshUsername()
Retourne le login pour acceder au serveur de simulation accessible via SSH. |
String |
getSmtpServer()
Retourne le serveur SMTP a utiliser pour l'envoie de mail. |
File |
getSSHPrivateKeyFilePath()
Retourne la clé privée de l'utilisteur courant. |
long |
getStartingTime()
Retourne le temps de départ de l'application en millisecondes. |
String |
getUserMail()
Retourne l'email de l'utilisateur. |
String |
getUserName()
Retourne le nom usuel de l'utilisateur. |
static String |
getVersion()
Le nombre global ex: 3.2.0.0 |
static org.nuiton.util.Version |
getVersionNumber()
|
boolean |
isLaunchUI()
Get launch.ui option value. |
boolean |
isPerformCron()
Get perform cron option value. |
boolean |
isPerformMigration()
Get perform migration option value. |
boolean |
isPerformVcsUpdate()
Get perform vcs update option value. |
boolean |
isScriptAutoconfig()
Get script auto configuration option value. |
boolean |
isSimulationShowOnlyError()
|
void |
setDefaultExportNames(List<String> exportNames)
|
void |
setDefaultResultNames(List<String> resultNames)
|
void |
setDefaultTagValues(Map<String,String> tagValues)
|
void |
setLocale(String locale)
Change application locale. |
void |
setSimulatorClassfile(String value)
|
void |
setSimulatorLauncher(String value)
|
void |
setSimulatorSshControlCheckInterval(int interval)
Change control check interval. |
void |
setSimulatorSshDataPath(String datapath)
Change remote datapath. |
void |
setSimulatorSshIsisHome(String isishome)
Change isis home on ssh server. |
void |
setSimulatorSshJavaPath(String path)
Change Java bin path. |
void |
setSimulatorSshMaxThreads(int max)
Set number of ssh simulation thread to use. |
void |
setSimulatorSshPbsBinPath(String path)
Change PBS bin path. |
void |
setSimulatorSshPbsQsubOptions(String options)
Change PBS qsub options (command line). |
void |
setSimulatorSshServer(String sshServer)
Change ssh server url value. |
void |
setSimulatorSshTmpPath(String sshtemppath)
Change ssh temp path. |
void |
setSimulatorSshUserHome(String userhome)
Change isis remote home directory. |
void |
setSimulatorSshUsername(String username)
Change ssh username. |
void |
setSSHPrivateKeyFilePath(File sshFile)
Set ssh private key file path. |
| Methods inherited from class org.nuiton.util.ApplicationConfig |
|---|
addAction, addActionAlias, addAlias, addPropertyChangeListener, addPropertyChangeListener, convertOption, createAction, doAction, doAllAction, firePropertyChange, getActionStep, getConfigFileName, getConfigFileNameOption, getConfigPath, getEncodingOption, getFlatOptions, getFlatOptions, getMethods, getObject, getObject, getOption, getOption, getOption, getOptionAsBoolean, getOptionAsClass, getOptionAsDate, getOptionAsDouble, getOptionAsFile, getOptionAsFloat, getOptionAsInt, getOptionAsList, getOptionAsLocale, getOptionAsLong, getOptionAsObject, getOptionAsObject, getOptionAsProperties, getOptionAsSingleton, getOptionAsSingleton, getOptionAsTime, getOptionAsTimestamp, getOptionAsURL, getOptionAsVersion, getOptions, getOptionStartsWith, getParams, getPrintableConfig, getPropertyChangeListeners, getPropertyChangeListeners, getSystemConfigFile, getSystemConfigurationPath, getUnparsed, getUserConfigDirectory, getUserConfigFile, getUserHome, getUsername, hasListeners, hasOption, hasOption, installSaveUserAction, isAdjusting, isUseOnlyAliases, loadActions, loadDefaultOptions, loadResource, migrateUserConfigurationFile, parse, printConfig, printConfig, putObject, putObject, removePropertyChangeListener, removePropertyChangeListener, replaceRecursiveOptions, save, saveForSystem, saveForUser, saveResource, setAdjusting, setAppName, setConfigFileName, setDefaultOption, setEncoding, setOption, setOptions, setUseOnlyAliases |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STEP_AFTER_INIT
ApplicationConfig.Action.Step,
Constant Field Valuespublic static final int STEP_AFTER_INIT_VCS
ApplicationConfig.Action.Step,
Constant Field Valuespublic static final int STEP_AFTER_UI
ApplicationConfig.Action.Step,
Constant Field Valuespublic static final int STEP_BEFORE_EXIT
ApplicationConfig.Action.Step,
Constant Field Valuesprotected static final org.nuiton.util.Version version
lors de l'increment de l, d, a et r sont remis a 0 lors de l'increment de d, a et r sont remis a 0 lors de l'increment de a, r est remis a 0
Un changement d'UI ne modifie jamais le numero de version de database Un changement de schema de base pour lequel on ne peut pas faire de migration de donnees demande automatiquement un changement de version d'application.
protected static final org.nuiton.util.Version majorVersion
protected static final org.nuiton.util.Version databaseVersion
protected static final org.nuiton.util.Version apiVersion
public static final String COPYRIGHT_TEXT
public static final String CONFIG_FILENAME
public static final String SEP
protected transient File backupSessionDirectory
protected long startingTime
System.nanoTime(), mais cette unité de temps
n'est pas lié a une date.
Par exemple, ca permet juste de mesuré avec une precision de 10-9 le temps
ecoulé, par l'heure qu'il est à cette unité de temps.
| Constructor Detail |
|---|
public IsisConfig()
| Method Detail |
|---|
public static org.nuiton.util.Version getVersionNumber()
public static String getVersion()
public static org.nuiton.util.Version getDatabaseVersion()
public static org.nuiton.util.Version getApiVersion()
public File getDatabaseDirectory()
public File getCommunityDatabaseDirectory()
public File getContextDatabaseDirectory()
getDatabaseDirectory() value, but to
SimulationContext.getScriptDirectory() during a simulation.
public String getDatabaseLockMode()
public File getCompileDirectory()
public File getMonitoringDirectory()
public File getJavadocDirectory()
public Locale getLocale()
Locale a utilise pour la langue.
Localepublic void setLocale(String locale)
locale - new localepublic String getEncoding()
getEncoding in class org.nuiton.util.ApplicationConfigpublic String getSmtpServer()
public String getUserName()
public String getUserMail()
public String getSimulatorClassfile()
public void setSimulatorClassfile(String value)
public String getSimulatorSshServer()
public void setSimulatorSshServer(String sshServer)
sshServer - public String getSimulatorSshUsername()
public void setSimulatorSshUsername(String username)
username - usernamepublic String getSimulatorSshDataPath()
public void setSimulatorSshDataPath(String datapath)
datapath - datapathpublic String getSimulatorSshUserHome()
public void setSimulatorSshUserHome(String userhome)
userhome - new remote homepublic String getSimulatorSshIsisHome()
public void setSimulatorSshIsisHome(String isishome)
isishome - isis homepublic String getSimulatorSshTmpPath()
public void setSimulatorSshTmpPath(String sshtemppath)
sshtemppath - temp pathpublic String getSimulatorSshPbsBinPath()
public void setSimulatorSshPbsBinPath(String path)
path - new pathpublic String getSimulatorSshPbsQsubOptions()
public void setSimulatorSshPbsQsubOptions(String options)
options - new optionspublic String getSimulatorSshJavaPath()
public void setSimulatorSshJavaPath(String path)
path - new pathpublic int getSimulatorSshControlCheckInterval()
public void setSimulatorSshControlCheckInterval(int interval)
interval - intervalpublic int getSimulatorSshMaxThreads()
public void setSimulatorSshMaxThreads(int max)
max - maxpublic File getSSHPrivateKeyFilePath()
public void setSSHPrivateKeyFilePath(File sshFile)
sshFile - new valuepublic boolean isLaunchUI()
public boolean isPerformMigration()
public boolean isPerformVcsUpdate()
public boolean isPerformCron()
public boolean isScriptAutoconfig()
public void setSimulatorLauncher(String value)
public boolean isSimulationShowOnlyError()
public String getDefaultExportNames()
public void setDefaultExportNames(List<String> exportNames)
public List<String> getDefaultExportNamesAsList()
IsisConfig.Option.DEFAULT_EXPORT_NAMES
ou null si ils n'ont jamais ete sauves par l'utilisateur.
by user.IsisConfig.Option.DEFAULT_EXPORT_NAMESpublic String getDefaultMapFilename()
public String getDefaultResultNames()
public void setDefaultResultNames(List<String> resultNames)
public List<String> getDefaultResultNamesAsList()
IsisConfig.Option.DEFAULT_RESULT_NAMESIsisConfig.Option.DEFAULT_RESULT_NAMESpublic String getDefaultTagValue()
public void setDefaultTagValues(Map<String,String> tagValues)
public Map<String,String> getDefaultTagValueAsMap()
IsisConfig.Option.DEFAULT_TAG_VALUEIsisConfig.Option.DEFAULT_TAG_VALUEpublic String getJavadocURL()
public File getBackupDirectory()
public long getStartingTime()
public String getElapsedTimeAsString()
public File getBackupSessionDirectory()
public ClassLoader getScriptClassLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||