Class ScvEnabledRestClientImpl
- java.lang.Object
-
- org.opennms.distributed.core.impl.ScvEnabledRestClientImpl
-
- All Implemented Interfaces:
RestClient
public class ScvEnabledRestClientImpl extends Object implements RestClient
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description ScvEnabledRestClientImpl(String url, SecureCredentialsVault scv, String scvAlias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSnmpV3Users()
Used to fetch snmpV3users from REST endpoint.String
getVersion()
Retrieves the OpenNMS version.void
ping()
Used to verify connectivity with the REST endpoint.
-
-
-
Constructor Detail
-
ScvEnabledRestClientImpl
public ScvEnabledRestClientImpl(String url, SecureCredentialsVault scv, String scvAlias) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
getVersion
public String getVersion() throws Exception
Description copied from interface:RestClient
Retrieves the OpenNMS version.- Specified by:
getVersion
in interfaceRestClient
- Throws:
Exception
- on failure
-
ping
public void ping() throws Exception
Description copied from interface:RestClient
Used to verify connectivity with the REST endpoint.- Specified by:
ping
in interfaceRestClient
- Throws:
Exception
- on failure
-
getSnmpV3Users
public String getSnmpV3Users() throws Exception
Description copied from interface:RestClient
Used to fetch snmpV3users from REST endpoint.- Specified by:
getSnmpV3Users
in interfaceRestClient
- Throws:
Exception
- on failure
-
-