Class GrafanaEndpointServiceImpl
- java.lang.Object
-
- org.opennms.netmgt.endpoints.grafana.service.GrafanaEndpointServiceImpl
-
- All Implemented Interfaces:
GrafanaEndpointService
public class GrafanaEndpointServiceImpl extends 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)
List<GrafanaEndpoint>
findEndpoints()
GrafanaClient
getClient(String uid)
GrafanaClient
getClient(GrafanaEndpoint grafanaEndpoint)
GrafanaEndpoint
getEndpointById(Long endpointId)
GrafanaEndpoint
getEndpointByUid(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 List<GrafanaEndpoint> findEndpoints()
- Specified by:
findEndpoints
in interfaceGrafanaEndpointService
-
deleteAllEndpoints
public void deleteAllEndpoints()
- Specified by:
deleteAllEndpoints
in interfaceGrafanaEndpointService
-
updateEndpoint
public void updateEndpoint(GrafanaEndpoint endpoint) throws NoSuchElementException
- Specified by:
updateEndpoint
in interfaceGrafanaEndpointService
- Throws:
NoSuchElementException
-
saveEndpoint
public void saveEndpoint(GrafanaEndpoint newGrafanaEndpoint) throws NoSuchElementException
- Specified by:
saveEndpoint
in interfaceGrafanaEndpointService
- Throws:
NoSuchElementException
-
deleteEndpoint
public void deleteEndpoint(GrafanaEndpoint grafanaEndpoint) throws NoSuchElementException
- Specified by:
deleteEndpoint
in interfaceGrafanaEndpointService
- Throws:
NoSuchElementException
-
getEndpointById
public GrafanaEndpoint getEndpointById(Long endpointId)
- Specified by:
getEndpointById
in interfaceGrafanaEndpointService
-
getEndpointByUid
public GrafanaEndpoint getEndpointByUid(String uid)
- Specified by:
getEndpointByUid
in interfaceGrafanaEndpointService
-
getClient
public GrafanaClient getClient(GrafanaEndpoint grafanaEndpoint)
- Specified by:
getClient
in interfaceGrafanaEndpointService
-
getClient
public GrafanaClient getClient(String uid) throws NoSuchElementException
- Specified by:
getClient
in interfaceGrafanaEndpointService
- Throws:
NoSuchElementException
-
-