Package io.quarkus.test.services.quarkus
Class LocalhostQuarkusApplicationManagedResource
- java.lang.Object
-
- io.quarkus.test.services.quarkus.QuarkusManagedResource
-
- io.quarkus.test.services.quarkus.LocalhostQuarkusApplicationManagedResource
-
- All Implemented Interfaces:
ManagedResource
- Direct Known Subclasses:
DevModeLocalhostQuarkusApplicationManagedResource,ProdLocalhostQuarkusApplicationManagedResource,RemoteDevModeLocalhostQuarkusApplicationManagedResource
public abstract class LocalhostQuarkusApplicationManagedResource extends QuarkusManagedResource
-
-
Constructor Summary
Constructors Constructor Description LocalhostQuarkusApplicationManagedResource(QuarkusApplicationManagedResourceBuilder model)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected PathgetApplicationFolder()protected LoggingHandlergetLoggingHandler()protected FilegetLogOutputFile()URILikegetURI(Protocol protocol)Get the Host of the running resource.booleanisRunning()List<String>logs()protected voidonPreStart(ProcessBuilder pb)protected abstract List<String>prepareCommand(List<String> systemArguments)voidrestart()Restart of the managed resource.voidstart()Start the resource.voidstop()Stop the resource.-
Methods inherited from class io.quarkus.test.services.quarkus.QuarkusManagedResource
afterStart, getContext, getDisplayName, getLaunchMode, isFailed, isNativeTest, needsBuildArtifact, onPostBuild, onPreBuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.test.bootstrap.ManagedResource
createURI, validate
-
-
-
-
Constructor Detail
-
LocalhostQuarkusApplicationManagedResource
public LocalhostQuarkusApplicationManagedResource(QuarkusApplicationManagedResourceBuilder model)
-
-
Method Detail
-
start
public void start()
Description copied from interface:ManagedResourceStart the resource. If the resource is already started, it will do nothing.
-
stop
public void stop()
Description copied from interface:ManagedResourceStop the resource.
-
getURI
public URILike getURI(Protocol protocol)
Description copied from interface:ManagedResourceGet the Host of the running resource.
-
restart
public void restart()
Description copied from interface:ManagedResourceRestart of the managed resource.
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceManagedResource- Overrides:
isRunningin classQuarkusManagedResource- Returns:
- if the resource is running.
-
getLoggingHandler
protected LoggingHandler getLoggingHandler()
- Specified by:
getLoggingHandlerin classQuarkusManagedResource
-
getLogOutputFile
protected File getLogOutputFile()
-
getApplicationFolder
protected Path getApplicationFolder()
-
onPreStart
protected void onPreStart(ProcessBuilder pb)
-
-