3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.sal.reader;
12 import java.util.List;
14 import org.opendaylight.controller.sal.core.Node;
15 import org.opendaylight.controller.sal.core.NodeConnector;
16 import org.opendaylight.controller.sal.flowprogrammer.Flow;
19 * @file IPluginInReadService.java
21 * @brief Hardware view interface to be implemented by protocol plugins
26 public interface IPluginInReadService {
29 * Returns the hardware image for the specified flow on the specified network node
34 public FlowOnNode readFlow(Node node, Flow flow, boolean cached);
37 * Returns the hardware view of all the flow installed on the specified network node
41 public List<FlowOnNode> readAllFlow(Node node, boolean cached);
44 * Returns the description of the network node as provided by the node itself
48 public NodeDescription readDescription(Node node, boolean cached);
51 * Returns the hardware view of the specified network node connector
55 public NodeConnectorStatistics readNodeConnector(NodeConnector connector,
59 * Returns the hardware info for all the node connectors on the specified network node
63 public List<NodeConnectorStatistics> readAllNodeConnector(Node node,
67 * Returns the averaged transmit rate for the specified node connector
69 * @return tx rate [bps]
71 public long getTransmitRate(NodeConnector connector);