@Beta public interface VirtualNetworkService extends ListenerService<VirtualNetworkEvent,VirtualNetworkListener>
Modifier and Type | Field and Description |
---|---|
static String |
VIRTUAL_NETWORK_TOPIC
The topic used for obtaining globally unique ids.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(NetworkId networkId,
Class<T> serviceClass)
Returns implementation of the specified service class for operating
in the context of the given network.
|
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.
|
TenantId |
getTenantId(NetworkId networkId)
Returns
tenantId for specified virtual network id. |
Set<VirtualDevice> |
getVirtualDevices(NetworkId networkId)
Returns a collection of all virtual devices in the specified network.
|
Set<VirtualHost> |
getVirtualHosts(NetworkId networkId)
Returns a collection of all virtual hosts in the specified network.
|
Set<VirtualLink> |
getVirtualLinks(NetworkId networkId)
Returns collection of all virtual links in the specified network.
|
VirtualNetwork |
getVirtualNetwork(NetworkId networkId)
Returns the virtual network matching the network identifier.
|
ApplicationId |
getVirtualNetworkApplicationId(NetworkId networkId)
Returns the application identifier for a virtual network.
|
Set<VirtualNetwork> |
getVirtualNetworks(TenantId tenantId)
Returns a collection of all virtual networks created on behalf of the
specified tenant.
|
Set<VirtualPort> |
getVirtualPorts(NetworkId networkId,
DeviceId deviceId)
Returns list of all virtual ports of the specified device.
|
addListener, removeListener
static final String VIRTUAL_NETWORK_TOPIC
Set<VirtualNetwork> getVirtualNetworks(TenantId tenantId)
tenantId
- tenant identifierItemNotFoundException
- if no such network foundVirtualNetwork getVirtualNetwork(NetworkId networkId)
networkId
- virtual network identifierItemNotFoundException
- if no such network foundTenantId getTenantId(NetworkId networkId)
tenantId
for specified virtual network id.networkId
- virtual network identifierItemNotFoundException
- if no such network foundSet<VirtualDevice> getVirtualDevices(NetworkId networkId)
networkId
- network identifierItemNotFoundException
- if no such network foundSet<VirtualHost> getVirtualHosts(NetworkId networkId)
networkId
- network identifierItemNotFoundException
- if no such network foundSet<VirtualLink> getVirtualLinks(NetworkId networkId)
networkId
- network identifierItemNotFoundException
- if no such network foundSet<VirtualPort> getVirtualPorts(NetworkId networkId, DeviceId deviceId)
networkId
- network identifierdeviceId
- device identifierItemNotFoundException
- if no such network foundSet<DeviceId> getPhysicalDevices(NetworkId networkId, DeviceId deviceId)
networkId
- network identifierdeviceId
- the virtual device identifier<T> T get(NetworkId networkId, 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