blob: 545f9c14b780f6c0c065f054c74175a5d854f78c [file] [log] [blame]
Thomas Vachuska83e090e2014-10-22 14:25:35 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2014-present 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'Connor9476fa12015-06-25 15:17:17 -040018import com.google.common.annotations.Beta;
Brian O'Connorabafb502014-12-02 22:26:20 -080019import org.onosproject.store.StoreDelegate;
Brian O'Connor66630c82014-10-02 21:08:19 -070020
21/**
toma1d16b62014-10-02 23:45:11 -070022 * Intent store delegate abstraction.
Brian O'Connor66630c82014-10-02 21:08:19 -070023 */
Brian O'Connor9476fa12015-06-25 15:17:17 -040024@Beta
Brian O'Connor66630c82014-10-02 21:08:19 -070025public interface IntentStoreDelegate extends StoreDelegate<IntentEvent> {
Brian O'Connorea4d7d12015-01-28 16:37:46 -080026
27 /**
Brian O'Connorcff03322015-02-03 15:28:59 -080028 * Provides an intent data object that should be processed (compiled and
Brian O'Connorea4d7d12015-01-28 16:37:46 -080029 * installed) by this manager.
30 *
Brian O'Connorcff03322015-02-03 15:28:59 -080031 * @param intentData intent data object
Brian O'Connorea4d7d12015-01-28 16:37:46 -080032 */
Brian O'Connorcff03322015-02-03 15:28:59 -080033 void process(IntentData intentData);
Thomas Vachuskac46af202015-06-03 16:43:27 -070034
35 /**
36 * Called when a new intent has been updated for which this node is the master.
37 *
38 * @param intentData intent data object
39 */
40 default void onUpdate(IntentData intentData) {
41 }
Brian O'Connor66630c82014-10-02 21:08:19 -070042}