|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.testing.tools.serversetup.StartRunnableJarPhase
public class StartRunnableJarPhase
SetupPhase that uses a JarExecutor to start a runnable jar, and stop it at system shutdown if our SetupServer wants that.
| Field Summary | |
|---|---|
static String |
TEST_SERVER_HOSTNAME
|
| Constructor Summary | |
|---|---|
StartRunnableJarPhase(ServerSetup owner,
String id,
String description,
Properties config)
|
|
| Method Summary | |
|---|---|
String |
getId()
Get the phase ID string, a list of those is used by ServerSetup to decide
which phases to run |
SetupPhase |
getKillPhase(String id)
Return a SetupPhase that kills the process started by this phase |
boolean |
isStartupPhase()
Is this a startup or shutdown phase? |
void |
run(ServerSetup owner)
Run this phase in the context of supplied ServerSetup |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TEST_SERVER_HOSTNAME
| Constructor Detail |
|---|
public StartRunnableJarPhase(ServerSetup owner,
String id,
String description,
Properties config)
throws JarExecutor.ExecutorException
JarExecutor.ExecutorException| Method Detail |
|---|
public String toString()
toString in class Object
public void run(ServerSetup owner)
throws Exception
SetupPhase
run in interface SetupPhaseExceptionpublic boolean isStartupPhase()
SetupPhase
isStartupPhase in interface SetupPhasepublic String getId()
SetupPhaseServerSetup to decide
which phases to run
getId in interface SetupPhasepublic SetupPhase getKillPhase(String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||