public interface CastorStore
| Modifier and Type | Method and Description |
|---|---|
Map<org.onlab.packet.IpAddress,org.onlab.packet.MacAddress> |
getAddressMap()
Returns the map of currently known mac addresses from ARP.
|
Set<Peer> |
getAllPeers()
Returns list of all peers including the route servers.
|
Set<Peer> |
getCustomers()
Returns the list of added BGP Peers.
|
Map<String,String> |
getCustomersMap()
Returns the mapping of Customer names to their IP address.
|
Map<String,MultiPointToSinglePointIntent> |
getLayer2Intents()
Returns layer2 intents.
|
Map<Key,PointToPointIntent> |
getPeerIntents()
Returns all the peer intents.
|
Set<Peer> |
getServers()
Get the Route Servers.
|
void |
removeCustomer(Peer peer)
Removes a customer and its associated flows from the network.
|
void |
removeLayer2Intent(String key)
Removes the layer2 intent from the store.
|
void |
removePeerIntent(Key key)
Removes a peer intent from the store.
|
void |
setAddressMap(org.onlab.packet.IpAddress ip,
org.onlab.packet.MacAddress mac)
Sets the mapping from IP address to Mac.
|
void |
storeCustomer(Peer peer)
Store a Customer.
|
void |
storeLayer2Intent(String key,
MultiPointToSinglePointIntent intent)
Stores a layer2 intent.
|
void |
storePeer(Peer peer)
Store a Peer.
|
void |
storePeerIntent(Key key,
PointToPointIntent intent)
Stores a Peer Intent.
|
void |
storeServer(Peer peer)
Store a Route Server.
|
Set<Peer> getAllPeers()
void storePeer(Peer peer)
peer - The Peer to storevoid storeServer(Peer peer)
peer - The Servervoid storeCustomer(Peer peer)
peer - The Customer to be storedMap<org.onlab.packet.IpAddress,org.onlab.packet.MacAddress> getAddressMap()
void setAddressMap(org.onlab.packet.IpAddress ip,
org.onlab.packet.MacAddress mac)
ip - IP Addressmac - MAC AddressMap<Key,PointToPointIntent> getPeerIntents()
void storePeerIntent(Key key, PointToPointIntent intent)
key - The intentintent - KeyMap<String,MultiPointToSinglePointIntent> getLayer2Intents()
void storeLayer2Intent(String key, MultiPointToSinglePointIntent intent)
key - Keyintent - The intentMap<String,String> getCustomersMap()
void removeCustomer(Peer peer)
peer - The Customervoid removePeerIntent(Key key)
key - Key for the intentvoid removeLayer2Intent(String key)
key - Key for intent