MD-SAL Statistics Manager - Adding support for individual flow stats
[controller.git] / opendaylight / md-sal / statistics-manager / src / main / java / org / opendaylight / controller / md / statistics / manager / NodeStatistics.java
1 /*
2  * Copyright IBM Corporation, 2013.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.md.statistics.manager;
9
10 import java.util.HashMap;
11 import java.util.List;
12 import java.util.Map;
13
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;
24
25 public class NodeStatistics {
26
27     private NodeRef targetNode;
28     
29     private List<GroupStats> groupStatistics;
30     
31     private List<MeterStats> meterStatistics;
32     
33     private List<GroupDescStats> groupDescStats;
34     
35     private List<MeterConfigStats> meterConfigStats;
36     
37     private GroupFeatures groupFeatures;
38     
39     private MeterFeatures meterFeatures;
40     
41     private final Map<Short,Map<Flow,GenericStatistics>> flowAndStatsMap= 
42             new HashMap<Short,Map<Flow,GenericStatistics>>();
43     
44     private final Map<Short,AggregateFlowStatistics> tableAndAggregateFlowStatsMap = 
45             new HashMap<Short,AggregateFlowStatistics>();
46     
47     public NodeStatistics(){}     
48     
49     public NodeRef getTargetNode() {
50         return targetNode;
51     }
52
53     public void setTargetNode(NodeRef targetNode) {
54         this.targetNode = targetNode;
55     }
56
57     public List<GroupStats> getGroupStatistics() {
58         return groupStatistics;
59     }
60
61     public void setGroupStatistics(List<GroupStats> groupStatistics) {
62         this.groupStatistics = groupStatistics;
63     }
64
65     public List<MeterStats> getMeterStatistics() {
66         return meterStatistics;
67     }
68
69     public void setMeterStatistics(List<MeterStats> meterStatistics) {
70         this.meterStatistics = meterStatistics;
71     }
72
73     public List<GroupDescStats> getGroupDescStats() {
74         return groupDescStats;
75     }
76
77     public void setGroupDescStats(List<GroupDescStats> groupDescStats) {
78         this.groupDescStats = groupDescStats;
79     }
80
81     public List<MeterConfigStats> getMeterConfigStats() {
82         return meterConfigStats;
83     }
84
85     public void setMeterConfigStats(List<MeterConfigStats> meterConfigStats) {
86         this.meterConfigStats = meterConfigStats;
87     }
88
89     public GroupFeatures getGroupFeatures() {
90         return groupFeatures;
91     }
92
93     public void setGroupFeatures(GroupFeatures groupFeatures) {
94         this.groupFeatures = groupFeatures;
95     }
96
97     public MeterFeatures getMeterFeatures() {
98         return meterFeatures;
99     }
100
101     public void setMeterFeatures(MeterFeatures meterFeatures) {
102         this.meterFeatures = meterFeatures;
103     }
104
105     public Map<Short,Map<Flow,GenericStatistics>> getFlowAndStatsMap() {
106         return flowAndStatsMap;
107     }
108
109     public Map<Short, AggregateFlowStatistics> getTableAndAggregateFlowStatsMap() {
110         return tableAndAggregateFlowStatsMap;
111     }
112     
113 }