public interface DeviceService
Modifier and Type | Method and Description |
---|---|
void |
addListener(DeviceListener listener)
Add the specified listener...
|
Device |
getDevice(DataPathId dpid)
Returns the device with the specified management Data Path Id (dpid).
|
Device |
getDevice(DeviceId id)
Returns the device with the specified id.
|
Device |
getDevice(URI uri)
Returns the device with the specified URI.
|
Iterator<Device> |
getDevices()
Returns set of all devices known to the system.
|
Iterator<Device> |
getDevices(Class<? extends Facet> facetClass)
Returns a list of all devices that support the specified device driver
facet.
|
Iterator<Device> |
getDevices(DeviceFilter filter)
Returns set of all devices that match the supplied filter.
|
Set<Device> |
getDevices(IpAddress deviceIp)
Returns the device with the specified management IP address.
|
Interface |
getInterface(DeviceId deviceId,
InterfaceId interfaceId)
Returns the interface requested with the device and interface ids.
|
List<Interface> |
getInterfaces(Device device)
Returns the list of interfaces hosted on this device.
|
VlanId |
getLinkDiscoveryVlan(DeviceId deviceId)
Get the linkDiscoveryVlan configured for the device.
|
Set<DeviceListener> |
getListeners()
Returns the set of all device update listeners.
|
void |
removeListener(DeviceListener listener)
Remove the specified listener...
|
void |
setLinkDiscoveryVlan(DeviceId deviceId,
VlanId linkDiscoveryVlan)
Assign a user provided linkDiscoveryVlan to the device.
|
void |
setName(Device device,
String name)
Assign a user provided friendly name to the device.
|
Iterator<Device> getDevices()
Iterator<Device> getDevices(DeviceFilter filter)
filter
- device filterDevice getDevice(DeviceId id)
id
- device idSet<Device> getDevices(IpAddress deviceIp)
deviceIp
- management IPDevice getDevice(DataPathId dpid)
dpid
- management Data Path IdDevice getDevice(URI uri)
uri
- URI identifierIterator<Device> getDevices(Class<? extends Facet> facetClass)
facetClass
- facet class to filter byList<Interface> getInterfaces(Device device)
device
- device descriptorInterface getInterface(DeviceId deviceId, InterfaceId interfaceId)
deviceId
- device idinterfaceId
- interface idvoid addListener(DeviceListener listener)
listener
- listener to be addedvoid removeListener(DeviceListener listener)
listener
- listener to be removedSet<DeviceListener> getListeners()
void setName(Device device, String name)
device
- to modifyname
- user provided friendly nameNotFoundException
- if device not foundvoid setLinkDiscoveryVlan(DeviceId deviceId, VlanId linkDiscoveryVlan)
deviceId
- to set linkDiscoveryVlan forlinkDiscoveryVlan
- user provided linkDiscoveryVlan idNotFoundException
- if device not foundVlanId getLinkDiscoveryVlan(DeviceId deviceId)
deviceId
- containing linkDiscoveryVlanNotFoundException
- if device not foundCopyright © 2015. All Rights Reserved.