Skip to content

Package: AbstractKuraAppsBirthPayload

AbstractKuraAppsBirthPayload

nameinstructionbranchcomplexitylinemethod
AbstractKuraAppsBirthPayload()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
AbstractKuraAppsBirthPayload(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String)
M: 227 C: 0
0%
M: 56 C: 0
0%
M: 29 C: 0
0%
M: 58 C: 0
0%
M: 1 C: 0
0%
getAcceptEncoding()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getApplicationFramework()
M: 16 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getApplicationFrameworkVersion()
M: 26 C: 0
0%
M: 4 C: 0
0%
M: 3 C: 0
0%
M: 7 C: 0
0%
M: 1 C: 0
0%
getApplicationIdentifiers()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getAvailableProcessors()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getBios()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getBiosVersion()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getConnectionInterface()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getConnectionIp()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getContainerFramework()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getContainerFrameworkVersion()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getDisplayName()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getExtendedProperties()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getFirmware()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getFirmwareVersion()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getJvm()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getJvmProfile()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getJvmVersion()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getModelId()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getModelName()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getModemIccid()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getModemImei()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getModemImsi()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOs()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOsArch()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getOsVersion()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPartNumber()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getSerialNumber()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getTotalMemory()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getUptime()
M: 6 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) 2018, 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.call.message.kura.lifecycle;
14:
15: import org.eclipse.kapua.service.device.call.message.lifecycle.DeviceLifecyclePayload;
16: import org.eclipse.kapua.service.device.registry.Device;
17:
18: /**
19: * {@code abstract} base class for {@link KuraAppsPayload} and {@link KuraBirthPayload}.
20: * <p>
21: * {@link KuraAppsPayload} and {@link KuraBirthPayload} have the same format.
22: *
23: * @since 1.0.0
24: */
25: public class AbstractKuraAppsBirthPayload extends AbstractKuraLifecyclePayload implements DeviceLifecyclePayload {
26:
27: /**
28: * {@link Device} uptime metric name.
29: *
30: * @since 1.0.0
31: */
32: protected static final String UPTIME = "uptime";
33:
34: /**
35: * {@link Device} display ma,e metric name.
36: *
37: * @since 1.0.0
38: */
39: protected static final String DISPLAY_NAME = "display_name";
40:
41: /**
42: * {@link Device} model name metric name.
43: *
44: * @since 1.0.0
45: */
46: protected static final String MODEL_NAME = "model_name";
47:
48: /**
49: * {@link Device} model id metric name.
50: *
51: * @since 1.0.0
52: */
53: protected static final String MODEL_ID = "model_id";
54:
55: /**
56: * {@link Device} part number metric name.
57: *
58: * @since 1.0.0
59: */
60: protected static final String PART_NUMBER = "part_number";
61:
62: /**
63: * {@link Device} serial number metric name.
64: *
65: * @since 1.0.0
66: */
67: protected static final String SERIAL_NUMBER = "serial_number";
68:
69: /**
70: * {@link Device} available processors metric name.
71: *
72: * @since 1.0.0
73: */
74: protected static final String AVAILABLE_PROCESSORS = "available_processors";
75:
76: /**
77: * {@link Device} total memory metric name.
78: *
79: * @since 1.0.0
80: */
81: protected static final String TOTAL_MEMORY = "total_memory";
82:
83: /**
84: * {@link Device} firmware version metric name.
85: *
86: * @since 1.0.0
87: */
88: protected static final String FIRMWARE_VERSION = "firmware_version";
89:
90: /**
91: * {@link Device} bios version metric name.
92: *
93: * @since 1.0.0
94: */
95: protected static final String BIOS_VERSION = "bios_version";
96:
97: /**
98: * {@link Device} os name metric name.
99: *
100: * @since 1.0.0
101: */
102: protected static final String OS = "os";
103:
104: /**
105: * {@link Device} os version metric name.
106: *
107: * @since 1.0.0
108: */
109: protected static final String OS_VERSION = "os_version";
110:
111: /**
112: * {@link Device} os architecture metric name.
113: *
114: * @since 1.0.0
115: */
116: protected static final String OS_ARCH = "os_arch";
117:
118: /**
119: * {@link Device} JVM name metric name.
120: *
121: * @since 1.0.0
122: */
123: protected static final String JVM_NAME = "jvm_name";
124:
125: /**
126: * {@link Device} JVM version metric name.
127: *
128: * @since 1.0.0
129: */
130: protected static final String JVM_VERSION = "jvm_version";
131:
132: /**
133: * {@link Device} JVM profile metric name.
134: *
135: * @since 1.0.0
136: */
137: protected static final String JVM_PROFILE = "jvm_profile";
138:
139: /**
140: * {@link Device} application framework ESF version metric name.
141: *
142: * @since 1.0.0
143: */
144: protected static final String ESF_VERSION = "esf_version";
145:
146: /**
147: * {@link Device} application framework Kura version metric name.
148: *
149: * @since 1.0.0
150: */
151: protected static final String KURA_VERSION = "kura_version";
152:
153: /**
154: * {@link Device} application framework name metric name.
155: *
156: * @since 1.0.0
157: */
158: protected static final String APPLICATION_FRAMEWORK = "application_framework";
159:
160: /**
161: * {@link Device} application framework version metric name.
162: *
163: * @since 1.0.0
164: */
165: protected static final String APPLICATION_FRAMEWORK_VERSION = "application_framework_version";
166:
167: /**
168: * {@link Device} osgi framework name metric name.
169: *
170: * @since 1.0.0
171: */
172: protected static final String OSGI_FRAMEWORK = "osgi_framework";
173:
174: /**
175: * {@link Device} osgi framework version metric name.
176: *
177: * @since 1.0.0
178: */
179: protected static final String OSGI_FRAMEWORK_VERSION = "osgi_framework_version";
180:
181: /**
182: * {@link Device} connection interfaces metric name.
183: *
184: * @since 1.0.0
185: */
186: protected static final String CONNECTION_INTERFACE = "connection_interface";
187:
188: /**
189: * {@link Device} connection ips metric name.
190: *
191: * @since 1.0.0
192: */
193: protected static final String CONNECTION_IP = "connection_ip";
194:
195: /**
196: * {@link Device} accepted encoding metric name.
197: *
198: * @since 1.0.0
199: */
200: protected static final String ACCEPT_ENCODING = "accept_encoding";
201:
202: /**
203: * {@link Device} application ids metric name.
204: *
205: * @since 1.0.0
206: */
207: protected static final String APPLICATION_IDS = "application_ids";
208:
209: /**
210: * {@link Device} modem IMEI metric name.
211: *
212: * @since 1.0.0
213: */
214: protected static final String MODEM_IMEI = "modem_imei";
215:
216: /**
217: * {@link Device} modem IMSI metric name.
218: *
219: * @since 1.0.0
220: */
221: protected static final String MODEM_IMSI = "modem_imsi";
222:
223: /**
224: * {@link Device} modem ICCID metric name.
225: *
226: * @since 1.0.0
227: */
228: protected static final String MODEM_ICCID = "modem_iccid";
229:
230: /**
231: * {@link Device} extended properties metric name.
232: *
233: * @since 1.5.0
234: */
235: protected static final String EXTENDED_PROPERTIES = "extended_properties";
236:
237: /**
238: * {@link Device} default application framework metric name.
239: *
240: * @since 1.0.0
241: */
242: protected static final String DEFAULT_APPLICATION_FRAMEWORK = "Kura";
243: private static final long serialVersionUID = 5490945197263668115L;
244:
245:
246: /**
247: * Constructor.
248: *
249: * @since 1.0.0
250: */
251: public AbstractKuraAppsBirthPayload() {
252: super();
253: }
254:
255: /**
256: * Constructor.
257: *
258: * @param uptime {@link Device} uptime.
259: * @param displayName {@link Device} display ma,e.
260: * @param modelName {@link Device} model name.
261: * @param modelId {@link Device} model id.
262: * @param partNumber {@link Device} part number.
263: * @param serialNumber {@link Device} serial number.
264: * @param firmwareVersion {@link Device} available processors.
265: * @param biosVersion {@link Device} total memory.
266: * @param os {@link Device} firmware version.
267: * @param osVersion {@link Device} bios version.
268: * @param jvmName {@link Device} os name.
269: * @param jvmVersion {@link Device} os version.
270: * @param jvmProfile {@link Device} os architecture.
271: * @param applicationFramework {@link Device} JVM name.
272: * @param applicationFrameworkVersion {@link Device} JVM version.
273: * @param connectionInterface {@link Device} JVM profile.
274: * @param connectionIp {@link Device} application framework name.
275: * @param acceptEncoding {@link Device} application framework version.
276: * @param applicationIdentifiers {@link Device} osgi framework name.
277: * @param availableProcessors {@link Device} osgi framework version.
278: * @param totalMemory {@link Device} connection interfaces.
279: * @param osArch {@link Device} connection ips.
280: * @param osgiFramework {@link Device} accepted encoding.
281: * @param osgiFrameworkVersion {@link Device} application ids .
282: * @param modemImei {@link Device} modem IMEI.
283: * @param modemImsi {@link Device} modem IMSI.
284: * @param modemIccid {@link Device} modem ICCID.
285: * @param extendedProperties {@link Device} extended properties.
286: * @since 1.0.0
287: */
288: public AbstractKuraAppsBirthPayload(String uptime,
289: String displayName,
290: String modelName,
291: String modelId,
292: String partNumber,
293: String serialNumber,
294: String firmwareVersion,
295: String biosVersion,
296: String os,
297: String osVersion,
298: String jvmName,
299: String jvmVersion,
300: String jvmProfile,
301: String applicationFramework,
302: String applicationFrameworkVersion,
303: String connectionInterface,
304: String connectionIp,
305: String acceptEncoding,
306: String applicationIdentifiers,
307: String availableProcessors,
308: String totalMemory,
309: String osArch,
310: String osgiFramework,
311: String osgiFrameworkVersion,
312: String modemImei,
313: String modemImsi,
314: String modemIccid,
315: String extendedProperties) {
316: super();
317:
318:• if (uptime != null) {
319: getMetrics().put(UPTIME, uptime);
320: }
321:• if (displayName != null) {
322: getMetrics().put(DISPLAY_NAME, displayName);
323: }
324:• if (modelName != null) {
325: getMetrics().put(MODEL_NAME, modelName);
326: }
327:• if (modelId != null) {
328: getMetrics().put(MODEL_ID, modelId);
329: }
330:• if (partNumber != null) {
331: getMetrics().put(PART_NUMBER, partNumber);
332: }
333:• if (serialNumber != null) {
334: getMetrics().put(SERIAL_NUMBER, serialNumber);
335: }
336:• if (firmwareVersion != null) {
337: getMetrics().put(FIRMWARE_VERSION, firmwareVersion);
338: }
339:• if (biosVersion != null) {
340: getMetrics().put(BIOS_VERSION, biosVersion);
341: }
342:• if (os != null) {
343: getMetrics().put(OS, os);
344: }
345:• if (osVersion != null) {
346: getMetrics().put(OS_VERSION, osVersion);
347: }
348:• if (jvmName != null) {
349: getMetrics().put(JVM_NAME, jvmName);
350: }
351:• if (jvmVersion != null) {
352: getMetrics().put(JVM_VERSION, jvmVersion);
353: }
354:• if (jvmProfile != null) {
355: getMetrics().put(JVM_PROFILE, jvmProfile);
356: }
357:• if (applicationFramework != null) {
358: getMetrics().put(APPLICATION_FRAMEWORK, applicationFramework);
359: }
360:• if (applicationFrameworkVersion != null) {
361: getMetrics().put(APPLICATION_FRAMEWORK_VERSION, applicationFrameworkVersion);
362: }
363:• if (connectionInterface != null) {
364: getMetrics().put(CONNECTION_INTERFACE, connectionInterface);
365: }
366:• if (connectionIp != null) {
367: getMetrics().put(CONNECTION_IP, connectionIp);
368: }
369:• if (acceptEncoding != null) {
370: getMetrics().put(ACCEPT_ENCODING, acceptEncoding);
371: }
372:• if (applicationIdentifiers != null) {
373: getMetrics().put(APPLICATION_IDS, applicationIdentifiers);
374: }
375:• if (availableProcessors != null) {
376: getMetrics().put(AVAILABLE_PROCESSORS, availableProcessors);
377: }
378:• if (totalMemory != null) {
379: getMetrics().put(TOTAL_MEMORY, totalMemory);
380: }
381:• if (osArch != null) {
382: getMetrics().put(OS_ARCH, osArch);
383: }
384:• if (osgiFramework != null) {
385: getMetrics().put(OSGI_FRAMEWORK, osgiFramework);
386: }
387:• if (osgiFrameworkVersion != null) {
388: getMetrics().put(OSGI_FRAMEWORK_VERSION, osgiFrameworkVersion);
389: }
390:• if (modemImei != null) {
391: getMetrics().put(MODEM_IMEI, modemImei);
392: }
393:• if (modemImsi != null) {
394: getMetrics().put(MODEM_IMSI, modemImsi);
395: }
396:• if (modemIccid != null) {
397: getMetrics().put(MODEM_ICCID, modemIccid);
398: }
399:• if (extendedProperties != null) {
400: getMetrics().put(EXTENDED_PROPERTIES, extendedProperties);
401: }
402: }
403:
404: /**
405: * Gets the {@link Device} uptime.
406: *
407: * @return The {@link Device} uptime.
408: * @since 1.0.0
409: */
410: public String getUptime() {
411: return (String) getMetrics().get(UPTIME);
412: }
413:
414: /**
415: * Gets the {@link Device} display name.
416: *
417: * @return The {@link Device} display name.
418: * @since 1.0.0
419: */
420: public String getDisplayName() {
421: return (String) getMetrics().get(DISPLAY_NAME);
422: }
423:
424: /**
425: * Gets the {@link Device} model name.
426: *
427: * @return The {@link Device} model name.
428: * @since 1.0.0
429: */
430: public String getModelName() {
431: return (String) getMetrics().get(MODEL_NAME);
432: }
433:
434: /**
435: * Gets the {@link Device} model id.
436: *
437: * @return The {@link Device} model id.
438: * @since 1.0.0
439: */
440: public String getModelId() {
441: return (String) getMetrics().get(MODEL_ID);
442: }
443:
444: /**
445: * Gets the {@link Device} part number.
446: *
447: * @return The {@link Device} part number.
448: * @since 1.0.0
449: */
450: public String getPartNumber() {
451: return (String) getMetrics().get(PART_NUMBER);
452: }
453:
454: /**
455: * Gets the {@link Device} serial number.
456: *
457: * @return The {@link Device} serial number.
458: * @since 1.0.0
459: */
460: public String getSerialNumber() {
461: return (String) getMetrics().get(SERIAL_NUMBER);
462: }
463:
464: /**
465: * Gets the {@link Device} firmware name.
466: *
467: * @return The {@link Device} firmware name.
468: * @since 1.0.0
469: */
470: public String getFirmware() {
471: return (String) getMetrics().get(FIRMWARE_VERSION);
472: }
473:
474: /**
475: * Gets the {@link Device} firmware version.
476: *
477: * @return The {@link Device} firmware version.
478: * @since 1.0.0
479: */
480: public String getFirmwareVersion() {
481: return (String) getMetrics().get(FIRMWARE_VERSION);
482: }
483:
484: /**
485: * Gets the {@link Device} bios name.
486: *
487: * @return The {@link Device} bios name.
488: * @since 1.0.0
489: */
490: public String getBios() {
491: return (String) getMetrics().get(BIOS_VERSION);
492: }
493:
494: /**
495: * Gets the {@link Device} bios version.
496: *
497: * @return The {@link Device} bios version.
498: * @since 1.0.0
499: */
500: public String getBiosVersion() {
501: return (String) getMetrics().get(BIOS_VERSION);
502: }
503:
504: /**
505: * Gets the {@link Device} os name.
506: *
507: * @return The {@link Device} os name.
508: * @since 1.0.0
509: */
510: public String getOs() {
511: return (String) getMetrics().get(OS);
512: }
513:
514: /**
515: * Gets the {@link Device} os version.
516: *
517: * @return The {@link Device} os version.
518: * @since 1.0.0
519: */
520: public String getOsVersion() {
521: return (String) getMetrics().get(OS_VERSION);
522: }
523:
524: /**
525: * Gets the {@link Device} JVM name.
526: *
527: * @return The {@link Device} JVM name.
528: * @since 1.0.0
529: */
530: public String getJvm() {
531: return (String) getMetrics().get(JVM_NAME);
532: }
533:
534: /**
535: * Gets the {@link Device} JVM version.
536: *
537: * @return The {@link Device} JVM version.
538: * @since 1.0.0
539: */
540: public String getJvmVersion() {
541: return (String) getMetrics().get(JVM_VERSION);
542: }
543:
544: /**
545: * Gets the {@link Device} JVM profile.
546: *
547: * @return The {@link Device} JVM profile.
548: * @since 1.0.0
549: */
550: public String getJvmProfile() {
551: return (String) getMetrics().get(JVM_PROFILE);
552: }
553:
554: /**
555: * Gets the {@link Device} container framework name.
556: *
557: * @return The {@link Device} container framework name.
558: * @since 1.0.0
559: */
560: public String getContainerFramework() {
561: return (String) getMetrics().get(OSGI_FRAMEWORK);
562: }
563:
564: /**
565: * Gets the {@link Device} container framework version.
566: *
567: * @return The {@link Device} container framework version.
568: * @since 1.0.0
569: */
570: public String getContainerFrameworkVersion() {
571: return (String) getMetrics().get(OSGI_FRAMEWORK_VERSION);
572: }
573:
574: /**
575: * Gets the {@link Device} application framework name.
576: *
577: * @return The {@link Device} application framework name.
578: * @since 1.0.0
579: */
580: public String getApplicationFramework() {
581: String value = (String) getMetrics().get(APPLICATION_FRAMEWORK);
582:• if (value != null) {
583: return value;
584: }
585: return (String) getMetrics().get(DEFAULT_APPLICATION_FRAMEWORK);
586: }
587:
588: /**
589: * Gets the {@link Device} application framework version.
590: *
591: * @return The {@link Device} application framework version.
592: * @since 1.0.0
593: */
594: public String getApplicationFrameworkVersion() {
595: String value = (String) getMetrics().get(APPLICATION_FRAMEWORK_VERSION);
596:• if (value != null) {
597: return value;
598: }
599: value = (String) getMetrics().get(KURA_VERSION);
600:• if (value != null) {
601: return value;
602: }
603: return (String) getMetrics().get(ESF_VERSION);
604: }
605:
606: /**
607: * Gets the {@link Device} connection interfaces.
608: *
609: * @return The {@link Device} connection interfaces.
610: * @since 1.0.0
611: */
612: public String getConnectionInterface() {
613: return (String) getMetrics().get(CONNECTION_INTERFACE);
614: }
615:
616: /**
617: * Gets the {@link Device} connection ips.
618: *
619: * @return The {@link Device} connection ips.
620: * @since 1.0.0
621: */
622: public String getConnectionIp() {
623: return (String) getMetrics().get(CONNECTION_IP);
624: }
625:
626: /**
627: * Gets the {@link Device} accepted encoding.
628: *
629: * @return The {@link Device} accepted encoding.
630: * @since 1.0.0
631: */
632: public String getAcceptEncoding() {
633: return (String) getMetrics().get(ACCEPT_ENCODING);
634: }
635:
636: /**
637: * Gets the {@link Device} application identifiers.
638: *
639: * @return The {@link Device} application identifiers.
640: * @since 1.0.0
641: */
642: public String getApplicationIdentifiers() {
643: return (String) getMetrics().get(APPLICATION_IDS);
644: }
645:
646: /**
647: * Gets the {@link Device} available processors.
648: *
649: * @return The {@link Device} available processors.
650: * @since 1.0.0
651: */
652: public String getAvailableProcessors() {
653: return (String) getMetrics().get(AVAILABLE_PROCESSORS);
654: }
655:
656: /**
657: * Gets the {@link Device} total memory.
658: *
659: * @return The {@link Device} total memory.
660: * @since 1.0.0
661: */
662: public String getTotalMemory() {
663: return (String) getMetrics().get(TOTAL_MEMORY);
664: }
665:
666: /**
667: * Gets the {@link Device} os architecture.
668: *
669: * @return The {@link Device} os architecture.
670: * @since 1.0.0
671: */
672: public String getOsArch() {
673: return (String) getMetrics().get(OS_ARCH);
674: }
675:
676: /**
677: * Gets the {@link Device} modem IMEI.
678: *
679: * @return The {@link Device} modem IMEI.
680: * @since 1.0.0
681: */
682: public String getModemImei() {
683: return (String) getMetrics().get(MODEM_IMEI);
684: }
685:
686: /**
687: * Gets the {@link Device} modem IMSI.
688: *
689: * @return The {@link Device} modem IMSI.
690: * @since 1.0.0
691: */
692: public String getModemImsi() {
693: return (String) getMetrics().get(MODEM_IMSI);
694: }
695:
696: /**
697: * Gets the {@link Device} modem ICCID.
698: *
699: * @return The {@link Device} modem ICCID.
700: * @since 1.0.0
701: */
702: public String getModemIccid() {
703: return (String) getMetrics().get(MODEM_ICCID);
704: }
705:
706: /**
707: * Gets the {@link Device} extended properties.
708: *
709: * @return The {@link Device} extended properties.
710: * @since 1.5.0
711: */
712: public String getExtendedProperties() {
713: return (String) getMetrics().get(EXTENDED_PROPERTIES);
714: }
715:
716:
717: }