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.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ProcessBuilder
void
doStart()
Method to override to start the lifecyclegetEnv()
long
int
int
boolean
isExitVm()
boolean
boolean
protected abstract void
void
void
setExitVm
(boolean exitVm) void
setJettyOutputFile
(File jettyOutputFile) void
setJettyProperties
(Map<String, String> jettyProperties) void
setJettyXmlFiles
(List<File> jettyXmlFiles) void
setJvmArgs
(String jvmArgs) void
setMaxChildStartCheckMs
(long maxChildStartCheckMs) void
setMaxChildStartChecks
(int maxChildStartChecks) void
setStopAtShutdown
(boolean stopAtShutdown) void
setStopKey
(String stopKey) void
setStopPort
(int stopPort) void
setSystemProperties
(Map<String, String> systemProperties) void
setTokenFile
(File tokenFile) void
setWaitForChild
(boolean waitForChild) void
setWorkDir
(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:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in 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
-