blob: ad09091d9632e90a33e910d49ab4575f61354a7b [file] [log] [blame]
Jian Lidaa7d6a2021-04-13 17:22:56 +09001/*
2 * Copyright 2021-present Open Networking Foundation
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.kubevirtnetworking.api;
17
18import org.onosproject.event.AbstractEvent;
19
20public class KubevirtLoadBalancerEvent
21 extends AbstractEvent<KubevirtLoadBalancerEvent.Type, KubevirtLoadBalancer> {
22
23 /**
24 * LoadBalancerEvent constructor.
25 *
26 * @param type LoadBalancerEvent type
27 * @param lb LoadBalancer object
28 */
29 public KubevirtLoadBalancerEvent(Type type, KubevirtLoadBalancer lb) {
30 super(type, lb);
31 }
32
33 public enum Type {
34 /**
35 * Signifies that a new kubevirt load balancer is created.
36 */
37 KUBEVIRT_LOAD_BALANCER_CREATED,
38
39 /**
40 * Signifies that a new kubevirt load balancer is removed.
41 */
42 KUBEVIRT_LOAD_BALANCER_REMOVED,
43
44 /**
45 * Signifies that a new kubevirt load balancer is updated.
46 */
47 KUBEVIRT_LOAD_BALANCER_UPDATED,
48 }
49}