public interface NodeService
Interested listeners may register as NetworkNodeListeners,
to subscribe for end host related events.
Methods are provided that:
| Modifier and Type | Method and Description |
|---|---|
void |
addAllHostInDataBase() |
boolean |
addCfgHost(MacAddress mac,
IpAddress ip,
VId vlan,
DataPathId dpid,
BigPortNumber portNum)
Adding a static host
|
boolean |
addCtlAddrManager(VId vid,
IpAddress ipAddr,
IpAddress maskIpAddr,
MacAddress macAddr) |
void |
addNetworkNodeListener(NetworkNodeListener nnl)
Registers the specified listener for end host related events.
|
void |
addNodeFlowEntry(MacAddress srcMac,
MacAddress dstMac,
Object o) |
void |
clearNodeTable()
Clears all learned end nodes from the controller.
|
void |
clearNodeTable(Set<VId> vids)
Clears the learned end nodes for the given set of VLANs.
|
void |
clearNodeTable(VId vid)
Clears the learned end nodes for the given VLAN.
|
void |
delAllNode(DataPathId dpId) |
boolean |
delCfgHost(DataPathId dpId,
BigPortNumber port)
Deleting a static configured host
|
boolean |
delCfgHost(MacAddress mac,
VId vlan)
Deleting a static host
|
boolean |
delCtlAddrManager(VId vid,
IpAddress ipAddr,
IpAddress maskIpAddr,
MacAddress macAddr) |
void |
deleteAllHostInDataBase() |
ConcurrentMap<VId,CtlAddrEntity> |
getAllCtlAddrManager() |
List<Entity> |
getAllHost(DataPathId dpId,
BigPortNumber port)
get all host entry
|
List<Entity> |
getAllStaticHost()
Get all the static hosts information
|
List<Entity> |
getAllStaticHost(DataPathId dpId,
BigPortNumber port)
Get all the static hosts information
|
ARPTable |
getArpTable(VId vid)
Returns the ARP table for the given VLAN.
|
Entity |
getCfgHost(MacAddress mac,
VId vid)
Get a static configured host
|
CtlAddrEntity |
getCtlAddrManager(VId vid) |
IpAddress |
getIpAddress(MacAddress mac,
VId vid)
Returns the IP Address for the given MAC address and VLAN.
|
MacAddress |
getMacAddress(IpAddress ip,
VId vid)
Returns the MAC Address for the given IP address and VLAN.
|
NetworkNode |
getNetworkNode(IpAddress ip,
VId vid)
Returns the end host for the given IP address and VLAN.
|
NetworkNode |
getNetworkNode(MacAddress mac,
VId vid)
Returns the end host for the given MAC address and VLAN.
|
Set<NetworkNode> |
getNetworkNodes(VId vid)
Returns the set of end hosts for the given VLAN.
|
long |
getNodeCounts() |
Set<VId> |
getVnetIDs()
Returns the set of VLAN identifiers learnt in the network,
via the end hosts.
|
boolean |
isStaticHost(VId vid,
MacAddress macAddr)
decide a host as static host
|
void |
notifyDstMacOnly(boolean isDstMacOnly)
notify node manager layer2 dstmac enable or not
when enable, arp table create by MAC
when disable ,arp table create by IP
added by s03140 for layer2DstMacAddrOnly
|
void |
removeArpbyPort(DataPathId dpId,
BigPortNumber portNumber)
remove arp table when port is down or abnormal
added by s03140 for 201312110058
|
void |
removeNetworkNodeListener(NetworkNodeListener nnl)
Removes the specified listener from the Node Manager service.
|
void |
removeNodeFlowEntry(MacAddress srcMac,
MacAddress dstMac,
Object o) |
void |
setHostAging()
Setting All the Hosts to aging
|
void |
setHostNoAging()
Setting All the Hosts not to aging
|
NetworkNode getNetworkNode(MacAddress mac, VId vid)
mac - the MAC address of the end hostvid - the identifier for the VLANNullPointerException - if either parameter is nullNetworkNode getNetworkNode(IpAddress ip, VId vid)
ip - the IP address of the end hostvid - the VLAN to which the end host belongsNullPointerException - if either parameter is nullSet<NetworkNode> getNetworkNodes(VId vid)
vid - the VLAN to which the end hosts belongNullPointerException - if vid is nullMacAddress getMacAddress(IpAddress ip, VId vid)
ip - the IP address of the end hostvid - the VLAN to which the end host belongsNullPointerException - if either parameter is nullIpAddress getIpAddress(MacAddress mac, VId vid)
mac - the MAC address of the end hostvid - the VLAN to which the end host belongsNullPointerException - if either parameter is null
added by s03140 for layer2DstMacAddrOnlyvoid clearNodeTable(VId vid)
vid - the VLAN identifierNullPointerException - if vid is nullvoid clearNodeTable(Set<VId> vids)
vids - the set of VLAN identifiersNullPointerException - if the set is null, or if any of the
entries in the set is nullvoid clearNodeTable()
ARPTable getArpTable(VId vid)
vid - the VLAN identifierNullPointerException - if vid is nullSet<VId> getVnetIDs()
void addNetworkNodeListener(NetworkNodeListener nnl)
nnl - the listener to be registeredNullPointerException - if nnl is nullvoid removeNetworkNodeListener(NetworkNodeListener nnl)
nnl - the listener to be removedNullPointerException - if nnl is nullvoid addNodeFlowEntry(MacAddress srcMac, MacAddress dstMac, Object o)
void removeNodeFlowEntry(MacAddress srcMac, MacAddress dstMac, Object o)
void delAllNode(DataPathId dpId)
void removeArpbyPort(DataPathId dpId, BigPortNumber portNumber)
void setHostNoAging()
void setHostAging()
boolean addCfgHost(MacAddress mac, IpAddress ip, VId vlan, DataPathId dpid, BigPortNumber portNum)
mac - ip - vlan - dpid - portNum - boolean delCfgHost(MacAddress mac, VId vlan)
mac - vlan - List<Entity> getAllHost(DataPathId dpId, BigPortNumber port)
dpId - device idport - port idvoid addAllHostInDataBase()
void deleteAllHostInDataBase()
void notifyDstMacOnly(boolean isDstMacOnly)
long getNodeCounts()
boolean delCfgHost(DataPathId dpId, BigPortNumber port)
dpId - device idport - port idboolean isStaticHost(VId vid, MacAddress macAddr)
vid - vlan idmac - mac addressList<Entity> getAllStaticHost(DataPathId dpId, BigPortNumber port)
dpId, - device idport - port idboolean addCtlAddrManager(VId vid, IpAddress ipAddr, IpAddress maskIpAddr, MacAddress macAddr)
boolean delCtlAddrManager(VId vid, IpAddress ipAddr, IpAddress maskIpAddr, MacAddress macAddr)
CtlAddrEntity getCtlAddrManager(VId vid)
ConcurrentMap<VId,CtlAddrEntity> getAllCtlAddrManager()
Entity getCfgHost(MacAddress mac, VId vid)
mac - host MAC Addressvid - vlan idCopyright © 2014. All Rights Reserved.