Skip to content

Package: MetricInfoRegistryServiceProxy

MetricInfoRegistryServiceProxy

nameinstructionbranchcomplexitylinemethod
MetricInfoRegistryServiceProxy()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
delete(KapuaId, StorableId)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
delete(MetricInfoQuery)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.datastore.internal;
14:
15: import org.eclipse.kapua.KapuaException;
16: import org.eclipse.kapua.locator.KapuaLocator;
17: import org.eclipse.kapua.model.id.KapuaId;
18: import org.eclipse.kapua.service.datastore.MetricInfoRegistryService;
19: import org.eclipse.kapua.service.datastore.model.query.MetricInfoQuery;
20: import org.eclipse.kapua.service.storable.model.id.StorableId;
21:
22: /*******************************************************************************
23: * This proxy class is only used to acces sthe otherwise package-restricted
24: * methods of the Metric Info Registry service.
25: *
26: * At the moment the only method that is required is delete().
27: *
28: *******************************************************************************/
29:
30: public class MetricInfoRegistryServiceProxy {
31: private static final MetricInfoRegistryService METRIC_INFO_REGISTRY_SERVICE =
32: KapuaLocator.getInstance().getService(MetricInfoRegistryService.class);
33:
34: public void delete(KapuaId scopeId, StorableId id) throws KapuaException {
35: ((MetricInfoRegistryServiceImpl) METRIC_INFO_REGISTRY_SERVICE).delete(scopeId, id);
36: }
37:
38: public void delete(MetricInfoQuery query) throws KapuaException {
39: ((MetricInfoRegistryServiceImpl) METRIC_INFO_REGISTRY_SERVICE).delete(query);
40: }
41: }