public final class VBridgeEntity extends Object
VBridgeEntity describes the entity of the vBridge in a cluster.
This class is used to associate only one MAC address aging task with a vBridge in a cluster.
| Constructor and Description |
|---|
VBridgeEntity(VTNManagerProvider provider,
VBridgeIdentifier ident,
VtnVbridgeConfig config)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(VtnVbridgeConfig config)
Apply new configuration of the vBridge.
|
void |
destroy()
Destroy this vBridge entity.
|
boolean |
register(org.opendaylight.controller.md.sal.common.api.clustering.Entity ent)
Register a candidate for ownership of this vBridge entity.
|
void |
startAging()
Start the MAC address aging task for the target vBridge.
|
void |
stopAging(boolean jeopardy)
Stop the MAC address aging task associated with the target vBridge.
|
public VBridgeEntity(VTNManagerProvider provider, VBridgeIdentifier ident, VtnVbridgeConfig config)
provider - VTN Manager provider service.ident - The identifier for the target vBridge.config - The configuration of the target vBridge.public void startAging()
public void stopAging(boolean jeopardy)
jeopardy - true indicates the cluster is in jeopardy
state.public void apply(VtnVbridgeConfig config)
config - The configuration of the target vBridge.public boolean register(org.opendaylight.controller.md.sal.common.api.clustering.Entity ent)
ent - The entity that specifies the target vBridge.true on success. false on failure.public void destroy()
Copyright © 2018 OpenDaylight. All rights reserved.