test_class.declarator: controller
test_class.modifier: private
test_class.original_string: private Controller controller;
test_class.type: Controller
test_class.var_name: controller
test_class.declarator: roleManager
test_class.modifier: private
test_class.original_string: private RoleManager roleManager;
test_class.type: RoleManager
test_class.var_name: roleManager
test_class.file: src/agents/apps/floodlight/floodlight-1.0/src/test/java/net/floodlightcontroller/core/internal/RoleManagerTest.java
test_class.identifier: RoleManagerTest
test_class.superclass: extends FloodlightTestCase
test_case.body: @Test
      public void testSetRoleStandbyToActive() throws Exception {
          doSetUp(HARole.STANDBY);
  
          this.setRoleAndMockController(HARole.ACTIVE);
  
          assertTrue(roleManager.getRole() == HARole.ACTIVE);
  
      }
test_case.class_method_signature: RoleManagerTest.testSetRoleStandbyToActive()
test_case.full_signature: @Test public void testSetRoleStandbyToActive()
test_case.identifier: testSetRoleStandbyToActive
test_case.invocations: doSetUp setRoleAndMockController assertTrue getRole
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetRoleStandbyToActive()
focal_class.declarator: currentRoleInfo
focal_class.modifier: private volatile
focal_class.original_string: private volatile RoleInfo currentRoleInfo;
focal_class.type: RoleInfo
focal_class.var_name: currentRoleInfo
focal_class.declarator: controller
focal_class.modifier: private final
focal_class.original_string: private final Controller controller;
focal_class.type: Controller
focal_class.var_name: controller
focal_class.declarator: shutdownService
focal_class.modifier: private final
focal_class.original_string: private final IShutdownService shutdownService;
focal_class.type: IShutdownService
focal_class.var_name: shutdownService
focal_class.declarator: counters
focal_class.modifier: private final
focal_class.original_string: private final RoleManagerCounters counters;
focal_class.type: RoleManagerCounters
focal_class.var_name: counters
focal_class.declarator: log =
              LoggerFactory.getLogger(RoleManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log =
              LoggerFactory.getLogger(RoleManager.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: src/agents/apps/floodlight/floodlight-1.0/src/main/java/net/floodlightcontroller/core/internal/RoleManager.java
focal_class.identifier: RoleManager
focal_class.class_method_signature: RoleManager.RoleManager(@Nonnull Controller controller,
              @Nonnull IShutdownService shutdownService,
              @Nonnull HARole role,
              @Nonnull String roleChangeDescription)
focal_class.full_signature: public  RoleManager(@Nonnull Controller controller,
              @Nonnull IShutdownService shutdownService,
              @Nonnull HARole role,
              @Nonnull String roleChangeDescription)
focal_class.identifier: RoleManager
focal_class.modifiers: public
focal_class.parameters: (@Nonnull Controller controller,
              @Nonnull IShutdownService shutdownService,
              @Nonnull HARole role,
              @Nonnull String roleChangeDescription)
focal_class.signature:  RoleManager(@Nonnull Controller controller,
              @Nonnull IShutdownService shutdownService,
              @Nonnull HARole role,
              @Nonnull String roleChangeDescription)
focal_class.class_method_signature: RoleManager.reassertRole(OFSwitchHandshakeHandler ofSwitchHandshakeHandler, HARole role)
focal_class.full_signature: public synchronized void reassertRole(OFSwitchHandshakeHandler ofSwitchHandshakeHandler, HARole role)
focal_class.identifier: reassertRole
focal_class.modifiers: public synchronized
focal_class.parameters: (OFSwitchHandshakeHandler ofSwitchHandshakeHandler, HARole role)
focal_class.return: void
focal_class.signature: void reassertRole(OFSwitchHandshakeHandler ofSwitchHandshakeHandler, HARole role)
focal_class.class_method_signature: RoleManager.setRole(@Nonnull HARole role, @Nonnull String roleChangeDescription)
focal_class.full_signature: public synchronized void setRole(@Nonnull HARole role, @Nonnull String roleChangeDescription)
focal_class.identifier: setRole
focal_class.modifiers: public synchronized
focal_class.parameters: (@Nonnull HARole role, @Nonnull String roleChangeDescription)
focal_class.return: void
focal_class.signature: void setRole(@Nonnull HARole role, @Nonnull String roleChangeDescription)
focal_class.class_method_signature: RoleManager.getRole()
focal_class.full_signature: @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()
focal_class.identifier: getRole
focal_class.modifiers: @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
focal_class.parameters: ()
focal_class.return: HARole
focal_class.signature: HARole getRole()
focal_class.class_method_signature: RoleManager.getOFControllerRole()
focal_class.full_signature: public synchronized OFControllerRole getOFControllerRole()
focal_class.identifier: getOFControllerRole
focal_class.modifiers: public synchronized
focal_class.parameters: ()
focal_class.return: OFControllerRole
focal_class.signature: OFControllerRole getOFControllerRole()
focal_class.class_method_signature: RoleManager.getRoleInfo()
focal_class.full_signature: public RoleInfo getRoleInfo()
focal_class.identifier: getRoleInfo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RoleInfo
focal_class.signature: RoleInfo getRoleInfo()
focal_class.class_method_signature: RoleManager.attemptActiveTransition()
focal_class.full_signature: private void attemptActiveTransition()
focal_class.identifier: attemptActiveTransition
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void attemptActiveTransition()
focal_class.class_method_signature: RoleManager.switchesHaveAnotherMaster()
focal_class.full_signature: private boolean switchesHaveAnotherMaster()
focal_class.identifier: switchesHaveAnotherMaster
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean switchesHaveAnotherMaster()
focal_class.class_method_signature: RoleManager.notifyControllerConnectionUpdate()
focal_class.full_signature: public void notifyControllerConnectionUpdate()
focal_class.identifier: notifyControllerConnectionUpdate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyControllerConnectionUpdate()
focal_class.class_method_signature: RoleManager.getCounters()
focal_class.full_signature: public RoleManagerCounters getCounters()
focal_class.identifier: getCounters
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RoleManagerCounters
focal_class.signature: RoleManagerCounters getCounters()
focal_method.body: @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();
      }
focal_method.class_method_signature: RoleManager.getRole()
focal_method.full_signature: @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()
focal_method.identifier: getRole
focal_method.invocations: getRole
focal_method.modifiers: @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
focal_method.parameters: ()
focal_method.return: HARole
focal_method.signature: HARole getRole()