public interface IDeviceService
Device objects should be retrieved from
the FloodlightContext rather than from IDeviceManager.| Modifier and Type | Interface and Description |
|---|---|
static class |
IDeviceService.DeviceField
Fields used in devices for indexes and querying
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIndex(boolean perClass,
EnumSet<IDeviceService.DeviceField> keyFields)
Create an index over a set of fields.
|
void |
addListener(IDeviceListener listener)
Adds a listener to listen for IDeviceManagerServices notifications
|
void |
addSuppressAPs(org.opendaylight.controller.sal.core.NodeConnector port)
Specify points in the network where attachment points are not to be
learned.
|
IDevice |
findClassDevice(IEntityClass entityClass,
long macAddress,
Short vlan,
Integer ipv4Address)
Get a destination device using entity fields that corresponds with the
given source device.
|
IDevice |
findDevice(long macAddress,
Short vlan,
Integer ipv4Address,
org.opendaylight.controller.sal.core.NodeConnector port)
Search for a device exactly matching the provided device fields.
|
Collection<? extends IDevice> |
getAllDevices()
Get an unmodifiable collection view over all devices currently known.
|
IDevice |
getDevice(Long deviceKey)
Get the device with the given device key.
|
Set<SwitchPort> |
getSuppressAPs() |
Iterator<? extends IDevice> |
queryClassDevices(IEntityClass entityClass,
Long macAddress,
Short vlan,
Integer ipv4Address,
org.opendaylight.controller.sal.core.NodeConnector port)
Find devices that match the provided query.
|
Iterator<? extends IDevice> |
queryDevices(Long macAddress,
Short vlan,
Integer ipv4Address,
org.opendaylight.controller.sal.core.NodeConnector port)
Find devices that match the provided query.
|
void |
removeSuppressAPs(org.opendaylight.controller.sal.core.NodeConnector port) |
IDevice getDevice(Long deviceKey)
deviceKey - the key to search forIDevice.getDeviceKey()IDevice findDevice(long macAddress, Short vlan, Integer ipv4Address, org.opendaylight.controller.sal.core.NodeConnector port) throws IllegalArgumentException
IEntityClassifierService will be important in this search. All
key fields MUST be supplied.
queryDevices() might be more appropriate!macAddress - The MAC addressvlan - the VLAN. Null means no VLAN and is valid even if VLAN is a
key field.ipv4Address - the ipv4 addressport - the node connectorIDevice or null if no device is found.IllegalArgumentException - if not all key fields of the current
IEntityClassifierService are specified.IDeviceManager#setEntityClassifier(IEntityClassifierService)IDevice findClassDevice(IEntityClass entityClass, long macAddress, Short vlan, Integer ipv4Address) throws IllegalArgumentException
entityClass - The entity class in which to perform the lookup.macAddress - The MAC address for the destinationvlan - the VLAN if availableipv4Address - The IP address if available.IDevice or null if no device is found.IllegalArgumentException - if not all key fields of the source's IEntityClass
are specified.IDeviceService#findDevice(long, Short, Integer, Long, Integer)Collection<? extends IDevice> getAllDevices()
void addIndex(boolean perClass,
EnumSet<IDeviceService.DeviceField> keyFields)
perClass - set to true if the index should be maintained for each entity
class separately.keyFields - the set of fields on which to indexIterator<? extends IDevice> queryDevices(Long macAddress, Short vlan, Integer ipv4Address, org.opendaylight.controller.sal.core.NodeConnector port)
macAddress - The MAC addressvlan - the VLANipv4Address - the ipv4 addressport - the switch portIDeviceService#queryClassDevices(IEntityClass, Long, Short, Integer,
Long, Integer)Iterator<? extends IDevice> queryClassDevices(IEntityClass entityClass, Long macAddress, Short vlan, Integer ipv4Address, org.opendaylight.controller.sal.core.NodeConnector port)
entityClass - The entity class in which to perform the querymacAddress - The MAC addressvlan - the VLANipv4Address - the ipv4 addressport - the switch portIDeviceService#queryClassDevices(Long, Short, Integer, Long,
Integer)void addListener(IDeviceListener listener)
listener - The listener that wants the notificationstype - The type of the listenervoid addSuppressAPs(org.opendaylight.controller.sal.core.NodeConnector port)
sw - port - void removeSuppressAPs(org.opendaylight.controller.sal.core.NodeConnector port)
Set<SwitchPort> getSuppressAPs()
Copyright © 2015. All Rights Reserved.