blob: 22669e5afa612a1056dccc58c3cf0b87bec1e794 [file] [log] [blame]
Thomas Vachuska83e090e2014-10-22 14:25:35 -07001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
Brian O'Connorb876bf12014-10-02 14:59:37 -070019package org.onlab.onos.net.intent;
20
Brian O'Connorf2dbde52014-10-10 16:20:24 -070021import java.util.List;
Brian O'Connorcb900f42014-10-07 21:55:33 -070022
Brian O'Connorf2dbde52014-10-10 16:20:24 -070023import org.onlab.onos.net.flow.FlowRuleBatchOperation;
Brian O'Connorcb900f42014-10-07 21:55:33 -070024
Brian O'Connorb876bf12014-10-02 14:59:37 -070025/**
26 * Abstraction of entity capable of installing intents to the environment.
27 */
Thomas Vachuskac96058a2014-10-20 23:00:16 -070028public interface IntentInstaller<T extends Intent> {
Brian O'Connorb876bf12014-10-02 14:59:37 -070029 /**
30 * Installs the specified intent to the environment.
31 *
32 * @param intent intent to be installed
33 * @throws IntentException if issues are encountered while installing the intent
34 */
Brian O'Connorf2dbde52014-10-10 16:20:24 -070035 List<FlowRuleBatchOperation> install(T intent);
Brian O'Connorb876bf12014-10-02 14:59:37 -070036
37 /**
38 * Uninstalls the specified intent from the environment.
39 *
40 * @param intent intent to be uninstalled
41 * @throws IntentException if issues are encountered while uninstalling the intent
42 */
Brian O'Connorf2dbde52014-10-10 16:20:24 -070043 List<FlowRuleBatchOperation> uninstall(T intent);
Brian O'Connorb876bf12014-10-02 14:59:37 -070044}