Adding nemo engine.
[nemo.git] / nemo-impl / src / main / java / org / opendaylight / nemo / intent / FlowManager.java
1 /*\r
2  * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 package org.opendaylight.nemo.intent;\r
10 \r
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;\r
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.common.rev151010.UserId;\r
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.nemo.intent.rev151010.user.intent.objects.Flow;\r
14 import org.slf4j.Logger;\r
15 import org.slf4j.LoggerFactory;\r
16 \r
17 /**\r
18  * Maintain the information of the user's flows. For example, query\r
19  * the values of the properties of the flow, such as the path of the\r
20  * flow, and store them into the data store.\r
21  *\r
22  * @author Zhigang Ji\r
23  */\r
24 public class FlowManager {\r
25     private static final Logger LOG = LoggerFactory.getLogger(FlowManager.class);\r
26 \r
27     private final DataBroker dataBroker;\r
28 \r
29     public FlowManager(DataBroker dataBroker) {\r
30         super();\r
31 \r
32         this.dataBroker = dataBroker;\r
33 \r
34         LOG.debug("Initialized the renderer common flow manager.");\r
35 \r
36         return;\r
37     }\r
38 \r
39     /**\r
40      * Query the values of the properties of the flow, which are read-only\r
41      * for the user, and store them into the data store.\r
42      *\r
43      * @param userId The user id for the flow.\r
44      * @param flow The flow to be resolved.\r
45      */\r
46     protected void resolveFlow(UserId userId, Flow flow) throws IntentResolutionException {\r
47         // TODO\r
48 \r
49         return;\r
50     }\r
51 }\r