@Beta public interface VirtualNetworkService extends ListenerService<VirtualNetworkEvent,VirtualNetworkListener>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VIRTUAL_NETWORK_TOPIC
The topic used for obtaining globally unique ids.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(NetworkId networkId,
java.lang.Class<T> serviceClass)
Returns implementation of the specified service class for operating
in the context of the given network.
|
java.util.Set<DeviceId> |
getPhysicalDevices(NetworkId networkId,
DeviceId deviceId)
Returns list of physical device identifier mapping with the virtual
device in the specified network.
|
ServiceDirectory |
getServiceDirectory()
Returns service directory.
|
java.util.Set<VirtualDevice> |
getVirtualDevices(NetworkId networkId)
Returns a collection of all virtual devices in the specified network.
|
java.util.Set<VirtualHost> |
getVirtualHosts(NetworkId networkId)
Returns a collection of all virtual hosts in the specified network.
|
java.util.Set<VirtualLink> |
getVirtualLinks(NetworkId networkId)
Returns collection of all virtual links in the specified network.
|
ApplicationId |
getVirtualNetworkApplicationId(NetworkId networkId)
Returns the application identifier for a virtual network.
|
java.util.Set<VirtualNetwork> |
getVirtualNetworks(TenantId tenantId)
Returns a collection of all virtual networks created on behalf of the
specified tenant.
|
java.util.Set<VirtualPort> |
getVirtualPorts(NetworkId networkId,
DeviceId deviceId)
Returns list of all virtual ports of the specified device.
|
addListener, removeListener
static final java.lang.String VIRTUAL_NETWORK_TOPIC
java.util.Set<VirtualNetwork> getVirtualNetworks(TenantId tenantId)
tenantId
- tenant identifierItemNotFoundException
- if no such network foundjava.util.Set<VirtualDevice> getVirtualDevices(NetworkId networkId)
networkId
- network identifierItemNotFoundException
- if no such network foundjava.util.Set<VirtualHost> getVirtualHosts(NetworkId networkId)
networkId
- network identifierItemNotFoundException
- if no such network foundjava.util.Set<VirtualLink> getVirtualLinks(NetworkId networkId)
networkId
- network identifierItemNotFoundException
- if no such network foundjava.util.Set<VirtualPort> getVirtualPorts(NetworkId networkId, DeviceId deviceId)
networkId
- network identifierdeviceId
- device identifierItemNotFoundException
- if no such network foundjava.util.Set<DeviceId> getPhysicalDevices(NetworkId networkId, DeviceId deviceId)
networkId
- network identifierdeviceId
- the virtual device identifier<T> T get(NetworkId networkId, java.lang.Class<T> serviceClass)
The following services will be available:
T
- type of servicenetworkId
- network identifierserviceClass
- service classItemNotFoundException
- if no such network foundServiceNotFoundException
- if no implementation foundServiceDirectory getServiceDirectory()
ApplicationId getVirtualNetworkApplicationId(NetworkId networkId)
networkId
- network identifier