blob: 957476c094f6fad2839a840b82204e1d8cf83ed2 [file] [log] [blame]
Simon Huntd7f7bcc2015-05-08 14:13:17 -07001/*
2 * Copyright 2015 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 *
16 */
17
18package org.onosproject.ui.impl.topo;
19
20import com.fasterxml.jackson.databind.node.ObjectNode;
21import org.onosproject.event.AbstractEvent;
22
23/**
24 * Describes Topology UI Model events.
25 */
26public class TopoUiEvent extends AbstractEvent<TopoUiEvent.Type, ObjectNode> {
27
28 /**
29 * Type of Topology UI Model events.
30 */
31 public enum Type {
Simon Huntc54cd1b2015-05-11 13:43:44 -070032 // notification events
33 SUMMARY_UPDATE,
34
35 // unsolicited topology events
Simon Huntd7f7bcc2015-05-08 14:13:17 -070036 INSTANCE_ADDED,
37 INSTANCE_REMOVED,
38 DEVICE_ADDED,
39 DEVICE_UPDATED,
40 DEVICE_REMOVED,
41 LINK_ADDED,
42 LINK_UPDATED,
43 LINK_REMOVED,
44 HOST_ADDED,
45 HOST_UPDATED,
46 HOST_REMOVED
47 }
48
49
50 protected TopoUiEvent(Type type, ObjectNode subject) {
51 super(type, subject);
52 }
53
54 protected TopoUiEvent(Type type, ObjectNode subject, long time) {
55 super(type, subject, time);
56 }
57
58}