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 String
TEST_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 String
getId()
Get the phase ID string, a list of those is used byServerSetup
to decide which phases to runSetupPhase
getKillPhase(String id)
Return a SetupPhase that kills the process started by this phaseboolean
isStartupPhase()
Is this a startup or shutdown phase?void
run(ServerSetup owner)
Run this phase in the context of supplied ServerSetupString
toString()
-
-
-
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:SetupPhase
Run this phase in the context of supplied ServerSetup- Specified by:
run
in interfaceSetupPhase
- Throws:
Exception
-
isStartupPhase
public boolean isStartupPhase()
Description copied from interface:SetupPhase
Is this a startup or shutdown phase?- Specified by:
isStartupPhase
in interfaceSetupPhase
-
getId
public String getId()
Description copied from interface:SetupPhase
Get the phase ID string, a list of those is used byServerSetup
to decide which phases to run- Specified by:
getId
in interfaceSetupPhase
-
getKillPhase
public SetupPhase getKillPhase(String id)
Return a SetupPhase that kills the process started by this phase
-
-