public interface VirtualProviderRegistryService
Modifier and Type | Method and Description |
---|---|
VirtualProvider |
getProvider(DeviceId deviceId)
Returns the virtual provider for the specified device ID based on URI scheme.
|
VirtualProvider |
getProvider(ProviderId providerId)
Returns the virtual provider registered with the specified provider ID or null
if none is found for the given provider family and default fall-back is
not supported.
|
VirtualProvider |
getProvider(java.lang.String scheme)
Returns the virtual provider registered with the specified scheme.
|
java.util.Set<ProviderId> |
getProviders()
Returns a set of currently registered virtual provider identities.
|
java.util.Set<ProviderId> |
getProvidersByService(VirtualProviderService virtualProviderService)
Returns a set of currently registered virtual provider identities
corresponding to the requested providerService.
|
VirtualProviderService |
getProviderService(NetworkId networkId,
java.lang.Class<? extends VirtualProvider> providerClass)
Returns a virtual provider service corresponding to
the virtual network and provider class type.
|
void |
registerProvider(VirtualProvider virtualProvider)
Registers the supplied virtual provider.
|
void |
registerProviderService(NetworkId networkId,
VirtualProviderService virtualProviderService)
Registers the supplied virtual provider.
|
void |
unregisterProvider(VirtualProvider virtualProvider)
Unregisters the supplied virtual provider.
|
void |
unregisterProviderService(NetworkId networkId,
VirtualProviderService virtualProviderService)
Unregisters the supplied virtual provider service.
|
void registerProvider(VirtualProvider virtualProvider)
virtualProvider
- a virtual provider to be registeredjava.lang.IllegalArgumentException
- if the provider is registered alreadyvoid unregisterProvider(VirtualProvider virtualProvider)
IllegalStateException
.
Unregistering a virtual provider that has not been previously registered results in a no-op.
virtualProvider
- a virtual provider to be unregisteredvoid registerProviderService(NetworkId networkId, VirtualProviderService virtualProviderService)
networkId
- a virtual network identifiervirtualProviderService
- a virtual provider service to be registeredvoid unregisterProviderService(NetworkId networkId, VirtualProviderService virtualProviderService)
networkId
- a virtual network identifiervirtualProviderService
- a virtual provider service to be unregisteredjava.util.Set<ProviderId> getProviders()
java.util.Set<ProviderId> getProvidersByService(VirtualProviderService virtualProviderService)
virtualProviderService
- a virtual provider serviceVirtualProvider getProvider(ProviderId providerId)
providerId
- provider identifierVirtualProvider getProvider(DeviceId deviceId)
deviceId
- virtual device identifierVirtualProvider getProvider(java.lang.String scheme)
scheme
- provider schemeVirtualProviderService getProviderService(NetworkId networkId, java.lang.Class<? extends VirtualProvider> providerClass)
networkId
- a virtual network identifierproviderClass
- a type of virtual provider