Package io.quarkus.test.common
Class RunCommandLauncher
- java.lang.Object
-
- io.quarkus.test.common.RunCommandLauncher
-
- All Implemented Interfaces:
ArtifactLauncher<ArtifactLauncher.InitContext>,Closeable,AutoCloseable
public class RunCommandLauncher extends Object implements ArtifactLauncher<ArtifactLauncher.InitContext>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.test.common.ArtifactLauncher
ArtifactLauncher.InitContext, ArtifactLauncher.LaunchResult
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ProcessquarkusProcess
-
Constructor Summary
Constructors Constructor Description RunCommandLauncher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidincludeAsSysProps(Map<String,String> systemProps)voidinit(ArtifactLauncher.InitContext initContext)booleanlistensOnSsl()ArtifactLauncher.LaunchResultrunToCompletion(String[] args)voidstart()static RunCommandLaunchertryLauncher(io.quarkus.bootstrap.app.QuarkusBootstrap bootstrap, String target, Duration waitTime)
-
-
-
Field Detail
-
quarkusProcess
Process quarkusProcess
-
-
Method Detail
-
tryLauncher
public static RunCommandLauncher tryLauncher(io.quarkus.bootstrap.app.QuarkusBootstrap bootstrap, String target, Duration waitTime)
-
init
public void init(ArtifactLauncher.InitContext initContext)
- Specified by:
initin interfaceArtifactLauncher<ArtifactLauncher.InitContext>
-
runToCompletion
public ArtifactLauncher.LaunchResult runToCompletion(String[] args)
- Specified by:
runToCompletionin interfaceArtifactLauncher<ArtifactLauncher.InitContext>
-
start
public void start() throws IOException- Specified by:
startin interfaceArtifactLauncher<ArtifactLauncher.InitContext>- Throws:
IOException
-
listensOnSsl
public boolean listensOnSsl()
- Specified by:
listensOnSslin interfaceArtifactLauncher<ArtifactLauncher.InitContext>
-
includeAsSysProps
public void includeAsSysProps(Map<String,String> systemProps)
- Specified by:
includeAsSysPropsin interfaceArtifactLauncher<ArtifactLauncher.InitContext>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-