本文整理了Java中org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.GroupKey.getGroupId()
方法的一些代码示例,展示了GroupKey.getGroupId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GroupKey.getGroupId()
方法的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.GroupKey
类名称:GroupKey
方法名:getGroupId
暂无
代码示例来源:origin: org.opendaylight.controller.model/model-flow-base
private GroupImpl(GroupBuilder base) {
if (base.getKey() == null) {
this._key = new GroupKey(
base.getGroupId()
);
this._groupId = base.getGroupId();
} else {
this._key = base.getKey();
this._groupId = _key.getGroupId();
}
this._buckets = base.getBuckets();
this._containerName = base.getContainerName();
this._groupName = base.getGroupName();
this._groupType = base.getGroupType();
this._barrier = base.isBarrier();
switch (base.augmentation.size()) {
case 0:
this.augmentation = Collections.emptyMap();
break;
case 1:
final Map.Entry<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>> e = base.augmentation.entrySet().iterator().next();
this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>>singletonMap(e.getKey(), e.getValue());
break;
default :
this.augmentation = new HashMap<>(base.augmentation);
}
}
代码示例来源:origin: org.opendaylight.openflowplugin.applications/notification-supplier
@Override
public GroupRemoved deleteNotification(final InstanceIdentifier<Group> path) {
Preconditions.checkArgument(path != null);
final GroupRemovedBuilder builder = new GroupRemovedBuilder();
builder.setGroupId(path.firstKeyOf(Group.class, GroupKey.class).getGroupId());
builder.setGroupRef(new GroupRef(path));
builder.setNode(createNodeRef(path));
return builder.build();
}
}
代码示例来源:origin: org.opendaylight.controller.model/model-flow-base
public GroupBuilder(Group base) {
if (base.getKey() == null) {
this._key = new GroupKey(
base.getGroupId()
);
this._groupId = base.getGroupId();
} else {
this._key = base.getKey();
this._groupId = _key.getGroupId();
}
this._buckets = base.getBuckets();
this._containerName = base.getContainerName();
this._groupName = base.getGroupName();
this._groupType = base.getGroupType();
this._barrier = base.isBarrier();
if (base instanceof GroupImpl) {
GroupImpl _impl = (GroupImpl) base;
this.augmentation = new HashMap<>(_impl.augmentation);
}
}
代码示例来源:origin: org.opendaylight.tsdr/tsdr-datacollection
} else if (ia.getKey() instanceof GroupKey) {
GroupKey gk = (GroupKey) ia.getKey();
rec.setKeyValue("" + gk.getGroupId().getValue());
} else if (ia.getKey() instanceof NodeConnectorKey) {
NodeConnectorKey nck = (NodeConnectorKey) ia.getKey();
内容来源于网络,如有侵权,请联系作者删除!