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
pinger
Fields inherited from class org.veupathdb.lib.container.jaxrs.health.AbstractDependency
name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getPort()
getUrl()
protected abstract Dependency.TestResult
test()
Test the resource availabilityMethods inherited from class org.veupathdb.lib.container.jaxrs.health.ExternalDependency
setPinger
Methods 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:Dependency
Test the resource availability -
serviceTest
-
close
public void close()
-