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
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 StringgetHost(Protocol protocol)Get the Host of the running resource.protected LoggingHandlergetLoggingHandler()intgetPort(Protocol protocol)Get the Port of the running resource.booleanisRunning()List<String>logs()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
isFailed, needsBuildArtifact, 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.
-
getHost
public String getHost(Protocol protocol)
Description copied from interface:ManagedResourceGet the Host of the running resource.
-
getPort
public int getPort(Protocol protocol)
Description copied from interface:ManagedResourceGet the Port 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
-
-