Checkstyle enforcer
[controller.git] / opendaylight / forwardingrulesmanager / api / src / main / java / org / opendaylight / controller / forwardingrulesmanager / IForwardingRulesManagerAware.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.forwardingrulesmanager;
10
11 /**
12  * The interface which describes the methods forwarding rules manager will call
13  * for notifying the listeners of policy installation updates.
14  *
15  */
16 public interface IForwardingRulesManagerAware {
17
18     /**
19      * Inform the listeners that a troubleshooting information was added or
20      * removed for the specified policy.
21      *
22      * @param policyName
23      *            the policy affected
24      * @param add
25      *            true if the troubleshooting information was added, false
26      *            otherwise
27      */
28     public void policyUpdate(String policyName, boolean add);
29
30     /**
31      * Inform listeners that the network node has notified us about a failure in
32      * executing the controller generated asynchronous request identified by the
33      * passed unique id.
34      *
35      * @param requestId
36      *            the unique id associated with the request which failed to be
37      *            executed on the network node
38      * @param error
39      *            the string describing the error reported by the network node
40      */
41     public void requestFailed(long requestId, String error);
42
43 }