Package io.quarkus.test.bootstrap
Interface ManagedResource
-
- All Known Implementing Classes:
DevModeLocalhostQuarkusApplicationManagedResource,GitRepositoryLocalhostQuarkusApplicationManagedResource,LocalhostQuarkusApplicationManagedResource,ProdLocalhostQuarkusApplicationManagedResource,QuarkusManagedResource,RemoteDevModeLocalhostQuarkusApplicationManagedResource
public interface ManagedResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default URILikecreateURI(String scheme, String host, int port)StringgetDisplayName()URILikegetURI(Protocol protocol)Get the Host 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.default voidvalidate()
-
-
-
Method Detail
-
getDisplayName
String getDisplayName()
- Returns:
- name of the running resource.
-
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.
-
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.
-
validate
default void validate()
-
-