@Test public void testSetRoleStandbyToActive() throws Exception { doSetUp(HARole.STANDBY); this.setRoleAndMockController(HARole.ACTIVE); assertTrue(roleManager.getRole() == HARole.ACTIVE); }
@SuppressFBWarnings(value="UG_SYNC_SET_UNSYNC_GET", justification = "setter is synchronized for mutual exclusion, " + "currentRoleInfo is volatile, so no sync on getter needed") public synchronized HARole getRole() { return currentRoleInfo.getRole(); }
RoleManager { @SuppressFBWarnings(value="UG_SYNC_SET_UNSYNC_GET", justification = "setter is synchronized for mutual exclusion, " + "currentRoleInfo is volatile, so no sync on getter needed") public synchronized HARole getRole() { return currentRoleInfo.getRole(); } }
RoleManager { @SuppressFBWarnings(value="UG_SYNC_SET_UNSYNC_GET", justification = "setter is synchronized for mutual exclusion, " + "currentRoleInfo is volatile, so no sync on getter needed") public synchronized HARole getRole() { return currentRoleInfo.getRole(); } RoleManager(@Nonnull Controller controller,
            @Nonnull IShutdownService shutdownService,
            @Nonnull HARole role,
            @Nonnull String roleChangeDescription); }
RoleManager { @SuppressFBWarnings(value="UG_SYNC_SET_UNSYNC_GET", justification = "setter is synchronized for mutual exclusion, " + "currentRoleInfo is volatile, so no sync on getter needed") public synchronized HARole getRole() { return currentRoleInfo.getRole(); } RoleManager(@Nonnull Controller controller,
            @Nonnull IShutdownService shutdownService,
            @Nonnull HARole role,
            @Nonnull String roleChangeDescription); synchronized void reassertRole(OFSwitchHandshakeHandler ofSwitchHandshakeHandler, HARole role); synchronized void setRole(@Nonnull HARole role, @Nonnull String roleChangeDescription); @SuppressFBWarnings(value="UG_SYNC_SET_UNSYNC_GET", justification = "setter is synchronized for mutual exclusion, " + "currentRoleInfo is volatile, so no sync on getter needed") synchronized HARole getRole(); synchronized OFControllerRole getOFControllerRole(); RoleInfo getRoleInfo(); void notifyControllerConnectionUpdate(); RoleManagerCounters getCounters(); }
RoleManager { @SuppressFBWarnings(value="UG_SYNC_SET_UNSYNC_GET", justification = "setter is synchronized for mutual exclusion, " + "currentRoleInfo is volatile, so no sync on getter needed") public synchronized HARole getRole() { return currentRoleInfo.getRole(); } RoleManager(@Nonnull Controller controller,
            @Nonnull IShutdownService shutdownService,
            @Nonnull HARole role,
            @Nonnull String roleChangeDescription); synchronized void reassertRole(OFSwitchHandshakeHandler ofSwitchHandshakeHandler, HARole role); synchronized void setRole(@Nonnull HARole role, @Nonnull String roleChangeDescription); @SuppressFBWarnings(value="UG_SYNC_SET_UNSYNC_GET", justification = "setter is synchronized for mutual exclusion, " + "currentRoleInfo is volatile, so no sync on getter needed") synchronized HARole getRole(); synchronized OFControllerRole getOFControllerRole(); RoleInfo getRoleInfo(); void notifyControllerConnectionUpdate(); RoleManagerCounters getCounters();  }