Simon Hunt
Committed by Gerrit Code Review

Fixed capitalization of "portStatsPollFrequency" property.

 - all other properties defined in core ONOS start with lowercase letter.

Change-Id: Ia2750bef205196a621e9a37dedf2379a9de17342
...@@ -148,8 +148,9 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr ...@@ -148,8 +148,9 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr
148 148
149 private final InternalDeviceProvider listener = new InternalDeviceProvider(); 149 private final InternalDeviceProvider listener = new InternalDeviceProvider();
150 150
151 - static final int POLL_INTERVAL = 5; 151 + private static final String POLL_PROP_NAME = "portStatsPollFrequency";
152 - @Property(name = "PortStatsPollFrequency", intValue = POLL_INTERVAL, 152 + private static final int POLL_INTERVAL = 5;
153 + @Property(name = POLL_PROP_NAME, intValue = POLL_INTERVAL,
153 label = "Frequency (in seconds) for polling switch Port statistics") 154 label = "Frequency (in seconds) for polling switch Port statistics")
154 private int portStatsPollFrequency = POLL_INTERVAL; 155 private int portStatsPollFrequency = POLL_INTERVAL;
155 156
...@@ -190,7 +191,7 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr ...@@ -190,7 +191,7 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr
190 Dictionary<?, ?> properties = context.getProperties(); 191 Dictionary<?, ?> properties = context.getProperties();
191 int newPortStatsPollFrequency; 192 int newPortStatsPollFrequency;
192 try { 193 try {
193 - String s = get(properties, "PortStatsPollFrequency"); 194 + String s = get(properties, POLL_PROP_NAME);
194 newPortStatsPollFrequency = isNullOrEmpty(s) ? portStatsPollFrequency : Integer.parseInt(s.trim()); 195 newPortStatsPollFrequency = isNullOrEmpty(s) ? portStatsPollFrequency : Integer.parseInt(s.trim());
195 196
196 } catch (NumberFormatException | ClassCastException e) { 197 } catch (NumberFormatException | ClassCastException e) {
......