Skip to content

Package: BundleRequestChannel

BundleRequestChannel

nameinstructionbranchcomplexitylinemethod
BundleRequestChannel()
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%
getBundleId()
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%
isStart()
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%
setBundleId(String)
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%
setStart(boolean)
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: *******************************************************************************/
13: package org.eclipse.kapua.service.device.management.bundle.message.internal;
14:
15: import org.eclipse.kapua.service.device.management.bundle.DeviceBundle;
16: import org.eclipse.kapua.service.device.management.commons.message.request.KapuaRequestChannelImpl;
17: import org.eclipse.kapua.service.device.management.message.request.KapuaRequestChannel;
18:
19: /**
20: * {@link DeviceBundle} {@link KapuaRequestChannel} implementation.
21: *
22: * @since 1.0.0
23: */
24: public class BundleRequestChannel extends KapuaRequestChannelImpl implements KapuaRequestChannel {
25:
26: private static final long serialVersionUID = -1300715857785309970L;
27:
28: private String bundleId;
29: private boolean start;
30:
31: /**
32: * Gets the {@link DeviceBundle} identifier.
33: *
34: * @return The {@link DeviceBundle} identifier.
35: * @since 1.0.0
36: */
37: public String getBundleId() {
38: return bundleId;
39: }
40:
41: /**
42: * Sets the {@link DeviceBundle} identifier.
43: *
44: * @param bundleId The {@link DeviceBundle} identifier.
45: * @since 1.0.0
46: */
47: public void setBundleId(String bundleId) {
48: this.bundleId = bundleId;
49: }
50:
51: /**
52: * Checks if the {@link DeviceBundle} is started.
53: *
54: * @return {@code true} if the {@link DeviceBundle} is started, {@code false} otherwise.
55: * @since 1.0.0
56: */
57: public boolean isStart() {
58: return start;
59: }
60:
61: /**
62: * Sets whether or not the {@link DeviceBundle} has started.
63: *
64: * @param start {@code true} if the {@link DeviceBundle} has started, {@code false} otherwise.
65: * @since 1.0.0
66: */
67: public void setStart(boolean start) {
68: this.start = start;
69: }
70: }