Skip to content

Package: MessageStoreFactoryImpl

MessageStoreFactoryImpl

nameinstructionbranchcomplexitylinemethod
MessageStoreFactoryImpl()
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%
newListResult()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
newQuery(KapuaId)
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
newStorable()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2020, 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.locator.KapuaProvider;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.service.datastore.MessageStoreFactory;
18: import org.eclipse.kapua.service.datastore.MetricInfoFactory;
19: import org.eclipse.kapua.service.datastore.internal.model.DatastoreMessageImpl;
20: import org.eclipse.kapua.service.datastore.internal.model.MessageListResultImpl;
21: import org.eclipse.kapua.service.datastore.internal.model.query.MessageQueryImpl;
22: import org.eclipse.kapua.service.datastore.model.DatastoreMessage;
23: import org.eclipse.kapua.service.datastore.model.MessageListResult;
24: import org.eclipse.kapua.service.datastore.model.query.MessageQuery;
25:
26: /**
27: * {@link MetricInfoFactory} implementation.
28: *
29: * @since 1.3.0
30: */
31: @KapuaProvider
32: public class MessageStoreFactoryImpl implements MessageStoreFactory {
33:
34: @Override
35: public DatastoreMessage newStorable() {
36: return new DatastoreMessageImpl();
37: }
38:
39: @Override
40: public MessageListResult newListResult() {
41: return new MessageListResultImpl();
42: }
43:
44: @Override
45: public MessageQuery newQuery(KapuaId scopeId) {
46: return new MessageQueryImpl(scopeId);
47: }
48: }