commit | 1e68bdd9be028c6c147cf22bf23fda59b4b51637 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@onlab.us> | Sat Nov 29 13:53:10 2014 -0800 |
committer | Thomas Vachuska <tom@onlab.us> | Sat Nov 29 13:53:10 2014 -0800 |
tree | 15e3dc2621bd7b59a78d02c4ba70b6d1ecf953f3 | |
parent | 6e18fe39c74636cb62ddc45c28d46d9582ae8056 [diff] [blame] |
Added ability to force mastership re-balancing between instances from the GUI. Change-Id: I98e56deb3e2b00df630ed85b596c8e35b3d6efab
diff --git a/core/api/src/main/java/org/onlab/onos/mastership/MastershipAdminService.java b/core/api/src/main/java/org/onlab/onos/mastership/MastershipAdminService.java index f2fd8f4..cb3869d 100644 --- a/core/api/src/main/java/org/onlab/onos/mastership/MastershipAdminService.java +++ b/core/api/src/main/java/org/onlab/onos/mastership/MastershipAdminService.java
@@ -33,4 +33,10 @@ */ void setRole(NodeId instance, DeviceId deviceId, MastershipRole role); + /** + * Balances the mastership to be shared as evenly as possibly by all + * online instances. + */ + void balanceRoles(); + }