@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.AbstractLifecycle
protected void stop()
stop
in class org.opendaylight.infrautils.inject.AbstractLifecycle
public com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> installFlow(FlowEntity flowEntity)
IMdsalApiManager
installFlow
in interface IMdsalApiManager
public 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)
IMdsalApiManager
installFlow
in interface IMdsalApiManager
public com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> installFlow(BigInteger dpId, FlowEntity flowEntity)
IMdsalApiManager
installFlow
in interface IMdsalApiManager
public com.google.common.util.concurrent.ListenableFuture<Void> removeFlow(BigInteger dpId, short tableId, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId flowId)
IMdsalApiManager
removeFlow
in interface IMdsalApiManager
public 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)
IMdsalApiManager
removeFlow
in interface IMdsalApiManager
public com.google.common.util.concurrent.CheckedFuture<Void,org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException> removeFlow(FlowEntity flowEntity)
IMdsalApiManager
removeFlow
in interface IMdsalApiManager
public void removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx, FlowEntity flowEntity) throws ExecutionException, InterruptedException
IMdsalApiManager
removeFlow
in interface IMdsalApiManager
tx
- The transaction to use.flowEntity
- The flow entity.ExecutionException
InterruptedException
public 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
IMdsalApiManager
removeFlow
in interface IMdsalApiManager
tx
- The transaction to use.dpId
- The DPN identifier.flow
- The flow.ExecutionException
InterruptedException
public void removeFlow(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, String flowId, short tableId) throws ExecutionException, InterruptedException
IMdsalApiManager
removeFlow
in interface IMdsalApiManager
tx
- The transaction to use.dpId
- The DPN identifier.flowId
- The flow identifier.tableId
- The table identifier.ExecutionException
InterruptedException
public 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
IMdsalApiManager
removeFlow
in interface IMdsalApiManager
tx
- The transaction to use.dpId
- The DPN identifier.flowKey
- The flow key.tableId
- The table identifier.ExecutionException
InterruptedException
public void removeGroup(GroupEntity groupEntity)
IMdsalApiManager
removeGroup
in interface IMdsalApiManager
public void removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx, GroupEntity groupEntity) throws ExecutionException, InterruptedException
IMdsalApiManager
removeGroup
in interface IMdsalApiManager
tx
- The transaction to use.groupEntity
- The group to remove.ExecutionException
InterruptedException
public void removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group group) throws ExecutionException, InterruptedException
IMdsalApiManager
removeGroup
in interface IMdsalApiManager
tx
- The transaction to use.dpId
- The DPN identifier.group
- The group to remove.ExecutionException
InterruptedException
public void removeGroup(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, long groupId) throws ExecutionException, InterruptedException
IMdsalApiManager
removeGroup
in interface IMdsalApiManager
tx
- The transaction to use.dpId
- The DPN identifier.groupId
- The group identifier of the group to remove.ExecutionException
InterruptedException
public void syncRemoveFlow(FlowEntity flowEntity, long delayTime)
IMdsalApiManager
syncRemoveFlow
in interface IMdsalApiManager
public void syncRemoveFlow(FlowEntity flowEntity)
IMdsalApiManager
syncRemoveFlow
in interface IMdsalApiManager
public void syncInstallFlow(FlowEntity flowEntity, long delayTime)
IMdsalApiManager
syncInstallFlow
in interface IMdsalApiManager
public void syncInstallFlow(FlowEntity flowEntity)
IMdsalApiManager
syncInstallFlow
in interface IMdsalApiManager
public void syncInstallGroup(GroupEntity groupEntity)
IMdsalApiManager
syncInstallGroup
in interface IMdsalApiManager
public void syncRemoveGroup(GroupEntity groupEntity)
IMdsalApiManager
syncRemoveGroup
in interface IMdsalApiManager
public void addFlow(TypedWriteTransaction<Datastore.Configuration> tx, FlowEntity flowEntity)
IMdsalApiManager
addFlow
in interface IMdsalApiManager
tx
- 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)
IMdsalApiManager
addFlow
in interface IMdsalApiManager
tx
- The transaction to use.dpId
- The DPN identifier.flow
- The flow.public void addGroup(TypedWriteTransaction<Datastore.Configuration> tx, GroupEntity groupEntity)
IMdsalApiManager
addGroup
in interface IMdsalApiManager
tx
- 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)
IMdsalApiManager
addGroup
in interface IMdsalApiManager
tx
- 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 IMdsalApiManager
ExecutionException
InterruptedException
public void removeBucket(TypedReadWriteTransaction<Datastore.Configuration> tx, BigInteger dpId, long groupId, long bucketId) throws ExecutionException, InterruptedException
removeBucket
in interface IMdsalApiManager
ExecutionException
InterruptedException
public boolean groupExists(BigInteger dpId, long groupId)
IMdsalApiManager
groupExists
in interface IMdsalApiManager
dpId
- dpn idgroupId
- OF group idCopyright © 2019 OpenDaylight. All rights reserved.