Package | Description |
---|---|
etri.sdn.controller.module.devicemanager |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentHashMap<java.lang.Long,Device> |
Devices.deviceIdToDeviceMap
This is the master device map that maps device IDs to
Device
objects. |
Modifier and Type | Method and Description |
---|---|
static Device |
Devices.allocateDevice(Device device,
Entity entity)
Returns a new device consisting of the entities from the old device
and an additional entity.
|
static Device |
Devices.allocateDevice(java.lang.Long deviceKey,
Entity entity,
IEntityClass entityClass)
Returns a new device.
|
static Device |
Device.allocateDevice(java.lang.Long deviceKey,
Entity entity,
IEntityClass entityClass) |
static Device |
Devices.allocateDevice(java.lang.Long deviceKey,
java.util.List<AttachmentPoint> aps,
java.util.List<AttachmentPoint> trueAPs,
java.util.Collection<Entity> entities,
IEntityClass entityClass)
Returns a new device.
|
Device |
Devices.findDestByEntity(IDevice source,
Entity dstEntity)
Gets a destination device using entity fields that corresponds with
the given source device.
|
private Device |
Devices.findDeviceByEntity(Entity entity)
|
Device |
Devices.learnDeviceByEntity(Entity entity)
|
Device |
DeviceIdIterator.next() |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.ConcurrentHashMap<java.lang.Long,Device> |
Devices.getDeviceMap()
Returns the map of device and device key.
|
java.util.Iterator<Device> |
OFMDeviceManager.queryClassByEntity(IEntityClass clazz,
java.util.EnumSet<IDeviceService.DeviceField> keyFields,
Entity entity) |
java.util.Iterator<Device> |
Devices.queryClassByEntity(IEntityClass clazz,
java.util.EnumSet<IDeviceService.DeviceField> keyFields,
Entity entity)
Returns an iterator of devices that related to the entity argument.
|
Modifier and Type | Method and Description |
---|---|
static Device |
Devices.allocateDevice(Device device,
Entity entity)
Returns a new device consisting of the entities from the old device
and an additional entity.
|
private void |
Devices.deleteDevice(Device device)
Deletes the device from
Devices.deviceIdToDeviceMap and its entities. |
private java.util.EnumSet<IDeviceService.DeviceField> |
Devices.findChangedFields(Device device,
Entity newEntity)
Checks the changed
IDeviceService.DeviceField of the device. |
protected boolean |
DeviceIterator.matches(Device value) |
private boolean |
Devices.reclassifyDevice(Device device)
This method will reclassify and reconcile a device - possibilities
are - create new device(s), remove entities from this device.
|
private void |
Devices.sendDeviceMovedNotification(Device d)
Sends update notifications to listeners.
|
boolean |
EntityToSingleDeviceIdIndex.updateIndex(Device device,
java.lang.Long deviceKey) |
boolean |
EntityToMultiDeviceIdIndex.updateIndex(Device device,
java.lang.Long deviceKey) |
abstract boolean |
DeviceIndex.updateIndex(Device device,
java.lang.Long deviceKey)
Attempts to update an index with the entities in the provided
Device . |
private boolean |
Devices.updateIndices(Device device,
java.lang.Long deviceId)
Updates both the primary and class indices for the provided device.
|
Constructor and Description |
---|
Device(Device device,
Entity newEntity)
Constructs a new device consisting of the entities from the old device
plus an additional entity.
|
Devices.RESTDevice(Device dev) |
Constructor and Description |
---|
DeviceIterator(java.util.Iterator<Device> subIterator,
IEntityClass[] entityClasses,
java.lang.Long macAddress,
java.lang.Short vlan,
java.lang.Integer ipv4Address,
java.lang.Long switchDPID,
java.lang.Integer switchPort)
Constructs a new device iterator over the key fields.
|