Package | Description |
---|---|
etri.sdn.controller.module.devicemanager |
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.CopyOnWriteArrayList<AttachmentPoint> |
Device.attachmentPoints
The current attachment points for the device.
|
protected java.util.concurrent.CopyOnWriteArrayList<AttachmentPoint> |
Device.oldAPs
The old attachment points for the device that were valid
no more than INACTIVITY_TIME ago.
|
Modifier and Type | Method and Description |
---|---|
private java.util.Map<java.lang.Long,AttachmentPoint> |
Device.getAPMap(java.util.List<AttachmentPoint> apList)
Given a list of attachment points, the procedure would return
a map of attachment points for each L2 domain.
|
private java.util.List<AttachmentPoint> |
Device.getDuplicateAttachmentPoints(java.util.List<AttachmentPoint> oldAPList,
java.util.Map<java.lang.Long,AttachmentPoint> apMap)
Gets a list of duplicate attachment points, given a list of old attachment
points and one attachment point per L2 domain.
|
Modifier and Type | Method and Description |
---|---|
int |
Devices.AttachmentPointComparator.compare(AttachmentPoint oldAP,
AttachmentPoint newAP) |
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.
|
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 java.util.Map<java.lang.Long,AttachmentPoint> |
Device.getAPMap(java.util.List<AttachmentPoint> apList)
Given a list of attachment points, the procedure would return
a map of attachment points for each L2 domain.
|
private java.util.List<AttachmentPoint> |
Device.getDuplicateAttachmentPoints(java.util.List<AttachmentPoint> oldAPList,
java.util.Map<java.lang.Long,AttachmentPoint> apMap)
Gets a list of duplicate attachment points, given a list of old attachment
points and one attachment point per L2 domain.
|
private java.util.List<AttachmentPoint> |
Device.getDuplicateAttachmentPoints(java.util.List<AttachmentPoint> oldAPList,
java.util.Map<java.lang.Long,AttachmentPoint> apMap)
Gets a list of duplicate attachment points, given a list of old attachment
points and one attachment point per L2 domain.
|
private boolean |
Device.removeExpiredAttachmentPoints(java.util.List<AttachmentPoint> apList)
Removes all attachment points that are older than
INACTIVITY_INTERVAL
from the list. |
Constructor and Description |
---|
AttachmentPoint(AttachmentPoint ap)
Constructor with an AttachmentPoint instance
|
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.
|
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.
|
Device(java.lang.Long deviceKey,
Entity entity,
IEntityClass entityClass,
java.util.Collection<AttachmentPoint> attachmentPoints)
Creates a device from an entities.
|