public final class ReconcileUtil extends Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.util.concurrent.AsyncFunction<org.opendaylight.yangtools.yang.common.RpcResult<Void>,org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
chainBarrierFlush(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodeIdent,
FlowCapableTransactionService flowCapableTransactionService)
Flushes a chain barrier.
|
static boolean |
checkGroupPrecondition(Set<Long> installedGroupIds,
Group pendingGroup) |
static <E> int |
countTotalPushed(Iterable<ItemSyncBox<E>> groupsAddPlan) |
static <E> int |
countTotalUpdated(Iterable<ItemSyncBox<E>> groupsAddPlan) |
static <D> com.google.common.base.Function<List<org.opendaylight.yangtools.yang.common.RpcResult<D>>,org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
createRpcResultCondenser(String previousItemAction)
Creates a single rpc result of type Void honoring all partial rpc results.
|
static <D> com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<D>,org.opendaylight.yangtools.yang.common.RpcResult<Void>> |
createRpcResultToVoidFunction(String actionDescription)
Creates a single rpc result of type Void honoring all partial rpc results.
|
static List<ItemSyncBox<Group>> |
resolveAndDivideGroupDiffs(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId,
Map<Long,Group> installedGroupsArg,
Collection<Group> pendingGroups)
Returns a list of safe synchronization steps with updates.
|
static List<ItemSyncBox<Group>> |
resolveAndDivideGroupDiffs(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId,
Map<Long,Group> installedGroupsArg,
Collection<Group> pendingGroups,
boolean gatherUpdates)
Returns a list of safe synchronization steps.
|
static Map<TableKey,ItemSyncBox<Flow>> |
resolveFlowDiffsInAllTables(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId,
Map<Short,Table> tableOperationalMap,
List<Table> tablesConfigured,
boolean gatherUpdates)
Resolves flow differences in all tables.
|
static ItemSyncBox<Meter> |
resolveMeterDiffs(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId,
Map<MeterId,Meter> meterOperationalMap,
List<Meter> metersConfigured,
boolean gatherUpdates)
Resolves meter differences.
|
static List<Group> |
safeGroups(FlowCapableNode node) |
static List<Meter> |
safeMeters(FlowCapableNode node) |
static List<Table> |
safeTables(FlowCapableNode node) |
public static <D> com.google.common.base.Function<List<org.opendaylight.yangtools.yang.common.RpcResult<D>>,org.opendaylight.yangtools.yang.common.RpcResult<Void>> createRpcResultCondenser(String previousItemAction)
D
- type of rpc output (gathered in list)previousItemAction
- description for case when the triggering future contains failurepublic static <D> com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<D>,org.opendaylight.yangtools.yang.common.RpcResult<Void>> createRpcResultToVoidFunction(String actionDescription)
D
- type of rpc output (gathered in list)actionDescription
- description for case when the triggering future contains failurepublic static com.google.common.util.concurrent.AsyncFunction<org.opendaylight.yangtools.yang.common.RpcResult<Void>,org.opendaylight.yangtools.yang.common.RpcResult<Void>> chainBarrierFlush(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> nodeIdent, FlowCapableTransactionService flowCapableTransactionService)
nodeIdent
- flow capable node path - target device for routed rpcflowCapableTransactionService
- barrier rpc servicepublic static List<ItemSyncBox<Group>> resolveAndDivideGroupDiffs(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId, Map<Long,Group> installedGroupsArg, Collection<Group> pendingGroups)
nodeId
- target nodeinstalledGroupsArg
- groups resent on devicependingGroups
- groups configured for devicepublic static List<ItemSyncBox<Group>> resolveAndDivideGroupDiffs(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId, Map<Long,Group> installedGroupsArg, Collection<Group> pendingGroups, boolean gatherUpdates)
nodeId
- target nodeinstalledGroupsArg
- groups resent on devicependingGroups
- groups configured for devicegatherUpdates
- check content of pending item if present on device (and create update task eventually)public static boolean checkGroupPrecondition(Set<Long> installedGroupIds, Group pendingGroup)
public static <E> int countTotalPushed(Iterable<ItemSyncBox<E>> groupsAddPlan)
public static <E> int countTotalUpdated(Iterable<ItemSyncBox<E>> groupsAddPlan)
public static ItemSyncBox<Meter> resolveMeterDiffs(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId, Map<MeterId,Meter> meterOperationalMap, List<Meter> metersConfigured, boolean gatherUpdates)
nodeId
- target nodemeterOperationalMap
- meters present on devicemetersConfigured
- meters configured for devicegatherUpdates
- check content of pending item if present on device (and create update task eventually)public static Map<TableKey,ItemSyncBox<Flow>> resolveFlowDiffsInAllTables(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId, Map<Short,Table> tableOperationalMap, List<Table> tablesConfigured, boolean gatherUpdates)
nodeId
- target nodetableOperationalMap
- flow-tables resent on devicetablesConfigured
- flow-tables configured for devicegatherUpdates
- check content of pending item if present on device (and create update task eventually)TableKey
, value=ItemSyncBox
of safe synchronization stepspublic static List<Group> safeGroups(FlowCapableNode node)
public static List<Table> safeTables(FlowCapableNode node)
public static List<Meter> safeMeters(FlowCapableNode node)
Copyright © 2018 OpenDaylight. All rights reserved.