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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
includeAsSysProps
(Map<String, String> systemProps) void
init
(ArtifactLauncher.InitContext initContext) boolean
runToCompletion
(String[] args) void
start()
static RunCommandLauncher
tryLauncher
(io.quarkus.bootstrap.app.QuarkusBootstrap bootstrap, String target, Duration waitTime)
-
Field Details
-
quarkusProcess
Process quarkusProcess
-
-
Constructor Details
-
RunCommandLauncher
public RunCommandLauncher()
-
-
Method Details
-
tryLauncher
public static RunCommandLauncher tryLauncher(io.quarkus.bootstrap.app.QuarkusBootstrap bootstrap, String target, Duration waitTime) -
init
- Specified by:
init
in interfaceArtifactLauncher<ArtifactLauncher.InitContext>
-
runToCompletion
- Specified by:
runToCompletion
in interfaceArtifactLauncher<ArtifactLauncher.InitContext>
-
start
- Specified by:
start
in interfaceArtifactLauncher<ArtifactLauncher.InitContext>
- Throws:
IOException
-
listensOnSsl
public boolean listensOnSsl()- Specified by:
listensOnSsl
in interfaceArtifactLauncher<ArtifactLauncher.InitContext>
-
includeAsSysProps
- Specified by:
includeAsSysProps
in interfaceArtifactLauncher<ArtifactLauncher.InitContext>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-