Class AbstractForker

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.maven.plugin.AbstractForker
All Implemented Interfaces:
LifeCycle
Direct Known Subclasses:
JettyForker, JettyHomeForker

public abstract class AbstractForker extends AbstractLifeCycle
AbstractForker Base class for forking jetty.
  • Field Details

    • env

      protected Map<String,String> env
    • jvmArgs

      protected String jvmArgs
    • exitVm

      protected boolean exitVm
    • stopAtShutdown

      protected boolean stopAtShutdown
    • jettyXmlFiles

      protected List<File> jettyXmlFiles
    • jettyProperties

      protected Map<String,String> jettyProperties
    • stopPort

      protected int stopPort
    • stopKey

      protected String stopKey
    • jettyOutputFile

      protected File jettyOutputFile
    • waitForChild

      protected boolean waitForChild
    • maxChildStartChecks

      protected int maxChildStartChecks
    • maxChildStartCheckMs

      protected long maxChildStartCheckMs
    • tokenFile

      protected File tokenFile
    • workDir

      protected File workDir
    • systemProperties

      protected Map<String,String> systemProperties
  • Constructor Details

    • AbstractForker

      public AbstractForker()
  • Method Details

    • createCommand

      protected abstract ProcessBuilder createCommand()
    • redeployWebApp

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

      public File getWorkDir()
    • setWorkDir

      public void setWorkDir(File workDir)
    • getSystemProperties

      public Map<String,String> getSystemProperties()
      Returns:
      the systemProperties
    • setSystemProperties

      public void setSystemProperties(Map<String,String> systemProperties)
      Parameters:
      systemProperties - the systemProperties to set
    • getEnv

      public Map<String,String> getEnv()
    • setEnv

      public void setEnv(Map<String,String> env)
    • getJvmArgs

      public String getJvmArgs()
    • setJvmArgs

      public void setJvmArgs(String jvmArgs)
    • isExitVm

      public boolean isExitVm()
    • setExitVm

      public void setExitVm(boolean exitVm)
    • isStopAtShutdown

      public boolean isStopAtShutdown()
    • setStopAtShutdown

      public void setStopAtShutdown(boolean stopAtShutdown)
    • getJettyXmlFiles

      public List<File> getJettyXmlFiles()
    • setJettyXmlFiles

      public void setJettyXmlFiles(List<File> jettyXmlFiles)
    • getJettyProperties

      public Map<String,String> getJettyProperties()
    • setJettyProperties

      public void setJettyProperties(Map<String,String> jettyProperties)
    • getStopPort

      public int getStopPort()
    • setStopPort

      public void setStopPort(int stopPort)
    • getStopKey

      public String getStopKey()
    • setStopKey

      public void setStopKey(String stopKey)
    • getJettyOutputFile

      public File getJettyOutputFile()
    • setJettyOutputFile

      public void setJettyOutputFile(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 File getTokenFile()
    • setTokenFile

      public void setTokenFile(File tokenFile)
    • doStart

      public void doStart() throws 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.
      Exception - If there was a problem starting. Will cause a transition to FAILED state