@Test public void updateSwitchConfigTestStateNull() { NodeId nodeId = mock(NodeId.class); switchManager.updateSwitchConfig(nodeId, ofOverlayNodeConfig); verifyZeroInteractions(listener); }
synchronized void updateSwitchConfig(NodeId nodeId, @Nullable OfOverlayNodeConfig config) { SwitchState state = getSwitchState(checkNotNull(nodeId)); SwitchStatus oldStatus = state.status; state.setConfig(config); handleSwitchState(state, oldStatus); }
SwitchManager implements AutoCloseable { synchronized void updateSwitchConfig(NodeId nodeId, @Nullable OfOverlayNodeConfig config) { SwitchState state = getSwitchState(checkNotNull(nodeId)); SwitchStatus oldStatus = state.status; state.setConfig(config); handleSwitchState(state, oldStatus); } }
SwitchManager implements AutoCloseable { synchronized void updateSwitchConfig(NodeId nodeId, @Nullable OfOverlayNodeConfig config) { SwitchState state = getSwitchState(checkNotNull(nodeId)); SwitchStatus oldStatus = state.status; state.setConfig(config); handleSwitchState(state, oldStatus); } SwitchManager(DataBroker dataProvider); }
SwitchManager implements AutoCloseable { synchronized void updateSwitchConfig(NodeId nodeId, @Nullable OfOverlayNodeConfig config) { SwitchState state = getSwitchState(checkNotNull(nodeId)); SwitchStatus oldStatus = state.status; state.setConfig(config); handleSwitchState(state, oldStatus); } SwitchManager(DataBroker dataProvider); static void activatingSwitch(NodeId nodeId); static void deactivatingSwitch(NodeId nodeId); synchronized InstanceIdentifier<NodeConnector> getNodeConnectorIidForPortName(Name portName); synchronized Collection<NodeId> getReadySwitches(); synchronized Set<NodeConnectorId> getExternalPorts(NodeId nodeId); Set<Long> getExternalPortNumbers(NodeId nodeId); synchronized Collection<NodeConnectorId> getTunnelPorts(NodeId nodeId); synchronized NodeConnectorId getTunnelPort(NodeId nodeId, Class<? extends TunnelTypeBase> tunnelType); synchronized IpAddress getTunnelIP(NodeId nodeId, Class<? extends TunnelTypeBase> tunnelType); void registerListener(SwitchListener listener); void setEncapsulationFormat(EncapsulationFormat format); @Override void close(); }
SwitchManager implements AutoCloseable { synchronized void updateSwitchConfig(NodeId nodeId, @Nullable OfOverlayNodeConfig config) { SwitchState state = getSwitchState(checkNotNull(nodeId)); SwitchStatus oldStatus = state.status; state.setConfig(config); handleSwitchState(state, oldStatus); } SwitchManager(DataBroker dataProvider); static void activatingSwitch(NodeId nodeId); static void deactivatingSwitch(NodeId nodeId); synchronized InstanceIdentifier<NodeConnector> getNodeConnectorIidForPortName(Name portName); synchronized Collection<NodeId> getReadySwitches(); synchronized Set<NodeConnectorId> getExternalPorts(NodeId nodeId); Set<Long> getExternalPortNumbers(NodeId nodeId); synchronized Collection<NodeConnectorId> getTunnelPorts(NodeId nodeId); synchronized NodeConnectorId getTunnelPort(NodeId nodeId, Class<? extends TunnelTypeBase> tunnelType); synchronized IpAddress getTunnelIP(NodeId nodeId, Class<? extends TunnelTypeBase> tunnelType); void registerListener(SwitchListener listener); void setEncapsulationFormat(EncapsulationFormat format); @Override void close();  }