Class ServiceDependency
java.lang.Object
org.veupathdb.lib.container.jaxrs.health.AbstractDependency
org.veupathdb.lib.container.jaxrs.health.ExternalDependency
org.veupathdb.lib.container.jaxrs.health.ServiceDependency
- All Implemented Interfaces:
AutoCloseable,Dependency
Service Dependency
A dependency wrapper for an external HTTP service.
Implementations of this wrapper provide the specifics of how to check the health status of the external service.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.veupathdb.lib.container.jaxrs.health.Dependency
Dependency.Status, Dependency.TestResult -
Field Summary
Fields inherited from class org.veupathdb.lib.container.jaxrs.health.ExternalDependency
pingerFields inherited from class org.veupathdb.lib.container.jaxrs.health.AbstractDependency
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetPort()getUrl()protected abstract Dependency.TestResulttest()Test the resource availabilityMethods inherited from class org.veupathdb.lib.container.jaxrs.health.ExternalDependency
setPingerMethods inherited from class org.veupathdb.lib.container.jaxrs.health.AbstractDependency
getName
-
Constructor Details
-
ServiceDependency
-
-
Method Details
-
getUrl
-
getPort
public int getPort() -
test
Description copied from interface:DependencyTest the resource availability -
serviceTest
-
close
public void close()
-