Class AbstractForker

    • Field Detail

      • env

        protected java.util.Map<java.lang.String,​java.lang.String> env
      • jvmArgs

        protected java.lang.String jvmArgs
      • exitVm

        protected boolean exitVm
      • stopAtShutdown

        protected boolean stopAtShutdown
      • jettyXmlFiles

        protected java.util.List<java.io.File> jettyXmlFiles
      • jettyProperties

        protected java.util.Map<java.lang.String,​java.lang.String> jettyProperties
      • stopPort

        protected int stopPort
      • stopKey

        protected java.lang.String stopKey
      • jettyOutputFile

        protected java.io.File jettyOutputFile
      • waitForChild

        protected boolean waitForChild
      • maxChildStartChecks

        protected int maxChildStartChecks
      • maxChildStartCheckMs

        protected long maxChildStartCheckMs
      • tokenFile

        protected java.io.File tokenFile
      • workDir

        protected java.io.File workDir
      • systemProperties

        protected java.util.Map<java.lang.String,​java.lang.String> systemProperties
    • Constructor Detail

      • AbstractForker

        public AbstractForker()
    • Method Detail

      • createCommand

        protected abstract java.lang.ProcessBuilder createCommand()
      • redeployWebApp

        protected abstract void redeployWebApp()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getWorkDir

        public java.io.File getWorkDir()
      • setWorkDir

        public void setWorkDir​(java.io.File workDir)
      • getSystemProperties

        public java.util.Map<java.lang.String,​java.lang.String> getSystemProperties()
        Returns:
        the systemProperties
      • setSystemProperties

        public void setSystemProperties​(java.util.Map<java.lang.String,​java.lang.String> systemProperties)
        Parameters:
        systemProperties - the systemProperties to set
      • getEnv

        public java.util.Map<java.lang.String,​java.lang.String> getEnv()
      • setEnv

        public void setEnv​(java.util.Map<java.lang.String,​java.lang.String> env)
      • getJvmArgs

        public java.lang.String getJvmArgs()
      • setJvmArgs

        public void setJvmArgs​(java.lang.String jvmArgs)
      • isExitVm

        public boolean isExitVm()
      • setExitVm

        public void setExitVm​(boolean exitVm)
      • isStopAtShutdown

        public boolean isStopAtShutdown()
      • setStopAtShutdown

        public void setStopAtShutdown​(boolean stopAtShutdown)
      • getJettyXmlFiles

        public java.util.List<java.io.File> getJettyXmlFiles()
      • setJettyXmlFiles

        public void setJettyXmlFiles​(java.util.List<java.io.File> jettyXmlFiles)
      • getJettyProperties

        public java.util.Map<java.lang.String,​java.lang.String> getJettyProperties()
      • setJettyProperties

        public void setJettyProperties​(java.util.Map<java.lang.String,​java.lang.String> jettyProperties)
      • getStopPort

        public int getStopPort()
      • setStopPort

        public void setStopPort​(int stopPort)
      • getStopKey

        public java.lang.String getStopKey()
      • setStopKey

        public void setStopKey​(java.lang.String stopKey)
      • getJettyOutputFile

        public java.io.File getJettyOutputFile()
      • setJettyOutputFile

        public void setJettyOutputFile​(java.io.File jettyOutputFile)
      • isWaitForChild

        public boolean isWaitForChild()
      • setWaitForChild

        public void setWaitForChild​(boolean waitForChild)
      • getMaxChildtartChecks

        public int getMaxChildtartChecks()
      • setMaxChildStartChecks

        public void setMaxChildStartChecks​(int maxChildStartChecks)
      • getMaxChildStartCheckMs

        public long getMaxChildStartCheckMs()
      • setMaxChildStartCheckMs

        public void setMaxChildStartCheckMs​(long maxChildStartCheckMs)
      • getTokenFile

        public java.io.File getTokenFile()
      • setTokenFile

        public void setTokenFile​(java.io.File tokenFile)
      • doStart

        public void doStart()
                     throws java.lang.Exception
        Description copied from class: AbstractLifeCycle
        Method to override to start the lifecycle
        Overrides:
        doStart in class AbstractLifeCycle
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state