blob: ac418654b72332e6ea0979f9f7e935fadded96e6 [file] [log] [blame]
Yi Tsengc927a062017-05-02 15:02:37 -07001/*
2 * Copyright 2017-present Open Networking Laboratory
3 *
4 * 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
7 *
8 * 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.
15 */
16
17package org.onosproject.net.intent;
18
19/**
20 * Manage installation process for specific installable Intents.
21 */
22public interface IntentInstaller<T extends Intent> {
23
24 /**
25 * The installation direction.
26 */
27 enum Direction {
28 /**
29 * Direction for adding any installable objects(flows, configs...).
30 */
31 ADD,
32
33 /**
34 * Direction for removing any installable objects(flows, configs...).
35 */
36 REMOVE
37 }
38
39 /**
40 * Applies an Intent operation context.
41 *
42 * @param context the Intent operation context
43 */
44 void apply(IntentOperationContext<T> context);
45}