Committed by
Gerrit Code Review
Fix incorrect class and method description for PortStatsCollector
Change-Id: I6d16597fed207c2ddfd0fb14848b346d216c6965
Showing
1 changed file
with
7 additions
and
4 deletions
| ... | @@ -31,8 +31,8 @@ import java.util.concurrent.atomic.AtomicLong; | ... | @@ -31,8 +31,8 @@ import java.util.concurrent.atomic.AtomicLong; |
| 31 | 31 | ||
| 32 | import static org.slf4j.LoggerFactory.getLogger; | 32 | import static org.slf4j.LoggerFactory.getLogger; |
| 33 | 33 | ||
| 34 | -/* | 34 | +/** |
| 35 | - * Sends Group Stats Request and collect the group statistics with a time interval. | 35 | + * Sends Port Stats Request and collect the port statistics with a time interval. |
| 36 | */ | 36 | */ |
| 37 | public class PortStatsCollector implements TimerTask { | 37 | public class PortStatsCollector implements TimerTask { |
| 38 | 38 | ||
| ... | @@ -48,10 +48,10 @@ public class PortStatsCollector implements TimerTask { | ... | @@ -48,10 +48,10 @@ public class PortStatsCollector implements TimerTask { |
| 48 | private volatile boolean stopped; | 48 | private volatile boolean stopped; |
| 49 | 49 | ||
| 50 | /** | 50 | /** |
| 51 | - * Creates a GroupStatsCollector object. | 51 | + * Creates a PortStatsCollector object. |
| 52 | * | 52 | * |
| 53 | * @param sw Open Flow switch | 53 | * @param sw Open Flow switch |
| 54 | - * @param interval time interval for collecting group statistic | 54 | + * @param interval time interval for collecting port statistic |
| 55 | */ | 55 | */ |
| 56 | public PortStatsCollector(OpenFlowSwitch sw, int interval) { | 56 | public PortStatsCollector(OpenFlowSwitch sw, int interval) { |
| 57 | this.sw = sw; | 57 | this.sw = sw; |
| ... | @@ -81,6 +81,9 @@ public class PortStatsCollector implements TimerTask { | ... | @@ -81,6 +81,9 @@ public class PortStatsCollector implements TimerTask { |
| 81 | // timer.scheduleAtFixedRate(task, pollInterval * SECONDS, pollInterval * 1000); | 81 | // timer.scheduleAtFixedRate(task, pollInterval * SECONDS, pollInterval * 1000); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | + /** | ||
| 85 | + * Sends port statistic request to switch. | ||
| 86 | + */ | ||
| 84 | private void sendPortStatistic() { | 87 | private void sendPortStatistic() { |
| 85 | if (sw.getRole() != RoleState.MASTER) { | 88 | if (sw.getRole() != RoleState.MASTER) { |
| 86 | return; | 89 | return; | ... | ... |
-
Please register or login to post a comment