Package: MessageField
MessageField
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MessageField(String, int, String) |
|
|
|
|
|
||||||||||||||||||||
field() |
|
|
|
|
|
||||||||||||||||||||
static {...} |
|
|
|
|
|
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.datastore.internal.mediator;
14:
15: import org.eclipse.kapua.service.datastore.internal.schema.MessageSchema;
16: import org.eclipse.kapua.service.storable.model.query.StorableField;
17:
18: /**
19: * This enumeration defines the fields names used in the {@link MessageField} client schema
20: *
21: * @since 1.0.0
22: */
23: public enum MessageField implements StorableField {
24: /**
25: * Message identifier
26: */
27: MESSAGE_ID(MessageSchema.MESSAGE_ID),
28: /**
29: * Account identifier
30: */
31: SCOPE_ID(MessageSchema.MESSAGE_SCOPE_ID),
32: /**
33: * Device identifier (physical device)
34: */
35: DEVICE_ID(MessageSchema.MESSAGE_DEVICE_ID),
36: /**
37: * Client identifier
38: */
39: CLIENT_ID(MessageSchema.MESSAGE_CLIENT_ID),
40: /**
41: * Channel
42: */
43: CHANNEL(MessageSchema.MESSAGE_CHANNEL),
44: /**
45: * Message indexing timestamp
46: */
47: TIMESTAMP(MessageSchema.MESSAGE_TIMESTAMP),
48: /**
49: * Received on timestamp
50: */
51: RECEIVED_ON(MessageSchema.MESSAGE_RECEIVED_ON),
52: /**
53: * Remote address
54: */
55: FROM_IP_ADDRESS(MessageSchema.MESSAGE_IP_ADDRESS),
56: /**
57: * Captured on timestamp
58: */
59: CAPTURED_ON(MessageSchema.MESSAGE_CAPTURED_ON),
60: /**
61: * Sent on timestamp
62: */
63: SENT_ON(MessageSchema.MESSAGE_SENT_ON),
64: /**
65: * Device position
66: */
67: POSITION(MessageSchema.MESSAGE_POSITION),
68: /**
69: * Device position - location
70: */
71: POSITION_LOCATION(MessageSchema.MESSAGE_POS_LOCATION_FULL),
72: /**
73: * Device position - altitude
74: */
75: POSITION_ALT(MessageSchema.MESSAGE_POS_ALT_FULL),
76: /**
77: * Device position - precision
78: */
79: POSITION_PRECISION(MessageSchema.MESSAGE_POS_PRECISION_FULL),
80: /**
81: * Device position - heading
82: */
83: POSITION_HEADING(MessageSchema.MESSAGE_POS_HEADING_FULL),
84: /**
85: * Device position - speed
86: */
87: POSITION_POS_SPEED(MessageSchema.MESSAGE_POS_SPEED_FULL),
88: /**
89: * Device position - timestamp
90: */
91: POSITION_TIMESTAMP(MessageSchema.MESSAGE_POS_TIMESTAMP_FULL),
92: /**
93: * Device position - satellites
94: */
95: POSITION_SATELLITES(MessageSchema.MESSAGE_POS_SATELLITES_FULL),
96: /**
97: * Device position - status
98: */
99: POSITION_STATUS(MessageSchema.MESSAGE_POS_STATUS_FULL),
100: /**
101: * Message metrics
102: */
103: METRICS(MessageSchema.MESSAGE_METRICS),
104: /**
105: * Message body
106: */
107: BODY(MessageSchema.MESSAGE_BODY);
108:
109: private String field;
110:
111: MessageField(String name) {
112: this.field = name;
113: }
114:
115: @Override
116: public String field() {
117: return field;
118: }
119: }