blob: 48623dde1e92971a4cc5f7673aed440b1ce15043 [file] [log] [blame]
Brian O'Connor69d6ac72015-05-29 16:24:06 -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 */
16package org.onosproject.net.intent;
17
18import org.onosproject.event.AbstractEvent;
19
20/**
21 * Partition event.
22 */
23//TODO change String into a proper object type
24public class PartitionEvent extends AbstractEvent<PartitionEvent.Type, String> {
25
26 public enum Type {
27 LEADER_CHANGED
28 }
29
30 public PartitionEvent(Type type, String partition) {
31 super(type, partition);
32 }
33}