Ray Milkey
Committed by Gerrit Code Review

Refactoring of utility methods

- removed unused API to fetch IP addresses
- renamed system health API to match other APIs

Change-Id: I16f9a1e6e40fd93fb5c0444ab826e2c8738c14ed
...@@ -114,23 +114,6 @@ public class Controller { ...@@ -114,23 +114,6 @@ public class Controller {
114 return FACTORY13; 114 return FACTORY13;
115 } 115 }
116 116
117 -
118 - public Map<String, String> getControllerNodeIPs() {
119 - // We return a copy of the mapping so we can guarantee that
120 - // the mapping return is the same as one that will be (or was)
121 - // dispatched to IHAListeners
122 - HashMap<String, String> retval = new HashMap<>();
123 - synchronized (controllerNodeIPsCache) {
124 - retval.putAll(controllerNodeIPsCache);
125 - }
126 - return retval;
127 - }
128 -
129 -
130 - public long getSystemStartTime() {
131 - return (this.systemStartTime);
132 - }
133 -
134 // ************** 117 // **************
135 // Initialization 118 // Initialization
136 // ************** 119 // **************
...@@ -281,11 +264,15 @@ public class Controller { ...@@ -281,11 +264,15 @@ public class Controller {
281 } 264 }
282 265
283 266
284 - public Long getUptime() { 267 + public Long getSystemUptime() {
285 RuntimeMXBean rb = ManagementFactory.getRuntimeMXBean(); 268 RuntimeMXBean rb = ManagementFactory.getRuntimeMXBean();
286 return rb.getUptime(); 269 return rb.getUptime();
287 } 270 }
288 271
272 + public long getSystemStartTime() {
273 + return (this.systemStartTime);
274 + }
275 +
289 /** 276 /**
290 * Forward to the driver-manager to get an IOFSwitch instance. 277 * Forward to the driver-manager to get an IOFSwitch instance.
291 * 278 *
......