Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 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 | */ |
Madan Jampani | 2206e01 | 2014-10-06 21:04:20 -0700 | [diff] [blame] | 16 | package org.onlab.onos.store.device.impl; |
| 17 | |
| 18 | import org.onlab.onos.store.cluster.messaging.MessageSubject; |
| 19 | |
Yuta HIGUCHI | 9ee60f6 | 2014-10-09 10:00:01 -0700 | [diff] [blame] | 20 | // TODO: add prefix to assure uniqueness. |
Madan Jampani | 2206e01 | 2014-10-06 21:04:20 -0700 | [diff] [blame] | 21 | /** |
Madan Jampani | 2532253 | 2014-10-08 11:20:38 -0700 | [diff] [blame] | 22 | * MessageSubjects used by GossipDeviceStore peer-peer communication. |
Madan Jampani | 2206e01 | 2014-10-06 21:04:20 -0700 | [diff] [blame] | 23 | */ |
| 24 | public final class GossipDeviceStoreMessageSubjects { |
| 25 | |
| 26 | private GossipDeviceStoreMessageSubjects() {} |
| 27 | |
| 28 | public static final MessageSubject DEVICE_UPDATE = new MessageSubject("peer-device-update"); |
Madan Jampani | 2532253 | 2014-10-08 11:20:38 -0700 | [diff] [blame] | 29 | public static final MessageSubject DEVICE_OFFLINE = new MessageSubject("peer-device-offline"); |
Yuta HIGUCHI | 53afd5b | 2014-11-03 18:03:08 -0800 | [diff] [blame] | 30 | public static final MessageSubject DEVICE_REMOVE_REQ = new MessageSubject("peer-device-remove-request"); |
Madan Jampani | 3fc72ed | 2014-10-08 12:50:27 -0700 | [diff] [blame] | 31 | public static final MessageSubject DEVICE_REMOVED = new MessageSubject("peer-device-removed"); |
Madan Jampani | 2206e01 | 2014-10-06 21:04:20 -0700 | [diff] [blame] | 32 | public static final MessageSubject PORT_UPDATE = new MessageSubject("peer-port-update"); |
| 33 | public static final MessageSubject PORT_STATUS_UPDATE = new MessageSubject("peer-port-status-update"); |
Yuta HIGUCHI | 9ee60f6 | 2014-10-09 10:00:01 -0700 | [diff] [blame] | 34 | |
| 35 | public static final MessageSubject DEVICE_ADVERTISE = new MessageSubject("peer-device-advertisements"); |
| 36 | // to be used with 3-way anti-entropy process |
| 37 | public static final MessageSubject DEVICE_REQUEST = new MessageSubject("peer-device-request"); |
Madan Jampani | 2206e01 | 2014-10-06 21:04:20 -0700 | [diff] [blame] | 38 | } |