Package io.quarkus.test.services.quarkus
Class QuarkusManagedResource
- java.lang.Object
-
- io.quarkus.test.services.quarkus.QuarkusManagedResource
-
- All Implemented Interfaces:
ManagedResource
- Direct Known Subclasses:
LocalhostQuarkusApplicationManagedResource
public abstract class QuarkusManagedResource extends Object implements ManagedResource
This class describes a Quarkus application, children classes define, where and how it is built and run.
-
-
Constructor Summary
Constructors Constructor Description QuarkusManagedResource(ServiceContext serviceContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidafterStart()protected ServiceContextgetContext()StringgetDisplayName()protected LaunchModegetLaunchMode()protected abstract LoggingHandlergetLoggingHandler()booleanisFailed()booleanisNativeTest()booleanisRunning()protected booleanneedsBuildArtifact()voidonPostBuild()voidonPreBuild()
-
-
-
Constructor Detail
-
QuarkusManagedResource
public QuarkusManagedResource(ServiceContext serviceContext)
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceManagedResource- Returns:
- name of the running resource.
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceManagedResource- Returns:
- if the resource is running.
-
isFailed
public boolean isFailed()
- Specified by:
isFailedin interfaceManagedResource- Returns:
- if the resource has failed.
-
isNativeTest
public boolean isNativeTest()
-
onPreBuild
public void onPreBuild()
-
onPostBuild
public void onPostBuild()
-
afterStart
public void afterStart()
- Specified by:
afterStartin interfaceManagedResource
-
getContext
protected ServiceContext getContext()
-
getLoggingHandler
protected abstract LoggingHandler getLoggingHandler()
-
getLaunchMode
protected LaunchMode getLaunchMode()
-
needsBuildArtifact
protected boolean needsBuildArtifact()
-
-