2 * Copyright IBM Corporation, 2013. 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
8 package org.opendaylight.controller.md.statistics.manager;
10 import java.util.HashMap;
11 import java.util.List;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.aggregate.flow.statistics.AggregateFlowStatistics;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.statistics.rev131111.group.features.GroupFeatures;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.desc.stats.reply.GroupDescStats;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.statistics.reply.GroupStats;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.nodes.node.MeterFeatures;
21 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.config.stats.reply.MeterConfigStats;
22 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.types.rev130918.meter.statistics.reply.MeterStats;
23 import org.opendaylight.yang.gen.v1.urn.opendaylight.model.statistics.types.rev130925.GenericStatistics;
25 public class NodeStatistics {
27 private NodeRef targetNode;
29 private List<GroupStats> groupStatistics;
31 private List<MeterStats> meterStatistics;
33 private List<GroupDescStats> groupDescStats;
35 private List<MeterConfigStats> meterConfigStats;
37 private GroupFeatures groupFeatures;
39 private MeterFeatures meterFeatures;
41 private final Map<Short,Map<Flow,GenericStatistics>> flowAndStatsMap=
42 new HashMap<Short,Map<Flow,GenericStatistics>>();
44 private final Map<Short,AggregateFlowStatistics> tableAndAggregateFlowStatsMap =
45 new HashMap<Short,AggregateFlowStatistics>();
47 public NodeStatistics(){}
49 public NodeRef getTargetNode() {
53 public void setTargetNode(NodeRef targetNode) {
54 this.targetNode = targetNode;
57 public List<GroupStats> getGroupStatistics() {
58 return groupStatistics;
61 public void setGroupStatistics(List<GroupStats> groupStatistics) {
62 this.groupStatistics = groupStatistics;
65 public List<MeterStats> getMeterStatistics() {
66 return meterStatistics;
69 public void setMeterStatistics(List<MeterStats> meterStatistics) {
70 this.meterStatistics = meterStatistics;
73 public List<GroupDescStats> getGroupDescStats() {
74 return groupDescStats;
77 public void setGroupDescStats(List<GroupDescStats> groupDescStats) {
78 this.groupDescStats = groupDescStats;
81 public List<MeterConfigStats> getMeterConfigStats() {
82 return meterConfigStats;
85 public void setMeterConfigStats(List<MeterConfigStats> meterConfigStats) {
86 this.meterConfigStats = meterConfigStats;
89 public GroupFeatures getGroupFeatures() {
93 public void setGroupFeatures(GroupFeatures groupFeatures) {
94 this.groupFeatures = groupFeatures;
97 public MeterFeatures getMeterFeatures() {
101 public void setMeterFeatures(MeterFeatures meterFeatures) {
102 this.meterFeatures = meterFeatures;
105 public Map<Short,Map<Flow,GenericStatistics>> getFlowAndStatsMap() {
106 return flowAndStatsMap;
109 public Map<Short, AggregateFlowStatistics> getTableAndAggregateFlowStatsMap() {
110 return tableAndAggregateFlowStatsMap;