2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.applications.frm;
11 import org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.meters.Meter;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.Table;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.SalGroupService;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.SalMeterService;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.SalTableService;
21 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
24 * forwardingrules-manager
25 * org.opendaylight.openflowplugin.applications.frm
27 * ForwardingRulesManager
28 * It represent a central point for whole modul. Implementation
29 * Flow Provider registers the link FlowChangeListener} and it holds all needed
30 * services for link FlowChangeListener}.
32 * @author <a href="mailto:vdemcak@cisco.com">Vaclav Demcak</a>
34 * Created: Aug 25, 2014
36 public interface ForwardingRulesManager extends AutoCloseable {
41 * Method returns information :
42 * "is Node with send InstanceIdentifier connected"?
44 * @param ident - the key of the node
45 * @return boolean - true if device is connected
47 public boolean isNodeActive(InstanceIdentifier<FlowCapableNode> ident);
50 * Method add new {@link FlowCapableNode} to active Node Holder.
51 * ActiveNodeHolder prevent unnecessary Operational/DS read for identify
52 * pre-configure and serious Configure/DS transactions.
54 * @param ident - the key of the node
56 public void registrateNewNode(InstanceIdentifier<FlowCapableNode> ident);
59 * Method remove disconnected {@link FlowCapableNode} from active Node
60 * Holder. And all next flows or groups or meters will stay in Config/DS
63 * @param ident - the key of the node
65 public void unregistrateNode(InstanceIdentifier<FlowCapableNode> ident);
68 * Method returns generated transaction ID, which is unique for
69 * every transaction. ID is composite from prefix ("DOM") and unique number.
71 * @return String transactionID for RPC transaction identification
73 public String getNewTransactionId();
76 * Method returns Read Transacion. It is need for Node reconciliation only.
78 * @return ReadOnlyTransaction
80 public ReadOnlyTransaction getReadTranaction();
87 public SalFlowService getSalFlowService();
94 public SalGroupService getSalGroupService();
101 public SalMeterService getSalMeterService();
108 public SalTableService getSalTableService();
111 * Content definition method and prevent code duplicity in Reconcil
112 * @return ForwardingRulesCommiter<Flow>
114 public ForwardingRulesCommiter<Flow> getFlowCommiter();
117 * Content definition method and prevent code duplicity in Reconcil
118 * @return ForwardingRulesCommiter<Group>
120 public ForwardingRulesCommiter<Group> getGroupCommiter();
123 * Content definition method and prevent code duplicity
124 * @return ForwardingRulesCommiter<Meter>
126 public ForwardingRulesCommiter<Meter> getMeterCommiter();
129 * Content definition method and prevent code duplicity
130 * @return ForwardingRulesCommiter<Table>
132 public ForwardingRulesCommiter<Table> getTableCommiter();
135 * Content definition method
136 * @return FlowNodeReconciliation
138 public FlowNodeReconciliation getFlowNodeReconciliation();