@Singleton public class MDSALManager extends org.opendaylight.infrautils.inject.AbstractLifecycle implements IMdsalApiManager
| Constructor and Description |
|---|
MDSALManager(org.opendaylight.controller.md.sal.binding.api.DataBroker db) |
MDSALManager(org.opendaylight.controller.md.sal.binding.api.DataBroker db,
org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService pktProcService)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBucket(TypedReadWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
long groupId,
org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.buckets.Bucket bucket) |
void |
addFlow(TypedWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flow)
Adds the given flow.
|
void |
addFlow(TypedWriteTransaction<Datastore.Configuration> tx,
FlowEntity flowEntity)
Adds the given flow.
|
void |
addGroup(TypedWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group group)
Adds the given group using the given transaction.
|
void |
addGroup(TypedWriteTransaction<Datastore.Configuration> tx,
GroupEntity groupEntity)
Adds the given group using the given transaction.
|
boolean |
groupExists(BigInteger dpId,
long groupId)
Check if OF group exist on DPN.
|
com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> |
installFlow(BigInteger dpId,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flowEntity)
Adds a flow.
|
com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> |
installFlow(BigInteger dpId,
FlowEntity flowEntity)
Adds a flow.
|
com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> |
installFlow(FlowEntity flowEntity)
Adds a flow.
|
void |
removeBucket(TypedReadWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
long groupId,
long bucketId) |
com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> |
removeFlow(BigInteger dpId,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flowEntity)
Removes a flow.
|
com.google.common.util.concurrent.ListenableFuture<Void> |
removeFlow(BigInteger dpId,
short tableId,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId flowId)
Removes a flow.
|
com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> |
removeFlow(FlowEntity flowEntity)
Removes a flow.
|
void |
removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flow)
Removes the given flow.
|
void |
removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.FlowKey flowKey,
short tableId)
Removes the given flow.
|
void |
removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
String flowId,
short tableId)
Removes the given flow.
|
void |
removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx,
FlowEntity flowEntity)
Removes the given flow.
|
void |
removeGroup(GroupEntity groupEntity)
Remove a group.
|
void |
removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group group)
Remove a group using the given transaction.
|
void |
removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx,
BigInteger dpId,
long groupId)
Remove a group using the given transaction.
|
void |
removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx,
GroupEntity groupEntity)
Remove a group using the given transaction.
|
protected void |
start() |
protected void |
stop() |
void |
syncInstallFlow(FlowEntity flowEntity)
Installs a flow.
|
void |
syncInstallFlow(FlowEntity flowEntity,
long delayTime)
Install a flow.
|
void |
syncInstallGroup(GroupEntity groupEntity)
Installs a group.
|
void |
syncRemoveFlow(FlowEntity flowEntity)
Removes a flow.
|
void |
syncRemoveFlow(FlowEntity flowEntity,
long delayTime)
API to remove the flow on Data Plane Node synchronously.
|
void |
syncRemoveGroup(GroupEntity groupEntity)
API to remove the Group on Data Plane Node synchronously.
|
@Deprecated public MDSALManager(org.opendaylight.controller.md.sal.binding.api.DataBroker db, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService pktProcService)
db - dataBroker referencepktProcService - PacketProcessingService for sending the packet outs@Inject public MDSALManager(org.opendaylight.controller.md.sal.binding.api.DataBroker db)
protected void start()
start in class org.opendaylight.infrautils.inject.AbstractLifecycleprotected void stop()
stop in class org.opendaylight.infrautils.inject.AbstractLifecyclepublic com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> installFlow(FlowEntity flowEntity)
IMdsalApiManagerinstallFlow in interface IMdsalApiManagerpublic com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> installFlow(BigInteger dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flowEntity)
IMdsalApiManagerinstallFlow in interface IMdsalApiManagerpublic com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> installFlow(BigInteger dpId, FlowEntity flowEntity)
IMdsalApiManagerinstallFlow in interface IMdsalApiManagerpublic com.google.common.util.concurrent.ListenableFuture<Void> removeFlow(BigInteger dpId, short tableId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId flowId)
IMdsalApiManagerremoveFlow in interface IMdsalApiManagerpublic com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> removeFlow(BigInteger dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flowEntity)
IMdsalApiManagerremoveFlow in interface IMdsalApiManagerpublic com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> removeFlow(FlowEntity flowEntity)
IMdsalApiManagerremoveFlow in interface IMdsalApiManagerpublic void removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx, FlowEntity flowEntity) throws ExecutionException, InterruptedException
IMdsalApiManagerremoveFlow in interface IMdsalApiManagertx - The transaction to use.flowEntity - The flow entity.ExecutionExceptionInterruptedExceptionpublic void removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flow) throws ExecutionException, InterruptedException
IMdsalApiManagerremoveFlow in interface IMdsalApiManagertx - The transaction to use.dpId - The DPN identifier.flow - The flow.ExecutionExceptionInterruptedExceptionpublic void removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, String flowId, short tableId) throws ExecutionException, InterruptedException
IMdsalApiManagerremoveFlow in interface IMdsalApiManagertx - The transaction to use.dpId - The DPN identifier.flowId - The flow identifier.tableId - The table identifier.ExecutionExceptionInterruptedExceptionpublic void removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.FlowKey flowKey, short tableId) throws ExecutionException, InterruptedException
IMdsalApiManagerremoveFlow in interface IMdsalApiManagertx - The transaction to use.dpId - The DPN identifier.flowKey - The flow key.tableId - The table identifier.ExecutionExceptionInterruptedExceptionpublic void removeGroup(GroupEntity groupEntity)
IMdsalApiManagerremoveGroup in interface IMdsalApiManagerpublic void removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx, GroupEntity groupEntity) throws ExecutionException, InterruptedException
IMdsalApiManagerremoveGroup in interface IMdsalApiManagertx - The transaction to use.groupEntity - The group to remove.ExecutionExceptionInterruptedExceptionpublic void removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group group) throws ExecutionException, InterruptedException
IMdsalApiManagerremoveGroup in interface IMdsalApiManagertx - The transaction to use.dpId - The DPN identifier.group - The group to remove.ExecutionExceptionInterruptedExceptionpublic void removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, long groupId) throws ExecutionException, InterruptedException
IMdsalApiManagerremoveGroup in interface IMdsalApiManagertx - The transaction to use.dpId - The DPN identifier.groupId - The group identifier of the group to remove.ExecutionExceptionInterruptedExceptionpublic void syncRemoveFlow(FlowEntity flowEntity, long delayTime)
IMdsalApiManagersyncRemoveFlow in interface IMdsalApiManagerpublic void syncRemoveFlow(FlowEntity flowEntity)
IMdsalApiManagersyncRemoveFlow in interface IMdsalApiManagerpublic void syncInstallFlow(FlowEntity flowEntity, long delayTime)
IMdsalApiManagersyncInstallFlow in interface IMdsalApiManagerpublic void syncInstallFlow(FlowEntity flowEntity)
IMdsalApiManagersyncInstallFlow in interface IMdsalApiManagerpublic void syncInstallGroup(GroupEntity groupEntity)
IMdsalApiManagersyncInstallGroup in interface IMdsalApiManagerpublic void syncRemoveGroup(GroupEntity groupEntity)
IMdsalApiManagersyncRemoveGroup in interface IMdsalApiManagerpublic void addFlow(TypedWriteTransaction<Datastore.Configuration> tx, FlowEntity flowEntity)
IMdsalApiManageraddFlow in interface IMdsalApiManagertx - The transaction to use.flowEntity - The flow entity.public void addFlow(TypedWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow flow)
IMdsalApiManageraddFlow in interface IMdsalApiManagertx - The transaction to use.dpId - The DPN identifier.flow - The flow.public void addGroup(TypedWriteTransaction<Datastore.Configuration> tx, GroupEntity groupEntity)
IMdsalApiManageraddGroup in interface IMdsalApiManagertx - The transaction to use.groupEntity - The group to add.public void addGroup(TypedWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group group)
IMdsalApiManageraddGroup in interface IMdsalApiManagertx - The transaction to use.dpId - The DPN identifier.group - The group to add.public void addBucket(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, long groupId, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.group.buckets.Bucket bucket) throws ExecutionException, InterruptedException
addBucket in interface IMdsalApiManagerExecutionExceptionInterruptedExceptionpublic void removeBucket(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, long groupId, long bucketId) throws ExecutionException, InterruptedException
removeBucket in interface IMdsalApiManagerExecutionExceptionInterruptedExceptionpublic boolean groupExists(BigInteger dpId, long groupId)
IMdsalApiManagergroupExists in interface IMdsalApiManagerdpId - dpn idgroupId - OF group idCopyright © 2020 OpenDaylight. All rights reserved.