public class SelectGroupHandler extends Object
| Constructor and Description |
|---|
SelectGroupHandler(org.onosproject.net.group.GroupService targetGroupService,
org.onosproject.net.device.DeviceService targetDeviceService,
org.onosproject.net.driver.DriverService targetDriverService,
org.onosproject.core.ApplicationId appId)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.core.GroupId |
createGatewayGroup(org.onosproject.net.DeviceId srcDeviceId,
List<GatewayNode> nodeList)
Creates select type group description according to given deviceId.
|
org.onosproject.net.group.GroupKey |
getGroupKey(org.onosproject.net.DeviceId srcDeviceId)
Returns unique group key with supplied source device ID as a hash.
|
void |
updateGatewayGroupBuckets(org.onosproject.net.DeviceId deviceId,
List<GatewayNode> nodeList,
boolean isInsert)
Updates groupBuckets in select type group.
|
public SelectGroupHandler(org.onosproject.net.group.GroupService targetGroupService,
org.onosproject.net.device.DeviceService targetDeviceService,
org.onosproject.net.driver.DriverService targetDriverService,
org.onosproject.core.ApplicationId appId)
targetGroupService - group servicetargetDeviceService - device servicetargetDriverService - driver serviceappId - application id for group servicepublic org.onosproject.core.GroupId createGatewayGroup(org.onosproject.net.DeviceId srcDeviceId,
List<GatewayNode> nodeList)
srcDeviceId - target device id for group descriptionnodeList - gateway node list for bucket actionpublic org.onosproject.net.group.GroupKey getGroupKey(org.onosproject.net.DeviceId srcDeviceId)
srcDeviceId - source device idpublic void updateGatewayGroupBuckets(org.onosproject.net.DeviceId deviceId,
List<GatewayNode> nodeList,
boolean isInsert)
deviceId - target device id to update the groupnodeList - updated gateway node list for bucket actionisInsert - update type(add or remove)