blob: e410b029fca03f0e6acff49456aa7fe52ed7a06e [file] [log] [blame]
alshabibab984662014-12-04 18:56:18 -08001/*
2 * Copyright 2014 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 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.demo;
alshabibfd23d312014-11-11 18:14:47 -080017
alshabib486349d2014-11-25 18:09:25 -050018import com.fasterxml.jackson.databind.JsonNode;
19
20import java.util.Optional;
21
alshabibfd23d312014-11-11 18:14:47 -080022/**
23 * Simple demo api interface.
24 */
25public interface DemoAPI {
26
27 enum InstallType { MESH, RANDOM };
28
29 /**
30 * Installs intents based on the installation type.
31 * @param type the installation type.
alshabiba9819bf2014-11-30 18:15:52 -080032 * @param runParams run params
alshabibfd23d312014-11-11 18:14:47 -080033 */
alshabib486349d2014-11-25 18:09:25 -050034 void setup(InstallType type, Optional<JsonNode> runParams);
alshabibfd23d312014-11-11 18:14:47 -080035
36 /**
37 * Uninstalls all existing intents.
38 */
39 void tearDown();
40
41}