Skip to content

Package: DatastoreMessageImpl

DatastoreMessageImpl

nameinstructionbranchcomplexitylinemethod
DatastoreMessageImpl()
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%
getDatastoreId()
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%
getTimestamp()
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%
setDatastoreId(StorableId)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setTimestamp(Date)
M: 4 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) 2016, 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: * Red Hat Inc
13: *******************************************************************************/
14: package org.eclipse.kapua.service.datastore.internal.model;
15:
16: import org.eclipse.kapua.message.KapuaPayload;
17: import org.eclipse.kapua.message.device.data.KapuaDataChannel;
18: import org.eclipse.kapua.message.internal.KapuaMessageImpl;
19: import org.eclipse.kapua.service.datastore.model.DatastoreMessage;
20: import org.eclipse.kapua.service.storable.model.id.StorableId;
21:
22: import java.util.Date;
23:
24: /**
25: * {@link DatastoreMessage} implementation.
26: *
27: * @since 1.0.0
28: */
29: public class DatastoreMessageImpl extends KapuaMessageImpl<KapuaDataChannel, KapuaPayload> implements DatastoreMessage {
30:
31: private static final long serialVersionUID = 1L;
32:
33: private StorableId datastoreId;
34: private Date timestamp;
35:
36: @Override
37: public StorableId getDatastoreId() {
38: return datastoreId;
39: }
40:
41: @Override
42: public void setDatastoreId(StorableId id) {
43: this.datastoreId = id;
44: }
45:
46: @Override
47: public Date getTimestamp() {
48: return this.timestamp;
49: }
50:
51: @Override
52: public void setTimestamp(Date timestamp) {
53: this.timestamp = timestamp;
54: }
55:
56: }