blob: 4c9e48ccac8e9deef7b02134ca96520905f7fa41 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
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 Jampani2206e012014-10-06 21:04:20 -070016package org.onlab.onos.store.device.impl;
17
18import org.onlab.onos.store.cluster.messaging.MessageSubject;
19
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -070020// TODO: add prefix to assure uniqueness.
Madan Jampani2206e012014-10-06 21:04:20 -070021/**
Madan Jampani25322532014-10-08 11:20:38 -070022 * MessageSubjects used by GossipDeviceStore peer-peer communication.
Madan Jampani2206e012014-10-06 21:04:20 -070023 */
24public final class GossipDeviceStoreMessageSubjects {
25
26 private GossipDeviceStoreMessageSubjects() {}
27
28 public static final MessageSubject DEVICE_UPDATE = new MessageSubject("peer-device-update");
Madan Jampani25322532014-10-08 11:20:38 -070029 public static final MessageSubject DEVICE_OFFLINE = new MessageSubject("peer-device-offline");
Yuta HIGUCHI53afd5b2014-11-03 18:03:08 -080030 public static final MessageSubject DEVICE_REMOVE_REQ = new MessageSubject("peer-device-remove-request");
Madan Jampani3fc72ed2014-10-08 12:50:27 -070031 public static final MessageSubject DEVICE_REMOVED = new MessageSubject("peer-device-removed");
Madan Jampani2206e012014-10-06 21:04:20 -070032 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 HIGUCHI9ee60f62014-10-09 10:00:01 -070034
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 Jampani2206e012014-10-06 21:04:20 -070038}