blob: dcb74698c20092a62937c256d179ab280fe73c75 [file] [log] [blame]
Thomas Vachuska83e090e2014-10-22 14:25:35 -07001/*
Ray Milkey34c95902015-04-15 09:47:53 -07002 * Copyright 2014-2015 Open Networking Laboratory
Thomas Vachuska83e090e2014-10-22 14:25:35 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * 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
Thomas Vachuska83e090e2014-10-22 14:25:35 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * 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.
Thomas Vachuska83e090e2014-10-22 14:25:35 -070015 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.net.intent;
Brian O'Connor66630c82014-10-02 21:08:19 -070017
Brian O'Connorabafb502014-12-02 22:26:20 -080018import org.onosproject.store.StoreDelegate;
Brian O'Connor66630c82014-10-02 21:08:19 -070019
20/**
toma1d16b62014-10-02 23:45:11 -070021 * Intent store delegate abstraction.
Brian O'Connor66630c82014-10-02 21:08:19 -070022 */
23public interface IntentStoreDelegate extends StoreDelegate<IntentEvent> {
Brian O'Connorea4d7d12015-01-28 16:37:46 -080024
25 /**
Brian O'Connorcff03322015-02-03 15:28:59 -080026 * Provides an intent data object that should be processed (compiled and
Brian O'Connorea4d7d12015-01-28 16:37:46 -080027 * installed) by this manager.
28 *
Brian O'Connorcff03322015-02-03 15:28:59 -080029 * @param intentData intent data object
Brian O'Connorea4d7d12015-01-28 16:37:46 -080030 */
Brian O'Connorcff03322015-02-03 15:28:59 -080031 void process(IntentData intentData);
Thomas Vachuskac46af202015-06-03 16:43:27 -070032
33 /**
34 * Called when a new intent has been updated for which this node is the master.
35 *
36 * @param intentData intent data object
37 */
38 default void onUpdate(IntentData intentData) {
39 }
Brian O'Connor66630c82014-10-02 21:08:19 -070040}