Class HealthTrackingRestClient
- java.lang.Object
-
- org.opennms.distributed.core.impl.HealthTrackingRestClient
-
- All Implemented Interfaces:
RestClient
public class HealthTrackingRestClient extends java.lang.Object implements RestClient
A rest client that informs aHealthCheckResponseCache
about the success / failure of service calls.
-
-
Constructor Summary
Constructors Constructor Description HealthTrackingRestClient(RestClient delegate, HealthCheckResponseCache healthCheckResponseCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSnmpV3Users()
Used to fetch snmpV3users from REST endpoint.java.lang.String
getVersion()
Retrieves the OpenNMS version.void
ping()
Used to verify connectivity with the REST endpoint.
-
-
-
Constructor Detail
-
HealthTrackingRestClient
public HealthTrackingRestClient(RestClient delegate, HealthCheckResponseCache healthCheckResponseCache)
-
-
Method Detail
-
getVersion
public java.lang.String getVersion() throws java.lang.Exception
Description copied from interface:RestClient
Retrieves the OpenNMS version.- Specified by:
getVersion
in interfaceRestClient
- Throws:
java.lang.Exception
- on failure
-
ping
public void ping() throws java.lang.Exception
Description copied from interface:RestClient
Used to verify connectivity with the REST endpoint.- Specified by:
ping
in interfaceRestClient
- Throws:
java.lang.Exception
- on failure
-
getSnmpV3Users
public java.lang.String getSnmpV3Users() throws java.lang.Exception
Description copied from interface:RestClient
Used to fetch snmpV3users from REST endpoint.- Specified by:
getSnmpV3Users
in interfaceRestClient
- Throws:
java.lang.Exception
- on failure
-
-