public class AbstractVirtualStore<E extends org.onosproject.event.Event,D extends org.onosproject.store.StoreDelegate<E>> extends Object implements org.onosproject.incubator.net.virtual.VirtualStore<E,D>
| Modifier and Type | Field and Description |
|---|---|
protected Map<org.onosproject.incubator.net.virtual.NetworkId,D> |
delegateMap |
| Constructor and Description |
|---|
AbstractVirtualStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId) |
protected void |
notifyDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId,
E event)
Notifies the delegate with the specified event.
|
protected void |
notifyDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId,
List<E> events)
Notifies the delegate with the specified list of events.
|
void |
setDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId,
D delegate) |
void |
unsetDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId,
D delegate) |
public void setDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId,
D delegate)
public void unsetDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId,
D delegate)
public boolean hasDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId)
protected void notifyDelegate(org.onosproject.incubator.net.virtual.NetworkId networkId,
E event)
networkId - a virtual network identifierevent - event to delegate