Class GrafanaEndpointServiceImpl
- java.lang.Object
-
- org.opennms.netmgt.endpoints.grafana.service.GrafanaEndpointServiceImpl
-
- All Implemented Interfaces:
GrafanaEndpointService
public class GrafanaEndpointServiceImpl extends java.lang.Object implements GrafanaEndpointService
-
-
Constructor Summary
Constructors Constructor Description GrafanaEndpointServiceImpl(GrafanaEndpointDao endpointDao, GrafanaClientFactory clientFactory, SessionUtils sessionUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAllEndpoints()
void
deleteEndpoint(GrafanaEndpoint grafanaEndpoint)
java.util.List<GrafanaEndpoint>
findEndpoints()
GrafanaClient
getClient(java.lang.String uid)
GrafanaClient
getClient(GrafanaEndpoint grafanaEndpoint)
GrafanaEndpoint
getEndpointById(java.lang.Long endpointId)
GrafanaEndpoint
getEndpointByUid(java.lang.String uid)
void
saveEndpoint(GrafanaEndpoint newGrafanaEndpoint)
void
updateEndpoint(GrafanaEndpoint endpoint)
-
-
-
Constructor Detail
-
GrafanaEndpointServiceImpl
public GrafanaEndpointServiceImpl(GrafanaEndpointDao endpointDao, GrafanaClientFactory clientFactory, SessionUtils sessionUtils)
-
-
Method Detail
-
findEndpoints
public java.util.List<GrafanaEndpoint> findEndpoints()
- Specified by:
findEndpoints
in interfaceGrafanaEndpointService
-
deleteAllEndpoints
public void deleteAllEndpoints()
- Specified by:
deleteAllEndpoints
in interfaceGrafanaEndpointService
-
updateEndpoint
public void updateEndpoint(GrafanaEndpoint endpoint) throws java.util.NoSuchElementException
- Specified by:
updateEndpoint
in interfaceGrafanaEndpointService
- Throws:
java.util.NoSuchElementException
-
saveEndpoint
public void saveEndpoint(GrafanaEndpoint newGrafanaEndpoint) throws java.util.NoSuchElementException
- Specified by:
saveEndpoint
in interfaceGrafanaEndpointService
- Throws:
java.util.NoSuchElementException
-
deleteEndpoint
public void deleteEndpoint(GrafanaEndpoint grafanaEndpoint) throws java.util.NoSuchElementException
- Specified by:
deleteEndpoint
in interfaceGrafanaEndpointService
- Throws:
java.util.NoSuchElementException
-
getEndpointById
public GrafanaEndpoint getEndpointById(java.lang.Long endpointId)
- Specified by:
getEndpointById
in interfaceGrafanaEndpointService
-
getEndpointByUid
public GrafanaEndpoint getEndpointByUid(java.lang.String uid)
- Specified by:
getEndpointByUid
in interfaceGrafanaEndpointService
-
getClient
public GrafanaClient getClient(GrafanaEndpoint grafanaEndpoint)
- Specified by:
getClient
in interfaceGrafanaEndpointService
-
getClient
public GrafanaClient getClient(java.lang.String uid) throws java.util.NoSuchElementException
- Specified by:
getClient
in interfaceGrafanaEndpointService
- Throws:
java.util.NoSuchElementException
-
-