Package org.eclipse.jetty.maven.plugin
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
AbstractForker
Base class for forking jetty.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ProcessBuildervoiddoStart()Method to override to start the lifecyclegetEnv()longintintbooleanisExitVm()booleanbooleanprotected abstract voidvoidvoidsetExitVm(boolean exitVm) voidsetJettyOutputFile(File jettyOutputFile) voidsetJettyProperties(Map<String, String> jettyProperties) voidsetJettyXmlFiles(List<File> jettyXmlFiles) voidsetJvmArgs(String jvmArgs) voidsetMaxChildStartCheckMs(long maxChildStartCheckMs) voidsetMaxChildStartChecks(int maxChildStartChecks) voidsetStopAtShutdown(boolean stopAtShutdown) voidsetStopKey(String stopKey) voidsetStopPort(int stopPort) voidsetSystemProperties(Map<String, String> systemProperties) voidsetTokenFile(File tokenFile) voidsetWaitForChild(boolean waitForChild) voidsetWorkDir(File workDir) Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Field Details
-
env
-
jvmArgs
-
exitVm
protected boolean exitVm -
stopAtShutdown
protected boolean stopAtShutdown -
jettyXmlFiles
-
jettyProperties
-
stopPort
protected int stopPort -
stopKey
-
jettyOutputFile
-
waitForChild
protected boolean waitForChild -
maxChildStartChecks
protected int maxChildStartChecks -
maxChildStartCheckMs
protected long maxChildStartCheckMs -
tokenFile
-
workDir
-
systemProperties
-
-
Constructor Details
-
AbstractForker
public AbstractForker()
-
-
Method Details
-
createCommand
-
redeployWebApp
- Throws:
Exception
-
getWorkDir
-
setWorkDir
-
getSystemProperties
- Returns:
- the systemProperties
-
setSystemProperties
- Parameters:
systemProperties- the systemProperties to set
-
getEnv
-
setEnv
-
getJvmArgs
-
setJvmArgs
-
isExitVm
public boolean isExitVm() -
setExitVm
public void setExitVm(boolean exitVm) -
isStopAtShutdown
public boolean isStopAtShutdown() -
setStopAtShutdown
public void setStopAtShutdown(boolean stopAtShutdown) -
getJettyXmlFiles
-
setJettyXmlFiles
-
getJettyProperties
-
setJettyProperties
-
getStopPort
public int getStopPort() -
setStopPort
public void setStopPort(int stopPort) -
getStopKey
-
setStopKey
-
getJettyOutputFile
-
setJettyOutputFile
-
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
-
setTokenFile
-
doStart
Description copied from class:AbstractLifeCycleMethod to override to start the lifecycle- Overrides:
doStartin classAbstractLifeCycle- 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
-