Package | Description |
---|---|
etri.sdn.controller.module.devicemanager |
Modifier and Type | Field and Description |
---|---|
protected Entity[] |
Device.entities |
protected Entity |
IndexedEntity.entity |
Modifier and Type | Method and Description |
---|---|
private Entity |
OFMDeviceManager.getDestEntityFromPacket(Ethernet eth)
Gets a (partial) entity for the destination from the packet.
|
Entity[] |
Device.getEntities() |
private Entity |
OFMDeviceManager.getSourceEntityFromPacket(Ethernet eth,
IOFSwitch sw,
int ofPort)
Parses an entity from an
Ethernet packet. |
Modifier and Type | Method and Description |
---|---|
private boolean |
Devices.allKeyFieldsPresent(Entity e,
java.util.EnumSet<IDeviceService.DeviceField> keyFields)
Checks if the entity e has all the keyFields set.
|
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) |
IEntityClass |
OFMDefaultEntityClassifier.classifyEntity(Entity entity)
This choose a proper IEntityClass object to which the entity belongs.
|
IEntityClass |
IEntityClassifierService.classifyEntity(Entity entity)
Classifies the given entity into an IEntityClass.
|
int |
Entity.compareTo(Entity o) |
protected int |
Device.entityIndex(Entity entity)
Checks whether the device contains the specified entity.
|
java.lang.Long |
EntityToSingleDeviceIdIndex.findByEntity(Entity entity)
|
private java.util.EnumSet<IDeviceService.DeviceField> |
Devices.findChangedFields(Device device,
Entity newEntity)
Checks the changed
IDeviceService.DeviceField of the 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)
|
boolean |
Devices.isEntityAllowed(Entity entity,
IEntityClass entityClass)
Is this entity is allowed?
|
Device |
Devices.learnDeviceByEntity(Entity entity)
|
java.util.Iterator<java.lang.Long> |
EntityToSingleDeviceIdIndex.queryByEntity(Entity entity) |
java.util.Iterator<java.lang.Long> |
EntityToMultiDeviceIdIndex.queryByEntity(Entity entity) |
abstract java.util.Iterator<java.lang.Long> |
DeviceIndex.queryByEntity(Entity entity)
Finds all device keys in the index that match the given entity
on all the key fields for this index.
|
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.
|
IEntityClass |
OFMDefaultEntityClassifier.reclassifyEntity(IDevice curDevice,
Entity entity) |
IEntityClass |
IEntityClassifierService.reclassifyEntity(IDevice curDevice,
Entity entity)
Reclassifies the given entity into a class.
|
void |
EntityToSingleDeviceIdIndex.removeEntity(Entity entity) |
void |
EntityToMultiDeviceIdIndex.removeEntity(Entity entity) |
abstract void |
DeviceIndex.removeEntity(Entity entity)
Removes the entry for the given entity.
|
private void |
Devices.removeEntity(Entity removed,
IEntityClass entityClass,
java.lang.Long deviceKey,
java.util.Collection<Entity> others)
Removes the device of the deviceKey argument from the single and multi indices.
|
void |
EntityToSingleDeviceIdIndex.removeEntity(Entity entity,
java.lang.Long deviceKey) |
void |
EntityToMultiDeviceIdIndex.removeEntity(Entity entity,
java.lang.Long deviceKey) |
abstract void |
DeviceIndex.removeEntity(Entity entity,
java.lang.Long deviceKey)
Removes the given device key from the index for the given entity.
|
void |
DeviceIndex.removeEntityIfNeeded(Entity entity,
java.lang.Long deviceKey,
java.util.Collection<Entity> others)
Removes the give device from the index only if this the collection
of others does not contain an entity that is identical on all the key
fields for this index.
|
void |
EntityToSingleDeviceIdIndex.updateIndex(Entity entity,
java.lang.Long deviceKey) |
void |
EntityToMultiDeviceIdIndex.updateIndex(Entity entity,
java.lang.Long deviceKey) |
abstract void |
DeviceIndex.updateIndex(Entity entity,
java.lang.Long deviceKey)
Adds a mapping from the given entity to the given device key.
|
private void |
Devices.updateSecondaryIndices(Entity entity,
IEntityClass entityClass,
java.lang.Long deviceKey)
Updates the secondary indices for the given entity and associated
entity classes.
|
Modifier and Type | Method and Description |
---|---|
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.
|
private void |
Devices.removeEntity(Entity removed,
IEntityClass entityClass,
java.lang.Long deviceKey,
java.util.Collection<Entity> others)
Removes the device of the deviceKey argument from the single and multi indices.
|
void |
DeviceIndex.removeEntityIfNeeded(Entity entity,
java.lang.Long deviceKey,
java.util.Collection<Entity> others)
Removes the give device from the index only if this the collection
of others does not contain an entity that is identical on all the key
fields for this index.
|
Constructor and Description |
---|
Device(Device device,
Entity newEntity)
Constructs a new device consisting of the entities from the old device
plus an additional entity.
|
Device(java.lang.Long deviceKey,
Entity entity,
IEntityClass entityClass,
java.util.Collection<AttachmentPoint> attachmentPoints)
Creates a device from an entities.
|
IndexedEntity(java.util.EnumSet<IDeviceService.DeviceField> keyFields,
Entity entity)
Creates a new
IndexedEntity for the given Entity using
the provided key fields. |
Constructor and Description |
---|
Device(java.lang.Long deviceKey,
java.util.Collection<AttachmentPoint> oldAPs,
java.util.Collection<AttachmentPoint> attachmentPoints,
java.util.Collection<Entity> entities,
IEntityClass entityClass)
Creates a device from a set of entities.
|