2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
\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
9 package org.opendaylight.nemo.intent;
\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
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
22 * @author Zhigang Ji
\r
24 public class FlowManager {
\r
25 private static final Logger LOG = LoggerFactory.getLogger(FlowManager.class);
\r
27 private final DataBroker dataBroker;
\r
29 public FlowManager(DataBroker dataBroker) {
\r
32 this.dataBroker = dataBroker;
\r
34 LOG.debug("Initialized the renderer common flow manager.");
\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
43 * @param userId The user id for the flow.
\r
44 * @param flow The flow to be resolved.
\r
46 protected void resolveFlow(UserId userId, Flow flow) throws IntentResolutionException {
\r