Package io.quarkus.test.bootstrap
Interface ManagedResource
-
- All Known Implementing Classes:
DevModeLocalhostQuarkusApplicationManagedResource,LocalhostQuarkusApplicationManagedResource,ProdLocalhostQuarkusApplicationManagedResource,QuarkusManagedResource
public interface ManagedResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetHost(Protocol protocol)Get the Host of the running resource.intgetPort(Protocol protocol)Get the Port of the running resource.default booleanisFailed()booleanisRunning()List<String>logs()default voidrestart()Restart of the managed resource.voidstart()Start the resource.voidstop()Stop the resource.
-
-
-
Method Detail
-
start
void start()
Start the resource. If the resource is already started, it will do nothing.- Throws:
RuntimeException- when application errors at startup.
-
stop
void stop()
Stop the resource.
-
getPort
int getPort(Protocol protocol)
Get the Port of the running resource.
-
isRunning
boolean isRunning()
- Returns:
- if the resource is running.
-
isFailed
default boolean isFailed()
- Returns:
- if the resource has failed.
-
restart
default void restart()
Restart of the managed resource.
-
-