2 * Copyright (c) 2015 Red Hat, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.ovsdb.openstack.netvirt;
10 import org.opendaylight.ovsdb.openstack.netvirt.api.Action;
11 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
14 * @author Flavio Fernandes (ffernand@redhat.com)
15 * @author Sam Hague (shague@redhat.com)
17 public class NodeCacheManagerEvent extends AbstractEvent {
20 public NodeCacheManagerEvent(Node node, Action action) {
21 super(HandlerType.NODE, action);
25 public Node getNode() {
29 public String getNodeIdentifier() {
30 return node.getNodeId().getValue();
34 public String toString() {
35 return "NodeCacheManagerEvent [action=" + super.getAction()
41 public int hashCode() {
43 int result = super.hashCode();
44 result = prime * result + ((node == null) ? 0 : node.hashCode());
49 public boolean equals(Object obj) {
56 if (getClass() != obj.getClass()) {
59 if (!super.equals(obj)) {
62 NodeCacheManagerEvent other = (NodeCacheManagerEvent) obj;
64 if (other.node != null) {
67 } else if (!node.equals(other.node)) {