BUG-2218: Keep existing link augmentations during discovery process
[controller.git] / opendaylight / containermanager / api / src / main / java / org / opendaylight / controller / containermanager / NodeConnectorsChangeEvent.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.containermanager;
11
12 import java.io.Serializable;
13 import java.util.List;
14
15 import org.opendaylight.controller.sal.core.NodeConnector;
16 import org.opendaylight.controller.sal.core.UpdateType;
17
18 /**
19  * Class that represent the event of a configuration change for a container
20  */
21 public class NodeConnectorsChangeEvent implements Serializable {
22     private static final long serialVersionUID = 1L;
23     private List<NodeConnector> ncList;
24     private UpdateType updateType;
25
26     public NodeConnectorsChangeEvent(List<NodeConnector> ncList, UpdateType updateType) {
27         this.ncList = ncList;
28         this.updateType = updateType;
29     }
30
31     public List<NodeConnector> getNodeConnectors() {
32         return ncList;
33     }
34
35     public UpdateType getUpdateType() {
36         return updateType;
37     }
38
39     @Override
40     public String toString() {
41         return "ContainerConnectorsChangeEvent [ncList: " + ncList + " updateType: " + updateType + "]";
42     }
43 }