Skip to content

Package: ChannelRequestChannel

ChannelRequestChannel

nameinstructionbranchcomplexitylinemethod
ChannelRequestChannel()
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%
getAssetName()
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%
setAssetName(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%

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.channel.message.internal;
14:
15: import org.eclipse.kapua.service.device.management.asset.DeviceAsset;
16: import org.eclipse.kapua.service.device.management.asset.DeviceAssetChannel;
17: import org.eclipse.kapua.service.device.management.asset.message.internal.AssetRequestChannel;
18: import org.eclipse.kapua.service.device.management.message.request.KapuaRequestChannel;
19:
20: /**
21: * {@link DeviceAssetChannel} {@link KapuaRequestChannel} implementation.
22: *
23: * @since 1.0.0
24: */
25: public class ChannelRequestChannel extends AssetRequestChannel implements KapuaRequestChannel {
26:
27: private static final long serialVersionUID = -1578380839404848475L;
28:
29: private String assetName;
30:
31: /**
32: * Gets the {@link DeviceAsset} name.
33: *
34: * @return The {@link DeviceAsset} name.
35: * @since 1.0.0
36: */
37: public String getAssetName() {
38: return assetName;
39: }
40:
41: /**
42: * Sets the {@link DeviceAsset} name.
43: *
44: * @param assetName The {@link DeviceAsset} name.
45: * @since 1.0.0
46: */
47: public void setAssetName(String assetName) {
48: this.assetName = assetName;
49: }
50: }