87d2b295a2513a08c7f2c19a5513508383cfece6
[affinity.git] / affinity / api / src / main / java / org / opendaylight / controller / affinity / IAffinityManagerAware.java
1 /*
2  * Copyright (c) 2013 Plexxi, 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.affinity;
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 public interface IAffinityManagerAware {
16
17     /**
18      * Inform the listeners that specified affinity was updated.
19      *
20      * @param aff
21      *            the affinity config that was added or removed
22      * @param add true if add; false otherwise
23      */
24     public void affinityNotify(AffinityConfig aff, boolean add);
25
26     /**
27      * Inform listeners that the network node has notified us about a failure in
28      * executing the controller generated asynchronous request identified by the
29      * passed unique id.
30      *
31      * @param requestId
32      *            the unique id associated with the request which failed to be
33      *            executed on the network node
34      * @param error
35      *            the string describing the error reported by the network node
36      */
37     public void requestFailed(long requestId, String error);
38
39 }