blob: c79a381881bdce850f9d7b6f7c5f24f2859d9148 [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
Brian O'Connor9476fa12015-06-25 15:17:17 -040018import com.google.common.annotations.Beta;
Brian O'Connor69d6ac72015-05-29 16:24:06 -070019import org.onosproject.event.AbstractEvent;
20
21/**
22 * Partition event.
23 */
24//TODO change String into a proper object type
Brian O'Connor9476fa12015-06-25 15:17:17 -040025@Beta
Brian O'Connor69d6ac72015-05-29 16:24:06 -070026public class PartitionEvent extends AbstractEvent<PartitionEvent.Type, String> {
27
28 public enum Type {
29 LEADER_CHANGED
30 }
31
32 public PartitionEvent(Type type, String partition) {
33 super(type, partition);
34 }
35}