Class Main


  • public class Main
    extends Object
    This class define the main class.
    Since:
    3.0
    Author:
    Laurent Jourdren
    • Method Detail

      • getInstance

        public static Main getInstance()
        Get the instance of the Main class.
        Returns:
        a Main object
      • getConfiguration

        public Configuration getConfiguration()
        Get the the startup configuration.
        Returns:
        the startup configuration
      • getLogger

        public fr.ens.biologie.genomique.kenetre.log.GenericLogger getLogger()
        Get the logger.
        Returns:
        the logger
      • getJavaExecutablePath

        public String getJavaExecutablePath()
        Get java executable path.
        Returns:
        the path to the java executable
      • getJVMArgs

        public List<String> getJVMArgs()
        Get JVM arguments.
        Returns:
        the JVM arguments as an array
      • getApplicationClassPath

        public String getApplicationClassPath()
        Get the application classpath. The result of the method is based on the content of the dedicated JVM argument.
        Returns:
        the JVM class as a String
      • getApplicationScriptPath

        public String getApplicationScriptPath()
        Get the application script path.
        Returns:
        the application script path
      • getApplicationMemory

        public int getApplicationMemory()
        Get the application memory requirement.
        Returns:
        the application memory requirement
      • getApplicationDirectory

        public Path getApplicationDirectory()
        Get the application directory.
        Returns:
        the application directory
      • getArgs

        public List<String> getArgs()
        Get command line arguments.
        Returns:
        Returns the arguments
      • getAction

        public Action getAction()
        Get the action.
        Returns:
        Returns the action
      • getActionArgs

        public List<String> getActionArgs()
        Get the action arguments.
        Returns:
        Returns the actionArgs
      • getErrorExitCode

        public int getErrorExitCode()
        Get the exit code to use when an error occurs.
        Returns:
        Returns the exit code to use when an error occurs
      • help

        protected void help​(org.apache.commons.cli.Options options)
        Show command line help.
        Parameters:
        options - Options of the software
      • makeOptions

        protected org.apache.commons.cli.Options makeOptions()
        Create options for command line
        Returns:
        an Options object
      • main

        public static void main​(String[] args)
        Main method of the program.
        Parameters:
        args - command line arguments