Class StartRunnableJarPhase
- java.lang.Object
-
- org.apache.sling.testing.serversetup.StartRunnableJarPhase
-
- All Implemented Interfaces:
SetupPhase
public class StartRunnableJarPhase extends Object implements SetupPhase
SetupPhase that uses a JarExecutor to start a runnable jar, and stop it at system shutdown if our SetupServer wants that.
-
-
Field Summary
Fields Modifier and Type Field Description static StringTEST_SERVER_HOSTNAME
-
Constructor Summary
Constructors Constructor Description StartRunnableJarPhase(ServerSetup owner, String id, String description, Properties config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Get the phase ID string, a list of those is used byServerSetupto decide which phases to runSetupPhasegetKillPhase(String id)Return a SetupPhase that kills the process started by this phasebooleanisStartupPhase()Is this a startup or shutdown phase?voidrun(ServerSetup owner)Run this phase in the context of supplied ServerSetupStringtoString()
-
-
-
Field Detail
-
TEST_SERVER_HOSTNAME
public static final String TEST_SERVER_HOSTNAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StartRunnableJarPhase
public StartRunnableJarPhase(ServerSetup owner, String id, String description, Properties config) throws JarExecutor.ExecutorException
- Throws:
JarExecutor.ExecutorException
-
-
Method Detail
-
run
public void run(ServerSetup owner) throws Exception
Description copied from interface:SetupPhaseRun this phase in the context of supplied ServerSetup- Specified by:
runin interfaceSetupPhase- Throws:
Exception
-
isStartupPhase
public boolean isStartupPhase()
Description copied from interface:SetupPhaseIs this a startup or shutdown phase?- Specified by:
isStartupPhasein interfaceSetupPhase
-
getId
public String getId()
Description copied from interface:SetupPhaseGet the phase ID string, a list of those is used byServerSetupto decide which phases to run- Specified by:
getIdin interfaceSetupPhase
-
getKillPhase
public SetupPhase getKillPhase(String id)
Return a SetupPhase that kills the process started by this phase
-
-