blob: a66be63a5b66e6ef508e989b0607b0dd73b672ae [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2014-present Open Networking Laboratory
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07003 *
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 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.store.device.impl;
Madan Jampani2206e012014-10-06 21:04:20 -070017
Brian O'Connorabafb502014-12-02 22:26:20 -080018import org.onosproject.store.cluster.messaging.MessageSubject;
Madan Jampani2206e012014-10-06 21:04:20 -070019
20/**
Madan Jampani25322532014-10-08 11:20:38 -070021 * MessageSubjects used by GossipDeviceStore peer-peer communication.
Madan Jampani2206e012014-10-06 21:04:20 -070022 */
23public final class GossipDeviceStoreMessageSubjects {
24
25 private GossipDeviceStoreMessageSubjects() {}
26
27 public static final MessageSubject DEVICE_UPDATE = new MessageSubject("peer-device-update");
Madan Jampani25322532014-10-08 11:20:38 -070028 public static final MessageSubject DEVICE_OFFLINE = new MessageSubject("peer-device-offline");
Yuta HIGUCHI53afd5b2014-11-03 18:03:08 -080029 public static final MessageSubject DEVICE_REMOVE_REQ = new MessageSubject("peer-device-remove-request");
Madan Jampani3fc72ed2014-10-08 12:50:27 -070030 public static final MessageSubject DEVICE_REMOVED = new MessageSubject("peer-device-removed");
Madan Jampani2206e012014-10-06 21:04:20 -070031 public static final MessageSubject PORT_UPDATE = new MessageSubject("peer-port-update");
32 public static final MessageSubject PORT_STATUS_UPDATE = new MessageSubject("peer-port-status-update");
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -070033
34 public static final MessageSubject DEVICE_ADVERTISE = new MessageSubject("peer-device-advertisements");
35 // to be used with 3-way anti-entropy process
36 public static final MessageSubject DEVICE_REQUEST = new MessageSubject("peer-device-request");
Marc De Leenheerb473b9d2015-02-06 15:21:03 -080037
38 // Network elements injected (not discovered) by ConfigProvider
Yuta HIGUCHIf15065e2016-08-30 14:01:51 -070039 /**
40 * Remnant of ConfigProvider.
41 * @deprecated in Hummingbird(1.7.0)
42 */
43 @Deprecated
Marc De Leenheerb473b9d2015-02-06 15:21:03 -080044 public static final MessageSubject DEVICE_INJECTED = new MessageSubject("peer-device-injected");
Yuta HIGUCHIf15065e2016-08-30 14:01:51 -070045 /**
46 * Remnant of ConfigProvider.
47 * @deprecated in Hummingbird(1.7.0)
48 */
49 @Deprecated
Marc De Leenheerb473b9d2015-02-06 15:21:03 -080050 public static final MessageSubject PORT_INJECTED = new MessageSubject("peer-port-injected");
Madan Jampani2206e012014-10-06 21:04:20 -070051}