test_class.declarator: switch1
test_class.original_string: OpenFlowSwitch switch1;
test_class.type: OpenFlowSwitch
test_class.var_name: switch1
test_class.declarator: dpid1
test_class.original_string: Dpid dpid1;
test_class.type: Dpid
test_class.var_name: dpid1
test_class.declarator: switch2
test_class.original_string: OpenFlowSwitch switch2;
test_class.type: OpenFlowSwitch
test_class.var_name: switch2
test_class.declarator: dpid2
test_class.original_string: Dpid dpid2;
test_class.type: Dpid
test_class.var_name: dpid2
test_class.declarator: switch3
test_class.original_string: OpenFlowSwitch switch3;
test_class.type: OpenFlowSwitch
test_class.var_name: switch3
test_class.declarator: dpid3
test_class.original_string: Dpid dpid3;
test_class.type: Dpid
test_class.var_name: dpid3
test_class.declarator: controller
test_class.original_string: OpenFlowControllerImpl controller;
test_class.type: OpenFlowControllerImpl
test_class.var_name: controller
test_class.declarator: agent
test_class.original_string: OpenFlowControllerImpl.OpenFlowSwitchAgent agent;
test_class.type: OpenFlowControllerImpl.OpenFlowSwitchAgent
test_class.var_name: agent
test_class.declarator: switchListener
test_class.original_string: TestSwitchListener switchListener;
test_class.type: TestSwitchListener
test_class.var_name: switchListener
test_class.file: protocols/openflow/ctl/src/test/java/org/onosproject/openflow/controller/impl/OpenFlowControllerImplTest.java
test_class.identifier: OpenFlowControllerImplTest
test_case.body: @Test
      public void testRoleSetting() {
          agent.addConnectedSwitch(dpid2, switch2);
  
          // check that state can be changed for a connected switch
          assertThat(switch2.getRole(), is(RoleState.MASTER));
          controller.setRole(dpid2, RoleState.EQUAL);
          assertThat(switch2.getRole(), is(RoleState.EQUAL));
  
          // check that changing state on an unconnected switch does not crash
          controller.setRole(dpid3, RoleState.SLAVE);
      }
test_case.class_method_signature: OpenFlowControllerImplTest.testRoleSetting()
test_case.full_signature: @Test public void testRoleSetting()
test_case.identifier: testRoleSetting
test_case.invocations: addConnectedSwitch assertThat getRole is setRole assertThat getRole is setRole
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRoleSetting()
focal_class.declarator: APP_ID = "org.onosproject.openflow-base"
focal_class.modifier: private static final
focal_class.original_string: private static final String APP_ID = "org.onosproject.openflow-base";
focal_class.type: String
focal_class.var_name: APP_ID
focal_class.declarator: DEFAULT_OFPORT = "6633,6653"
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_OFPORT = "6633,6653";
focal_class.type: String
focal_class.var_name: DEFAULT_OFPORT
focal_class.declarator: DEFAULT_WORKER_THREADS = 16
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_WORKER_THREADS = 16;
focal_class.type: int
focal_class.var_name: DEFAULT_WORKER_THREADS
focal_class.declarator: log =
              LoggerFactory.getLogger(OpenFlowControllerImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log =
              LoggerFactory.getLogger(OpenFlowControllerImpl.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: coreService
focal_class.modifier: @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
      protected
focal_class.original_string: @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
      protected CoreService coreService;
focal_class.type: CoreService
focal_class.var_name: coreService
focal_class.declarator: driverService
focal_class.modifier: @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
      protected
focal_class.original_string: @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
      protected DriverService driverService;
focal_class.type: DriverService
focal_class.var_name: driverService
focal_class.declarator: defaultDriverProviderService
focal_class.modifier: @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
      protected
focal_class.original_string: @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
      protected DefaultDriverProviderService defaultDriverProviderService;
focal_class.type: DefaultDriverProviderService
focal_class.var_name: defaultDriverProviderService
focal_class.declarator: cfgService
focal_class.modifier: @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
      protected
focal_class.original_string: @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
      protected ComponentConfigService cfgService;
focal_class.type: ComponentConfigService
focal_class.var_name: cfgService
focal_class.declarator: openflowPorts = DEFAULT_OFPORT
focal_class.modifier: @Property(name = "openflowPorts", value = DEFAULT_OFPORT,
              label = "Port numbers (comma separated) used by OpenFlow protocol; default is 6633,6653")
      private
focal_class.original_string: @Property(name = "openflowPorts", value = DEFAULT_OFPORT,
              label = "Port numbers (comma separated) used by OpenFlow protocol; default is 6633,6653")
      private String openflowPorts = DEFAULT_OFPORT;
focal_class.type: String
focal_class.var_name: openflowPorts
focal_class.declarator: workerThreads = DEFAULT_WORKER_THREADS
focal_class.modifier: @Property(name = "workerThreads", intValue = DEFAULT_WORKER_THREADS,
              label = "Number of controller worker threads; default is 16")
      private
focal_class.original_string: @Property(name = "workerThreads", intValue = DEFAULT_WORKER_THREADS,
              label = "Number of controller worker threads; default is 16")
      private int workerThreads = DEFAULT_WORKER_THREADS;
focal_class.type: int
focal_class.var_name: workerThreads
focal_class.declarator: executorMsgs =
              Executors.newFixedThreadPool(32, groupedThreads("onos/of", "event-stats-%d", log))
focal_class.modifier: protected
focal_class.original_string: protected ExecutorService executorMsgs =
              Executors.newFixedThreadPool(32, groupedThreads("onos/of", "event-stats-%d", log));
focal_class.type: ExecutorService
focal_class.var_name: executorMsgs
focal_class.declarator: executorBarrier =
              Executors.newFixedThreadPool(4, groupedThreads("onos/of", "event-barrier-%d", log))
focal_class.modifier: private final
focal_class.original_string: private final ExecutorService executorBarrier =
              Executors.newFixedThreadPool(4, groupedThreads("onos/of", "event-barrier-%d", log));
focal_class.type: ExecutorService
focal_class.var_name: executorBarrier
focal_class.declarator: connectedSwitches =
              new ConcurrentHashMap<>()
focal_class.modifier: protected
focal_class.original_string: protected ConcurrentMap<Dpid, OpenFlowSwitch> connectedSwitches =
              new ConcurrentHashMap<>();
focal_class.type: ConcurrentMap<Dpid, OpenFlowSwitch>
focal_class.var_name: connectedSwitches
focal_class.declarator: activeMasterSwitches =
              new ConcurrentHashMap<>()
focal_class.modifier: protected
focal_class.original_string: protected ConcurrentMap<Dpid, OpenFlowSwitch> activeMasterSwitches =
              new ConcurrentHashMap<>();
focal_class.type: ConcurrentMap<Dpid, OpenFlowSwitch>
focal_class.var_name: activeMasterSwitches
focal_class.declarator: activeEqualSwitches =
              new ConcurrentHashMap<>()
focal_class.modifier: protected
focal_class.original_string: protected ConcurrentMap<Dpid, OpenFlowSwitch> activeEqualSwitches =
              new ConcurrentHashMap<>();
focal_class.type: ConcurrentMap<Dpid, OpenFlowSwitch>
focal_class.var_name: activeEqualSwitches
focal_class.declarator: agent = new OpenFlowSwitchAgent()
focal_class.modifier: protected
focal_class.original_string: protected OpenFlowSwitchAgent agent = new OpenFlowSwitchAgent();
focal_class.type: OpenFlowSwitchAgent
focal_class.var_name: agent
focal_class.declarator: ofSwitchListener = new CopyOnWriteArraySet<>()
focal_class.modifier: protected
focal_class.original_string: protected Set<OpenFlowSwitchListener> ofSwitchListener = new CopyOnWriteArraySet<>();
focal_class.type: Set<OpenFlowSwitchListener>
focal_class.var_name: ofSwitchListener
focal_class.declarator: ofPacketListener =
              ArrayListMultimap.create()
focal_class.modifier: protected
focal_class.original_string: protected Multimap<Integer, PacketListener> ofPacketListener =
              ArrayListMultimap.create();
focal_class.type: Multimap<Integer, PacketListener>
focal_class.var_name: ofPacketListener
focal_class.declarator: ofStatsListener
              = ArrayListMultimap.create()
focal_class.modifier: protected
focal_class.original_string: protected Multimap<Integer, OpenFlowStatisticsListener> ofStatsListener
              = ArrayListMultimap.create();
focal_class.type: Multimap<Integer, OpenFlowStatisticsListener>
focal_class.var_name: ofStatsListener
focal_class.declarator: ofAsyncListener
              = ArrayListMultimap.create()
focal_class.modifier: protected
focal_class.original_string: protected Multimap<Integer, OpenFlowAsynchronousEventListener> ofAsyncListener
              = ArrayListMultimap.create();
focal_class.type: Multimap<Integer, OpenFlowAsynchronousEventListener>
focal_class.var_name: ofAsyncListener
focal_class.declarator: executorFWMsgs =
              Executors.newFixedThreadPool(32, groupedThreads("onos/of", "event-framework-%d"))
focal_class.modifier: private final
focal_class.original_string: private final ExecutorService executorFWMsgs =
              Executors.newFixedThreadPool(32, groupedThreads("onos/of", "event-framework-%d"));
focal_class.type: ExecutorService
focal_class.var_name: executorFWMsgs
focal_class.declarator: ofEventListener = new CopyOnWriteArraySet<>()
focal_class.modifier: protected
focal_class.original_string: protected Set<OpenFlowEventListener> ofEventListener = new CopyOnWriteArraySet<>();
focal_class.type: Set<OpenFlowEventListener>
focal_class.var_name: ofEventListener
focal_class.declarator: ofMessageListener = new CopyOnWriteArraySet<>()
focal_class.modifier: protected
focal_class.original_string: protected Set<OpenFlowMessageListener> ofMessageListener = new CopyOnWriteArraySet<>();
focal_class.type: Set<OpenFlowMessageListener>
focal_class.var_name: ofMessageListener
focal_class.declarator: fullFlowStats =
              ArrayListMultimap.create()
focal_class.modifier: protected
focal_class.original_string: protected Multimap<Dpid, OFFlowStatsEntry> fullFlowStats =
              ArrayListMultimap.create();
focal_class.type: Multimap<Dpid, OFFlowStatsEntry>
focal_class.var_name: fullFlowStats
focal_class.declarator: fullTableStats =
              ArrayListMultimap.create()
focal_class.modifier: protected
focal_class.original_string: protected Multimap<Dpid, OFTableStatsEntry> fullTableStats =
              ArrayListMultimap.create();
focal_class.type: Multimap<Dpid, OFTableStatsEntry>
focal_class.var_name: fullTableStats
focal_class.declarator: fullGroupStats =
              ArrayListMultimap.create()
focal_class.modifier: protected
focal_class.original_string: protected Multimap<Dpid, OFGroupStatsEntry> fullGroupStats =
              ArrayListMultimap.create();
focal_class.type: Multimap<Dpid, OFGroupStatsEntry>
focal_class.var_name: fullGroupStats
focal_class.declarator: fullGroupDescStats =
              ArrayListMultimap.create()
focal_class.modifier: protected
focal_class.original_string: protected Multimap<Dpid, OFGroupDescStatsEntry> fullGroupDescStats =
              ArrayListMultimap.create();
focal_class.type: Multimap<Dpid, OFGroupDescStatsEntry>
focal_class.var_name: fullGroupDescStats
focal_class.declarator: fullPortStats =
              ArrayListMultimap.create()
focal_class.modifier: protected
focal_class.original_string: protected Multimap<Dpid, OFPortStatsEntry> fullPortStats =
              ArrayListMultimap.create();
focal_class.type: Multimap<Dpid, OFPortStatsEntry>
focal_class.var_name: fullPortStats
focal_class.declarator: ctrl = new Controller()
focal_class.modifier: private final
focal_class.original_string: private final Controller ctrl = new Controller();
focal_class.type: Controller
focal_class.var_name: ctrl
focal_class.declarator: packetIn
focal_class.modifier: public
focal_class.original_string: public long packetIn;
focal_class.type: long
focal_class.var_name: packetIn
focal_class.file: protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/OpenFlowControllerImpl.java
focal_class.identifier: OpenFlowControllerImpl
focal_class.interfaces: implements OpenFlowController
focal_class.class_method_signature: OpenFlowControllerImpl.activate(ComponentContext context)
focal_class.full_signature: @Activate public void activate(ComponentContext context)
focal_class.identifier: activate
focal_class.modifiers: @Activate public
focal_class.parameters: (ComponentContext context)
focal_class.return: void
focal_class.signature: void activate(ComponentContext context)
focal_class.class_method_signature: OpenFlowControllerImpl.cleanup()
focal_class.full_signature: private void cleanup()
focal_class.identifier: cleanup
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cleanup()
focal_class.class_method_signature: OpenFlowControllerImpl.deactivate()
focal_class.full_signature: @Deactivate public void deactivate()
focal_class.identifier: deactivate
focal_class.modifiers: @Deactivate public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deactivate()
focal_class.class_method_signature: OpenFlowControllerImpl.modified(ComponentContext context)
focal_class.full_signature: @Modified public void modified(ComponentContext context)
focal_class.identifier: modified
focal_class.modifiers: @Modified public
focal_class.parameters: (ComponentContext context)
focal_class.return: void
focal_class.signature: void modified(ComponentContext context)
focal_class.class_method_signature: OpenFlowControllerImpl.getSwitches()
focal_class.full_signature: @Override public Iterable<OpenFlowSwitch> getSwitches()
focal_class.identifier: getSwitches
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterable<OpenFlowSwitch>
focal_class.signature: Iterable<OpenFlowSwitch> getSwitches()
focal_class.class_method_signature: OpenFlowControllerImpl.getMasterSwitches()
focal_class.full_signature: @Override public Iterable<OpenFlowSwitch> getMasterSwitches()
focal_class.identifier: getMasterSwitches
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterable<OpenFlowSwitch>
focal_class.signature: Iterable<OpenFlowSwitch> getMasterSwitches()
focal_class.class_method_signature: OpenFlowControllerImpl.getEqualSwitches()
focal_class.full_signature: @Override public Iterable<OpenFlowSwitch> getEqualSwitches()
focal_class.identifier: getEqualSwitches
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterable<OpenFlowSwitch>
focal_class.signature: Iterable<OpenFlowSwitch> getEqualSwitches()
focal_class.class_method_signature: OpenFlowControllerImpl.getSwitch(Dpid dpid)
focal_class.full_signature: @Override public OpenFlowSwitch getSwitch(Dpid dpid)
focal_class.identifier: getSwitch
focal_class.modifiers: @Override public
focal_class.parameters: (Dpid dpid)
focal_class.return: OpenFlowSwitch
focal_class.signature: OpenFlowSwitch getSwitch(Dpid dpid)
focal_class.class_method_signature: OpenFlowControllerImpl.getMasterSwitch(Dpid dpid)
focal_class.full_signature: @Override public OpenFlowSwitch getMasterSwitch(Dpid dpid)
focal_class.identifier: getMasterSwitch
focal_class.modifiers: @Override public
focal_class.parameters: (Dpid dpid)
focal_class.return: OpenFlowSwitch
focal_class.signature: OpenFlowSwitch getMasterSwitch(Dpid dpid)
focal_class.class_method_signature: OpenFlowControllerImpl.getEqualSwitch(Dpid dpid)
focal_class.full_signature: @Override public OpenFlowSwitch getEqualSwitch(Dpid dpid)
focal_class.identifier: getEqualSwitch
focal_class.modifiers: @Override public
focal_class.parameters: (Dpid dpid)
focal_class.return: OpenFlowSwitch
focal_class.signature: OpenFlowSwitch getEqualSwitch(Dpid dpid)
focal_class.class_method_signature: OpenFlowControllerImpl.addListener(OpenFlowSwitchListener listener)
focal_class.full_signature: @Override public void addListener(OpenFlowSwitchListener listener)
focal_class.identifier: addListener
focal_class.modifiers: @Override public
focal_class.parameters: (OpenFlowSwitchListener listener)
focal_class.return: void
focal_class.signature: void addListener(OpenFlowSwitchListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.removeListener(OpenFlowSwitchListener listener)
focal_class.full_signature: @Override public void removeListener(OpenFlowSwitchListener listener)
focal_class.identifier: removeListener
focal_class.modifiers: @Override public
focal_class.parameters: (OpenFlowSwitchListener listener)
focal_class.return: void
focal_class.signature: void removeListener(OpenFlowSwitchListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.addMessageListener(OpenFlowMessageListener listener)
focal_class.full_signature: @Override public void addMessageListener(OpenFlowMessageListener listener)
focal_class.identifier: addMessageListener
focal_class.modifiers: @Override public
focal_class.parameters: (OpenFlowMessageListener listener)
focal_class.return: void
focal_class.signature: void addMessageListener(OpenFlowMessageListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.removeMessageListener(OpenFlowMessageListener listener)
focal_class.full_signature: @Override public void removeMessageListener(OpenFlowMessageListener listener)
focal_class.identifier: removeMessageListener
focal_class.modifiers: @Override public
focal_class.parameters: (OpenFlowMessageListener listener)
focal_class.return: void
focal_class.signature: void removeMessageListener(OpenFlowMessageListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.addPacketListener(int priority, PacketListener listener)
focal_class.full_signature: @Override public void addPacketListener(int priority, PacketListener listener)
focal_class.identifier: addPacketListener
focal_class.modifiers: @Override public
focal_class.parameters: (int priority, PacketListener listener)
focal_class.return: void
focal_class.signature: void addPacketListener(int priority, PacketListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.removePacketListener(PacketListener listener)
focal_class.full_signature: @Override public void removePacketListener(PacketListener listener)
focal_class.identifier: removePacketListener
focal_class.modifiers: @Override public
focal_class.parameters: (PacketListener listener)
focal_class.return: void
focal_class.signature: void removePacketListener(PacketListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.addEventListener(OpenFlowEventListener listener)
focal_class.full_signature: @Override public void addEventListener(OpenFlowEventListener listener)
focal_class.identifier: addEventListener
focal_class.modifiers: @Override public
focal_class.parameters: (OpenFlowEventListener listener)
focal_class.return: void
focal_class.signature: void addEventListener(OpenFlowEventListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.removeEventListener(OpenFlowEventListener listener)
focal_class.full_signature: @Override public void removeEventListener(OpenFlowEventListener listener)
focal_class.identifier: removeEventListener
focal_class.modifiers: @Override public
focal_class.parameters: (OpenFlowEventListener listener)
focal_class.return: void
focal_class.signature: void removeEventListener(OpenFlowEventListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.write(Dpid dpid, OFMessage msg)
focal_class.full_signature: @Override public void write(Dpid dpid, OFMessage msg)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (Dpid dpid, OFMessage msg)
focal_class.return: void
focal_class.signature: void write(Dpid dpid, OFMessage msg)
focal_class.class_method_signature: OpenFlowControllerImpl.processPacket(Dpid dpid, OFMessage msg)
focal_class.full_signature: @Override public void processPacket(Dpid dpid, OFMessage msg)
focal_class.identifier: processPacket
focal_class.modifiers: @Override public
focal_class.parameters: (Dpid dpid, OFMessage msg)
focal_class.return: void
focal_class.signature: void processPacket(Dpid dpid, OFMessage msg)
focal_class.class_method_signature: OpenFlowControllerImpl.publishFlowStats(Dpid dpid,
                                                                         OFFlowStatsReply reply)
focal_class.full_signature: private synchronized Collection<OFFlowStatsEntry> publishFlowStats(Dpid dpid,
                                                                         OFFlowStatsReply reply)
focal_class.identifier: publishFlowStats
focal_class.modifiers: private synchronized
focal_class.parameters: (Dpid dpid,
                                                                         OFFlowStatsReply reply)
focal_class.return: Collection<OFFlowStatsEntry>
focal_class.signature: Collection<OFFlowStatsEntry> publishFlowStats(Dpid dpid,
                                                                         OFFlowStatsReply reply)
focal_class.class_method_signature: OpenFlowControllerImpl.publishTableStats(Dpid dpid,
                                                                           OFTableStatsReply reply)
focal_class.full_signature: private synchronized Collection<OFTableStatsEntry> publishTableStats(Dpid dpid,
                                                                           OFTableStatsReply reply)
focal_class.identifier: publishTableStats
focal_class.modifiers: private synchronized
focal_class.parameters: (Dpid dpid,
                                                                           OFTableStatsReply reply)
focal_class.return: Collection<OFTableStatsEntry>
focal_class.signature: Collection<OFTableStatsEntry> publishTableStats(Dpid dpid,
                                                                           OFTableStatsReply reply)
focal_class.class_method_signature: OpenFlowControllerImpl.publishGroupStats(Dpid dpid,
                                                                           OFGroupStatsReply reply)
focal_class.full_signature: private synchronized Collection<OFGroupStatsEntry> publishGroupStats(Dpid dpid,
                                                                           OFGroupStatsReply reply)
focal_class.identifier: publishGroupStats
focal_class.modifiers: private synchronized
focal_class.parameters: (Dpid dpid,
                                                                           OFGroupStatsReply reply)
focal_class.return: Collection<OFGroupStatsEntry>
focal_class.signature: Collection<OFGroupStatsEntry> publishGroupStats(Dpid dpid,
                                                                           OFGroupStatsReply reply)
focal_class.class_method_signature: OpenFlowControllerImpl.publishGroupDescStats(Dpid dpid,
                                                                                   OFGroupDescStatsReply reply)
focal_class.full_signature: private synchronized Collection<OFGroupDescStatsEntry> publishGroupDescStats(Dpid dpid,
                                                                                   OFGroupDescStatsReply reply)
focal_class.identifier: publishGroupDescStats
focal_class.modifiers: private synchronized
focal_class.parameters: (Dpid dpid,
                                                                                   OFGroupDescStatsReply reply)
focal_class.return: Collection<OFGroupDescStatsEntry>
focal_class.signature: Collection<OFGroupDescStatsEntry> publishGroupDescStats(Dpid dpid,
                                                                                   OFGroupDescStatsReply reply)
focal_class.class_method_signature: OpenFlowControllerImpl.publishPortStats(Dpid dpid,
                                                                         OFPortStatsReply reply)
focal_class.full_signature: private synchronized Collection<OFPortStatsEntry> publishPortStats(Dpid dpid,
                                                                         OFPortStatsReply reply)
focal_class.identifier: publishPortStats
focal_class.modifiers: private synchronized
focal_class.parameters: (Dpid dpid,
                                                                         OFPortStatsReply reply)
focal_class.return: Collection<OFPortStatsEntry>
focal_class.signature: Collection<OFPortStatsEntry> publishPortStats(Dpid dpid,
                                                                         OFPortStatsReply reply)
focal_class.class_method_signature: OpenFlowControllerImpl.setRole(Dpid dpid, RoleState role)
focal_class.full_signature: @Override public void setRole(Dpid dpid, RoleState role)
focal_class.identifier: setRole
focal_class.modifiers: @Override public
focal_class.parameters: (Dpid dpid, RoleState role)
focal_class.return: void
focal_class.signature: void setRole(Dpid dpid, RoleState role)
focal_class.class_method_signature: OpenFlowControllerImpl.addStatisticsListener(int priority, OpenFlowStatisticsListener listener)
focal_class.full_signature: @Override public void addStatisticsListener(int priority, OpenFlowStatisticsListener listener)
focal_class.identifier: addStatisticsListener
focal_class.modifiers: @Override public
focal_class.parameters: (int priority, OpenFlowStatisticsListener listener)
focal_class.return: void
focal_class.signature: void addStatisticsListener(int priority, OpenFlowStatisticsListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.removeStatisticsListener(OpenFlowStatisticsListener listener)
focal_class.full_signature: @Override public void removeStatisticsListener(OpenFlowStatisticsListener listener)
focal_class.identifier: removeStatisticsListener
focal_class.modifiers: @Override public
focal_class.parameters: (OpenFlowStatisticsListener listener)
focal_class.return: void
focal_class.signature: void removeStatisticsListener(OpenFlowStatisticsListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.addAsynchronousListener(int priority, OpenFlowAsynchronousEventListener listener)
focal_class.full_signature: @Override public void addAsynchronousListener(int priority, OpenFlowAsynchronousEventListener listener)
focal_class.identifier: addAsynchronousListener
focal_class.modifiers: @Override public
focal_class.parameters: (int priority, OpenFlowAsynchronousEventListener listener)
focal_class.return: void
focal_class.signature: void addAsynchronousListener(int priority, OpenFlowAsynchronousEventListener listener)
focal_class.class_method_signature: OpenFlowControllerImpl.removeAsynchronousListener(OpenFlowAsynchronousEventListener listener)
focal_class.full_signature: @Override public void removeAsynchronousListener(OpenFlowAsynchronousEventListener listener)
focal_class.identifier: removeAsynchronousListener
focal_class.modifiers: @Override public
focal_class.parameters: (OpenFlowAsynchronousEventListener listener)
focal_class.return: void
focal_class.signature: void removeAsynchronousListener(OpenFlowAsynchronousEventListener listener)
focal_method.body: @Override
      public void setRole(Dpid dpid, RoleState role) {
          final OpenFlowSwitch sw = getSwitch(dpid);
          if (sw == null) {
              log.debug("Switch not connected. Ignoring setRole({}, {})", dpid, role);
              return;
          }
          sw.setRole(role);
      }
focal_method.class_method_signature: OpenFlowControllerImpl.setRole(Dpid dpid, RoleState role)
focal_method.full_signature: @Override public void setRole(Dpid dpid, RoleState role)
focal_method.identifier: setRole
focal_method.invocations: getSwitch debug setRole
focal_method.modifiers: @Override public
focal_method.parameters: (Dpid dpid, RoleState role)
focal_method.return: void
focal_method.signature: void setRole(Dpid dpid, RoleState role)