test_class.declarator: NETWORK_ID = 42L
test_class.modifier: private static final
test_class.original_string: private static final long NETWORK_ID = 42L;
test_class.type: long
test_class.var_name: NETWORK_ID
test_class.declarator: element = new NiciraNvpElement()
test_class.original_string: NiciraNvpElement element = new NiciraNvpElement();
test_class.type: NiciraNvpElement
test_class.var_name: element
test_class.declarator: networkManager = mock(NetworkOrchestrationService.class)
test_class.original_string: NetworkOrchestrationService networkManager = mock(NetworkOrchestrationService.class);
test_class.type: NetworkOrchestrationService
test_class.var_name: networkManager
test_class.declarator: networkModel = mock(NetworkModel.class)
test_class.original_string: NetworkModel networkModel = mock(NetworkModel.class);
test_class.type: NetworkModel
test_class.var_name: networkModel
test_class.declarator: ntwkSrvcDao = mock(NetworkServiceMapDao.class)
test_class.original_string: NetworkServiceMapDao ntwkSrvcDao = mock(NetworkServiceMapDao.class);
test_class.type: NetworkServiceMapDao
test_class.var_name: ntwkSrvcDao
test_class.declarator: agentManager = mock(AgentManager.class)
test_class.original_string: AgentManager agentManager = mock(AgentManager.class);
test_class.type: AgentManager
test_class.var_name: agentManager
test_class.declarator: hostDao = mock(HostDao.class)
test_class.original_string: HostDao hostDao = mock(HostDao.class);
test_class.type: HostDao
test_class.var_name: hostDao
test_class.declarator: niciraNvpDao = mock(NiciraNvpDao.class)
test_class.original_string: NiciraNvpDao niciraNvpDao = mock(NiciraNvpDao.class);
test_class.type: NiciraNvpDao
test_class.var_name: niciraNvpDao
test_class.declarator: niciraNvpRouterMappingDao = mock(NiciraNvpRouterMappingDao.class)
test_class.original_string: NiciraNvpRouterMappingDao niciraNvpRouterMappingDao = mock(NiciraNvpRouterMappingDao.class);
test_class.type: NiciraNvpRouterMappingDao
test_class.var_name: niciraNvpRouterMappingDao
test_class.file: plugins/network-elements/nicira-nvp/src/test/java/com/cloud/network/element/NiciraNvpElementTest.java
test_class.identifier: NiciraNvpElementTest
test_case.body: @Test
      public void canHandleTest() {
          final Network net = mock(Network.class);
          when(net.getBroadcastDomainType()).thenReturn(BroadcastDomainType.Lswitch);
          when(net.getId()).thenReturn(NETWORK_ID);
  
          when(ntwkSrvcDao.canProviderSupportServiceInNetwork(NETWORK_ID, Service.Connectivity, Provider.NiciraNvp)).thenReturn(true);
          // Golden path
          assertTrue(element.canHandle(net, Service.Connectivity));
  
          when(net.getBroadcastDomainType()).thenReturn(BroadcastDomainType.Vlan);
          // Only broadcastdomaintype lswitch is supported
          assertFalse(element.canHandle(net, Service.Connectivity));
  
          when(net.getBroadcastDomainType()).thenReturn(BroadcastDomainType.Lswitch);
          when(ntwkSrvcDao.canProviderSupportServiceInNetwork(NETWORK_ID, Service.Connectivity, Provider.NiciraNvp)).thenReturn(false);
          // No nvp provider in the network
          assertFalse(element.canHandle(net, Service.Connectivity));
  
          when(networkModel.isProviderForNetwork(Provider.NiciraNvp, NETWORK_ID)).thenReturn(false);
          when(ntwkSrvcDao.canProviderSupportServiceInNetwork(NETWORK_ID, Service.Connectivity, Provider.NiciraNvp)).thenReturn(true);
          // NVP provider does not provide Connectivity for this network
          assertFalse(element.canHandle(net, Service.Connectivity));
  
          when(networkModel.isProviderForNetwork(Provider.NiciraNvp, NETWORK_ID)).thenReturn(true);
          // Only service Connectivity is supported
          assertFalse(element.canHandle(net, Service.Dhcp));
  
      }
test_case.class_method_signature: NiciraNvpElementTest.canHandleTest()
test_case.full_signature: @Test public void canHandleTest()
test_case.identifier: canHandleTest
test_case.invocations: mock thenReturn when getBroadcastDomainType thenReturn when getId thenReturn when canProviderSupportServiceInNetwork assertTrue canHandle thenReturn when getBroadcastDomainType assertFalse canHandle thenReturn when getBroadcastDomainType thenReturn when canProviderSupportServiceInNetwork assertFalse canHandle thenReturn when isProviderForNetwork thenReturn when canProviderSupportServiceInNetwork assertFalse canHandle thenReturn when isProviderForNetwork assertFalse canHandle
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void canHandleTest()
focal_class.declarator: MAX_PORT = 65535
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_PORT = 65535;
focal_class.type: int
focal_class.var_name: MAX_PORT
focal_class.declarator: MIN_PORT = 0
focal_class.modifier: private static final
focal_class.original_string: private static final int MIN_PORT = 0;
focal_class.type: int
focal_class.var_name: MIN_PORT
focal_class.declarator: s_logger = LoggerFactory.getLogger(NiciraNvpElement.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger s_logger = LoggerFactory.getLogger(NiciraNvpElement.class);
focal_class.type: Logger
focal_class.var_name: s_logger
focal_class.declarator: capabilities = setCapabilities()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<Service, Map<Capability, String>> capabilities = setCapabilities();
focal_class.type: Map<Service, Map<Capability, String>>
focal_class.var_name: capabilities
focal_class.declarator: nicDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NicDao nicDao;
focal_class.type: NicDao
focal_class.var_name: nicDao
focal_class.declarator: resourceMgr
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected ResourceManager resourceMgr;
focal_class.type: ResourceManager
focal_class.var_name: resourceMgr
focal_class.declarator: physicalNetworkDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected PhysicalNetworkDao physicalNetworkDao;
focal_class.type: PhysicalNetworkDao
focal_class.var_name: physicalNetworkDao
focal_class.declarator: physicalNetworkServiceProviderDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected PhysicalNetworkServiceProviderDao physicalNetworkServiceProviderDao;
focal_class.type: PhysicalNetworkServiceProviderDao
focal_class.var_name: physicalNetworkServiceProviderDao
focal_class.declarator: niciraNvpDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NiciraNvpDao niciraNvpDao;
focal_class.type: NiciraNvpDao
focal_class.var_name: niciraNvpDao
focal_class.declarator: hostDetailsDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected HostDetailsDao hostDetailsDao;
focal_class.type: HostDetailsDao
focal_class.var_name: hostDetailsDao
focal_class.declarator: hostDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected HostDao hostDao;
focal_class.type: HostDao
focal_class.var_name: hostDao
focal_class.declarator: agentMgr
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected AgentManager agentMgr;
focal_class.type: AgentManager
focal_class.var_name: agentMgr
focal_class.declarator: niciraNvpNicMappingDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NiciraNvpNicMappingDao niciraNvpNicMappingDao;
focal_class.type: NiciraNvpNicMappingDao
focal_class.var_name: niciraNvpNicMappingDao
focal_class.declarator: niciraNvpRouterMappingDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NiciraNvpRouterMappingDao niciraNvpRouterMappingDao;
focal_class.type: NiciraNvpRouterMappingDao
focal_class.var_name: niciraNvpRouterMappingDao
focal_class.declarator: networkDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NetworkDao networkDao;
focal_class.type: NetworkDao
focal_class.var_name: networkDao
focal_class.declarator: networkManager
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NetworkOrchestrationService networkManager;
focal_class.type: NetworkOrchestrationService
focal_class.var_name: networkManager
focal_class.declarator: networkModel
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NetworkModel networkModel;
focal_class.type: NetworkModel
focal_class.var_name: networkModel
focal_class.declarator: configMgr
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected ConfigurationManager configMgr;
focal_class.type: ConfigurationManager
focal_class.var_name: configMgr
focal_class.declarator: ntwkSrvcDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected NetworkServiceMapDao ntwkSrvcDao;
focal_class.type: NetworkServiceMapDao
focal_class.var_name: ntwkSrvcDao
focal_class.declarator: vlanDao
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected VlanDao vlanDao;
focal_class.type: VlanDao
focal_class.var_name: vlanDao
focal_class.declarator: ipAddrMgr
focal_class.modifier: @Inject
      protected
focal_class.original_string: @Inject
      protected IpAddressManager ipAddrMgr;
focal_class.type: IpAddressManager
focal_class.var_name: ipAddrMgr
focal_class.file: plugins/network-elements/nicira-nvp/src/main/java/com/cloud/network/element/NiciraNvpElement.java
focal_class.identifier: NiciraNvpElement
focal_class.interfaces: implements ConnectivityProvider, SourceNatServiceProvider, PortForwardingServiceProvider, StaticNatServiceProvider,
  NiciraNvpElementService, ResourceStateAdapter, IpDeployer
focal_class.class_method_signature: NiciraNvpElement.getCapabilities()
focal_class.full_signature: @Override public Map<Service, Map<Capability, String>> getCapabilities()
focal_class.identifier: getCapabilities
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<Service, Map<Capability, String>>
focal_class.signature: Map<Service, Map<Capability, String>> getCapabilities()
focal_class.class_method_signature: NiciraNvpElement.getProvider()
focal_class.full_signature: @Override public Provider getProvider()
focal_class.identifier: getProvider
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Provider
focal_class.signature: Provider getProvider()
focal_class.class_method_signature: NiciraNvpElement.canHandle(Network network, Service service)
focal_class.full_signature: protected boolean canHandle(Network network, Service service)
focal_class.identifier: canHandle
focal_class.modifiers: protected
focal_class.parameters: (Network network, Service service)
focal_class.return: boolean
focal_class.signature: boolean canHandle(Network network, Service service)
focal_class.class_method_signature: NiciraNvpElement.configure(String name, Map<String, Object> params)
focal_class.full_signature: @Override public boolean configure(String name, Map<String, Object> params)
focal_class.identifier: configure
focal_class.modifiers: @Override public
focal_class.parameters: (String name, Map<String, Object> params)
focal_class.return: boolean
focal_class.signature: boolean configure(String name, Map<String, Object> params)
focal_class.class_method_signature: NiciraNvpElement.implement(Network network, NetworkOffering offering, DeployDestination dest, ReservationContext context)
focal_class.full_signature: @Override public boolean implement(Network network, NetworkOffering offering, DeployDestination dest, ReservationContext context)
focal_class.identifier: implement
focal_class.modifiers: @Override public
focal_class.parameters: (Network network, NetworkOffering offering, DeployDestination dest, ReservationContext context)
focal_class.return: boolean
focal_class.signature: boolean implement(Network network, NetworkOffering offering, DeployDestination dest, ReservationContext context)
focal_class.class_method_signature: NiciraNvpElement.prepare(Network network, NicProfile nic, VirtualMachineProfile vm, DeployDestination dest, ReservationContext context)
focal_class.full_signature: @Override public boolean prepare(Network network, NicProfile nic, VirtualMachineProfile vm, DeployDestination dest, ReservationContext context)
focal_class.identifier: prepare
focal_class.modifiers: @Override public
focal_class.parameters: (Network network, NicProfile nic, VirtualMachineProfile vm, DeployDestination dest, ReservationContext context)
focal_class.return: boolean
focal_class.signature: boolean prepare(Network network, NicProfile nic, VirtualMachineProfile vm, DeployDestination dest, ReservationContext context)
focal_class.class_method_signature: NiciraNvpElement.release(Network network, NicProfile nic, VirtualMachineProfile vm, ReservationContext context)
focal_class.full_signature: @Override public boolean release(Network network, NicProfile nic, VirtualMachineProfile vm, ReservationContext context)
focal_class.identifier: release
focal_class.modifiers: @Override public
focal_class.parameters: (Network network, NicProfile nic, VirtualMachineProfile vm, ReservationContext context)
focal_class.return: boolean
focal_class.signature: boolean release(Network network, NicProfile nic, VirtualMachineProfile vm, ReservationContext context)
focal_class.class_method_signature: NiciraNvpElement.shutdown(Network network, ReservationContext context, boolean cleanup)
focal_class.full_signature: @Override public boolean shutdown(Network network, ReservationContext context, boolean cleanup)
focal_class.identifier: shutdown
focal_class.modifiers: @Override public
focal_class.parameters: (Network network, ReservationContext context, boolean cleanup)
focal_class.return: boolean
focal_class.signature: boolean shutdown(Network network, ReservationContext context, boolean cleanup)
focal_class.class_method_signature: NiciraNvpElement.destroy(Network network, ReservationContext context)
focal_class.full_signature: @Override public boolean destroy(Network network, ReservationContext context)
focal_class.identifier: destroy
focal_class.modifiers: @Override public
focal_class.parameters: (Network network, ReservationContext context)
focal_class.return: boolean
focal_class.signature: boolean destroy(Network network, ReservationContext context)
focal_class.class_method_signature: NiciraNvpElement.isReady(PhysicalNetworkServiceProvider provider)
focal_class.full_signature: @Override public boolean isReady(PhysicalNetworkServiceProvider provider)
focal_class.identifier: isReady
focal_class.modifiers: @Override public
focal_class.parameters: (PhysicalNetworkServiceProvider provider)
focal_class.return: boolean
focal_class.signature: boolean isReady(PhysicalNetworkServiceProvider provider)
focal_class.class_method_signature: NiciraNvpElement.shutdownProviderInstances(PhysicalNetworkServiceProvider provider, ReservationContext context)
focal_class.full_signature: @Override public boolean shutdownProviderInstances(PhysicalNetworkServiceProvider provider, ReservationContext context)
focal_class.identifier: shutdownProviderInstances
focal_class.modifiers: @Override public
focal_class.parameters: (PhysicalNetworkServiceProvider provider, ReservationContext context)
focal_class.return: boolean
focal_class.signature: boolean shutdownProviderInstances(PhysicalNetworkServiceProvider provider, ReservationContext context)
focal_class.class_method_signature: NiciraNvpElement.canEnableIndividualServices()
focal_class.full_signature: @Override public boolean canEnableIndividualServices()
focal_class.identifier: canEnableIndividualServices
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canEnableIndividualServices()
focal_class.class_method_signature: NiciraNvpElement.verifyServicesCombination(Set<Service> services)
focal_class.full_signature: @Override public boolean verifyServicesCombination(Set<Service> services)
focal_class.identifier: verifyServicesCombination
focal_class.modifiers: @Override public
focal_class.parameters: (Set<Service> services)
focal_class.return: boolean
focal_class.signature: boolean verifyServicesCombination(Set<Service> services)
focal_class.class_method_signature: NiciraNvpElement.setCapabilities()
focal_class.full_signature: private static Map<Service, Map<Capability, String>> setCapabilities()
focal_class.identifier: setCapabilities
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: Map<Service, Map<Capability, String>>
focal_class.signature: Map<Service, Map<Capability, String>> setCapabilities()
focal_class.class_method_signature: NiciraNvpElement.getCommands()
focal_class.full_signature: @Override public List<Class<?>> getCommands()
focal_class.identifier: getCommands
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Class<?>>
focal_class.signature: List<Class<?>> getCommands()
focal_class.class_method_signature: NiciraNvpElement.addNiciraNvpDevice(AddNiciraNvpDeviceCmd cmd)
focal_class.full_signature: @Override @DB public NiciraNvpDeviceVO addNiciraNvpDevice(AddNiciraNvpDeviceCmd cmd)
focal_class.identifier: addNiciraNvpDevice
focal_class.modifiers: @Override @DB public
focal_class.parameters: (AddNiciraNvpDeviceCmd cmd)
focal_class.return: NiciraNvpDeviceVO
focal_class.signature: NiciraNvpDeviceVO addNiciraNvpDevice(AddNiciraNvpDeviceCmd cmd)
focal_class.class_method_signature: NiciraNvpElement.createNiciraNvpDeviceResponse(NiciraNvpDeviceVO niciraNvpDeviceVO)
focal_class.full_signature: @Override public NiciraNvpDeviceResponse createNiciraNvpDeviceResponse(NiciraNvpDeviceVO niciraNvpDeviceVO)
focal_class.identifier: createNiciraNvpDeviceResponse
focal_class.modifiers: @Override public
focal_class.parameters: (NiciraNvpDeviceVO niciraNvpDeviceVO)
focal_class.return: NiciraNvpDeviceResponse
focal_class.signature: NiciraNvpDeviceResponse createNiciraNvpDeviceResponse(NiciraNvpDeviceVO niciraNvpDeviceVO)
focal_class.class_method_signature: NiciraNvpElement.deleteNiciraNvpDevice(DeleteNiciraNvpDeviceCmd cmd)
focal_class.full_signature: @Override public boolean deleteNiciraNvpDevice(DeleteNiciraNvpDeviceCmd cmd)
focal_class.identifier: deleteNiciraNvpDevice
focal_class.modifiers: @Override public
focal_class.parameters: (DeleteNiciraNvpDeviceCmd cmd)
focal_class.return: boolean
focal_class.signature: boolean deleteNiciraNvpDevice(DeleteNiciraNvpDeviceCmd cmd)
focal_class.class_method_signature: NiciraNvpElement.listNiciraNvpDevices(ListNiciraNvpDevicesCmd cmd)
focal_class.full_signature: @Override public List<NiciraNvpDeviceVO> listNiciraNvpDevices(ListNiciraNvpDevicesCmd cmd)
focal_class.identifier: listNiciraNvpDevices
focal_class.modifiers: @Override public
focal_class.parameters: (ListNiciraNvpDevicesCmd cmd)
focal_class.return: List<NiciraNvpDeviceVO>
focal_class.signature: List<NiciraNvpDeviceVO> listNiciraNvpDevices(ListNiciraNvpDevicesCmd cmd)
focal_class.class_method_signature: NiciraNvpElement.listNiciraNvpDeviceNetworks(ListNiciraNvpDeviceNetworksCmd cmd)
focal_class.full_signature: @Override public List<? extends Network> listNiciraNvpDeviceNetworks(ListNiciraNvpDeviceNetworksCmd cmd)
focal_class.identifier: listNiciraNvpDeviceNetworks
focal_class.modifiers: @Override public
focal_class.parameters: (ListNiciraNvpDeviceNetworksCmd cmd)
focal_class.return: List<? extends Network>
focal_class.signature: List<? extends Network> listNiciraNvpDeviceNetworks(ListNiciraNvpDeviceNetworksCmd cmd)
focal_class.class_method_signature: NiciraNvpElement.createHostVOForConnectedAgent(HostVO host, StartupCommand[] cmd)
focal_class.full_signature: @Override public HostVO createHostVOForConnectedAgent(HostVO host, StartupCommand[] cmd)
focal_class.identifier: createHostVOForConnectedAgent
focal_class.modifiers: @Override public
focal_class.parameters: (HostVO host, StartupCommand[] cmd)
focal_class.return: HostVO
focal_class.signature: HostVO createHostVOForConnectedAgent(HostVO host, StartupCommand[] cmd)
focal_class.class_method_signature: NiciraNvpElement.createHostVOForDirectConnectAgent(HostVO host, StartupCommand[] startup, ServerResource resource, Map<String, String> details, List<String> hostTags)
focal_class.full_signature: @Override public HostVO createHostVOForDirectConnectAgent(HostVO host, StartupCommand[] startup, ServerResource resource, Map<String, String> details, List<String> hostTags)
focal_class.identifier: createHostVOForDirectConnectAgent
focal_class.modifiers: @Override public
focal_class.parameters: (HostVO host, StartupCommand[] startup, ServerResource resource, Map<String, String> details, List<String> hostTags)
focal_class.return: HostVO
focal_class.signature: HostVO createHostVOForDirectConnectAgent(HostVO host, StartupCommand[] startup, ServerResource resource, Map<String, String> details, List<String> hostTags)
focal_class.class_method_signature: NiciraNvpElement.deleteHost(HostVO host, boolean isForced, boolean isForceDeleteStorage)
focal_class.full_signature: @Override public DeleteHostAnswer deleteHost(HostVO host, boolean isForced, boolean isForceDeleteStorage)
focal_class.identifier: deleteHost
focal_class.modifiers: @Override public
focal_class.parameters: (HostVO host, boolean isForced, boolean isForceDeleteStorage)
focal_class.return: DeleteHostAnswer
focal_class.signature: DeleteHostAnswer deleteHost(HostVO host, boolean isForced, boolean isForceDeleteStorage)
focal_class.class_method_signature: NiciraNvpElement.getIpDeployer(Network network)
focal_class.full_signature: @Override public IpDeployer getIpDeployer(Network network)
focal_class.identifier: getIpDeployer
focal_class.modifiers: @Override public
focal_class.parameters: (Network network)
focal_class.return: IpDeployer
focal_class.signature: IpDeployer getIpDeployer(Network network)
focal_class.class_method_signature: NiciraNvpElement.applyIps(Network network, List<? extends PublicIpAddress> ipAddress, Set<Service> services)
focal_class.full_signature: @Override public boolean applyIps(Network network, List<? extends PublicIpAddress> ipAddress, Set<Service> services)
focal_class.identifier: applyIps
focal_class.modifiers: @Override public
focal_class.parameters: (Network network, List<? extends PublicIpAddress> ipAddress, Set<Service> services)
focal_class.return: boolean
focal_class.signature: boolean applyIps(Network network, List<? extends PublicIpAddress> ipAddress, Set<Service> services)
focal_class.class_method_signature: NiciraNvpElement.applyStaticNats(Network network, List<? extends StaticNat> rules)
focal_class.full_signature: @Override public boolean applyStaticNats(Network network, List<? extends StaticNat> rules)
focal_class.identifier: applyStaticNats
focal_class.modifiers: @Override public
focal_class.parameters: (Network network, List<? extends StaticNat> rules)
focal_class.return: boolean
focal_class.signature: boolean applyStaticNats(Network network, List<? extends StaticNat> rules)
focal_class.class_method_signature: NiciraNvpElement.applyPFRules(Network network, List<PortForwardingRule> rules)
focal_class.full_signature: @Override public boolean applyPFRules(Network network, List<PortForwardingRule> rules)
focal_class.identifier: applyPFRules
focal_class.modifiers: @Override public
focal_class.parameters: (Network network, List<PortForwardingRule> rules)
focal_class.return: boolean
focal_class.signature: boolean applyPFRules(Network network, List<PortForwardingRule> rules)
focal_class.superclass: extends AdapterBase
focal_method.body: protected boolean canHandle(Network network, Service service) {
          s_logger.debug("Checking if NiciraNvpElement can handle service " + service.getName() + " on network " + network.getDisplayText());
          if (network.getBroadcastDomainType() != BroadcastDomainType.Lswitch) {
              return false;
          }
  
          if (!networkModel.isProviderForNetwork(getProvider(), network.getId())) {
              s_logger.debug("NiciraNvpElement is not a provider for network " + network.getDisplayText());
              return false;
          }
  
          if (!ntwkSrvcDao.canProviderSupportServiceInNetwork(network.getId(), service, Network.Provider.NiciraNvp)) {
              s_logger.debug("NiciraNvpElement can't provide the " + service.getName() + " service on network " + network.getDisplayText());
              return false;
          }
  
          return true;
      }
focal_method.class_method_signature: NiciraNvpElement.canHandle(Network network, Service service)
focal_method.full_signature: protected boolean canHandle(Network network, Service service)
focal_method.identifier: canHandle
focal_method.invocations: debug getName getDisplayText getBroadcastDomainType isProviderForNetwork getProvider getId debug getDisplayText canProviderSupportServiceInNetwork getId debug getName getDisplayText
focal_method.modifiers: protected
focal_method.parameters: (Network network, Service service)
focal_method.return: boolean
focal_method.signature: boolean canHandle(Network network, Service service)