blob: 163548932be0f57f88dc9a57bcf38928b5615c5b [file] [log] [blame]
ADARA Networks1fb1eb12016-09-01 12:04:07 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.rabbitmq.api;
17
18/**
19 * Declares the constants used in this module.
20 */
21public final class MQConstants {
22 // No instantiation
23 private MQConstants() {
24 }
25
26 /**
27 * MQ correlation id.
28 */
29 public static final String CORRELATION_ID = "correlation_id";
30
31 /**
32 * MQ exchange name.
33 */
34 public static final String EXCHANGE_NAME_PROPERTY = "EXCHANGE_NAME_PROPERTY";
35
36 /**
37 * MQ routing key.
38 */
39 public static final String ROUTING_KEY_PROPERTY = "ROUTING_KEY_PROPERTY";
40
41 /**
42 * MQ queue name.
43 */
44 public static final String QUEUE_NAME_PROPERTY = "QUEUE_NAME_PROPERTY";
45
46 /**
47 * Switch id connected to onos controller published via json.
48 */
49 public static final String SWITCH_ID = "switch_id";
50
51 /**
52 * Switch's infrastructure device name published via json.
53 */
54 public static final String INFRA_DEVICE_NAME = "infra_device_name";
55
56 /**
57 * Captured event type published via json.
58 */
59 public static final String EVENT_TYPE = "event_type";
60
61 /**
62 * Signifies device event in json.
63 */
64 public static final String DEVICE_EVENT = "DEVICE_EVENT";
65
66 /**
67 * Port connect via switch.
68 */
69 public static final String PORT_NUMBER = "port_number";
70
71 /**
72 * Describes port status enabled or disabled.
73 */
74 public static final String PORT_ENABLED = "port_enabled";
75
76 /**
77 * Specifies port speed.
78 */
79 public static final String PORT_SPEED = "port_speed";
80
81 /**
82 * Specifies sub event types like device added, device updated etc.
83 */
84 public static final String SUB_EVENT_TYPE = "sub_event_type";
85
86 /**
87 * Specifies hardware version of the switch.
88 */
89 public static final String HW_VERSION = "hw_version";
90
91 /**
92 * Specifies switch's manufacturer.
93 */
94 public static final String MFR = "mfr";
95
96 /**
97 * Specifies the serial number of the connected switch.
98 */
99 public static final String SERIAL = "serial";
100
101 /**
102 * Specifies software version of the switch.
103 */
104 public static final String SW_VERSION = "sw_version";
105
106 /**
107 * Specifies chassis id of the switch.
108 */
109 public static final String CHASIS_ID = "chassis_id";
110
111 /**
112 * Specifies event occurence time.
113 */
114 public static final String OCC_TIME = "occurrence_time";
115
116 /**
117 * Specifies switch's available time.
118 */
119 public static final String AVAILABLE = "available_time";
120
121 /**
122 * Specifies packet_in port details.
123 */
124 public static final String IN_PORT = "in_port";
125
126 /**
127 * Specifies port is logical or not.
128 */
129 public static final String LOGICAL = "logical";
130
131 /**
132 * Specifies packet recieved time.
133 */
134 public static final String RECIEVED = "received";
135
136 /**
137 * Specifies message type.
138 */
139 public static final String MSG_TYPE = "msg_type";
140
141 /**
142 * Specifies packet type.
143 */
144 public static final String PKT_TYPE = "PACKET_IN";
145
146 /**
147 * Specifies sub message type under msg_type.
148 */
149 public static final String SUB_MSG_TYPE = "sub_msg_type";
150
151 /**
152 * Specifies Ethernet type of the packet.
153 */
154 public static final String ETH_TYPE = "eth_type";
155
156 /**
157 * Source MAC address of the packet.
158 */
159 public static final String SRC_MAC_ADDR = "src_mac_address";
160
161 /**
162 * Destination MAC address of the packet.
163 */
164 public static final String DEST_MAC_ADDR = "dest_mac_address";
165
166 /**
167 * Specifies VLAN ID of the packet.
168 */
169 public static final String VLAN_ID = "vlan_id";
170
171 /**
172 * Specifies if the packet is a Broadcast or not.
173 */
174 public static final String B_CAST = "is_bcast";
175
176 /**
177 * Specifies if the packet is a Multicast or not.
178 */
179 public static final String M_CAST = "is_mcast";
180
181 /**
182 * Specifies if the packet is padded or not.
183 */
184 public static final String PAD = "pad";
185
186 /**
187 * Specifies priority of the packet.
188 */
189 public static final String PRIORITY_CODE = "priority_code";
190
191 /**
192 * Specifies length of the payload.
193 */
194 public static final String DATA_LEN = "data_length";
195
196 /**
197 * Packet payload(raw) in unicode format.
198 */
199 public static final String PAYLOAD = "payload";
200
201 /**
202 * Network topology type TopologyEvent.Type.
203 */
204 public static final String TOPO_TYPE = "topology_type";
205
206 /**
207 * Represents number of strongly connected components in the topology.
208 */
209 public static final String CLUSTER_COUNT = "cluster_count";
210
211 /**
212 * Cost for doing topology computation.
213 */
214 public static final String COMPUTE_COST = "compute_cost";
215
216 /**
217 * Represents topology creation time.
218 */
219 public static final String CREATE_TIME = "creation_time";
220
221 /**
222 * Represents number of infrastructure devices in the topology.
223 */
224 public static final String DEVICE_COUNT = "device_count";
225
226 /**
227 * Represents number of links in the topology.
228 */
229 public static final String LINK_COUNT = "link_count";
230
231 /**
232 * Represents links destination DeviceId.
233 */
234 public static final String DEST = "dst";
235
236 /**
237 * Represents links source DeviceId.
238 */
239 public static final String SRC = "src";
240
241 /**
242 * True if the link is expected, false otherwise.
243 */
244 public static final String EXPECTED = "expected";
245
246 /**
247 * Represents link state ACTIVE or INACTIVE.
248 */
249 public static final String STATE = "state";
250
251 /**
252 * Represents link type like LINK_ADDED, LINK_UPDATE, LINK_REMOVED.
253 */
254 public static final String LINK_TYPE = "link_type";
255
256 /**
257 * Represents the rabbit mq server properties stored in resources directory.
258 */
259 public static final String MQ_PROP_NAME = "rabbitmq.properties";
260
261 /**
262 * Represents rabbit mq module name for app initialization.
263 */
264 public static final String ONOS_APP_NAME = "org.onosproject.rabbitmq";
265
266 /**
267 * Represents rabbit mq publisher correlation identifier.
268 */
269 public static final String SENDER_COR_ID = "rmq.sender.correlation.id";
270
271 /**
272 * Represents rabbit mq server protocol.
273 */
274 public static final String SERVER_PROTO = "rmq.server.protocol";
275
276 /**
277 * Represents rabbit mq server user name.
278 */
279 public static final String SERVER_UNAME = "rmq.server.username";
280
281 /**
282 * Represents rabbit mq server password.
283 */
284 public static final String SERVER_PWD = "rmq.server.password";
285
286 /**
287 * Represents rabbit mq server address.
288 */
289 public static final String SERVER_ADDR = "rmq.server.ip.address";
290
291 /**
292 * Represents rabbit mq server port.
293 */
294 public static final String SERVER_PORT = "rmq.server.port";
295
296 /**
297 * Represents rabbit mq server vhost.
298 */
299 public static final String SERVER_VHOST = "rmq.server.vhost";
300
301 /**
302 * Represents rabbit mq server exchange.
303 */
304 public static final String SENDER_EXCHG = "rmq.sender.exchange";
305
306 /**
307 * Represents rabbit mq server routing key binds exchange and queue.
308 */
309 public static final String ROUTE_KEY = "rmq.sender.routing.key";
310
311 /**
312 * Represents rabbit mq server queue for message delivery.
313 */
314 public static final String SENDER_QUEUE = "rmq.sender.queue";
315
316 /**
317 * Represents rabbit mq server topic.
318 */
319 public static final String TOPIC = "topic";
320
321 /**
322 * Represents correlation ID of the sender.
323 */
324 public static final String COR_ID = "onos->rmqserver";
325}