Class RunnableApplication

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List argList
      The arg list.
      protected java.util.ArrayList<java.lang.String> environment
      The environment.
      protected Execute exec
      The exec.
      protected java.lang.String executable
      The executable.
      private java.util.Properties sysEnvVars
      The sys env vars.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addApplicationInfo​(CasProcessorConfiguration aCasProcessorConfiguration, CpeCasProcessor aCasProcessor)
      Sets up command line used to launch Cas Processor in a separate process.
      protected java.lang.String getSysEnvVarValue​(java.lang.String aKey)
      Returns a value of a given environment variable.
      private void printSysEnvironment()
      Displays current system environment settings.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • executable

        protected java.lang.String executable
        The executable.
      • exec

        protected Execute exec
        The exec.
      • environment

        protected java.util.ArrayList<java.lang.String> environment
        The environment.
      • argList

        protected java.util.List argList
        The arg list.
      • sysEnvVars

        private java.util.Properties sysEnvVars
        The sys env vars.
    • Constructor Detail

      • RunnableApplication

        public RunnableApplication()
    • Method Detail

      • addApplicationInfo

        protected void addApplicationInfo​(CasProcessorConfiguration aCasProcessorConfiguration,
                                          CpeCasProcessor aCasProcessor)
                                   throws ResourceConfigurationException
        Sets up command line used to launch Cas Processor in a separate process. Combines environment variables setup in the CPE descriptor with a System environment variables.
        Parameters:
        aCasProcessorConfiguration - - access to Cas Processor configuration
        aCasProcessor - the a cas processor
        Throws:
        ResourceConfigurationException - wraps Exception
      • printSysEnvironment

        private void printSysEnvironment()
        Displays current system environment settings.
      • getSysEnvVarValue

        protected java.lang.String getSysEnvVarValue​(java.lang.String aKey)
        Returns a value of a given environment variable.
        Parameters:
        aKey - - name of the environment variable
        Returns:
        - value correspnding to environment variable