public interface HostStore extends Store<HostEvent,HostStoreDelegate>
| Modifier and Type | Method and Description |
|---|---|
void |
clearAddressBindings(ConnectPoint connectPoint)
Removes any previously stored address information for a given connection
point.
|
HostEvent |
createOrUpdateHost(ProviderId providerId,
HostId hostId,
HostDescription hostDescription)
Creates a new host or updates the existing one based on the specified
description.
|
Set<PortAddresses> |
getAddressBindings()
Returns the address bindings stored for all connection points.
|
Set<PortAddresses> |
getAddressBindingsForPort(ConnectPoint connectPoint)
Returns the address bindings for a particular connection point.
|
Set<Host> |
getConnectedHosts(ConnectPoint connectPoint)
Returns the set of hosts whose location falls on the given connection point.
|
Set<Host> |
getConnectedHosts(DeviceId deviceId)
Returns the set of hosts whose location falls on the given device.
|
Host |
getHost(HostId hostId)
Returns the host with the specified identifer.
|
int |
getHostCount()
Returns the number of hosts in the store.
|
Iterable<Host> |
getHosts()
Returns a collection of all hosts in the store.
|
Set<Host> |
getHosts(org.onlab.packet.IpAddress ip)
Returns the set of hosts with the specified IP address.
|
Set<Host> |
getHosts(org.onlab.packet.MacAddress mac)
Returns the set of hosts with the specified MAC address.
|
Set<Host> |
getHosts(org.onlab.packet.VlanId vlanId)
Returns the set of all hosts within the specified VLAN.
|
void |
removeAddressBindings(PortAddresses addresses)
Removes the given addresses from the set of address information held for
a port.
|
HostEvent |
removeHost(HostId hostId)
Removes the specified host from the inventory.
|
void |
updateAddressBindings(PortAddresses addresses)
Updates the address information for a given port.
|
hasDelegate, setDelegate, unsetDelegateHostEvent createOrUpdateHost(ProviderId providerId, HostId hostId, HostDescription hostDescription)
providerId - provider identificationhostId - host identificationhostDescription - host description dataHostEvent removeHost(HostId hostId)
hostId - host identificationint getHostCount()
Iterable<Host> getHosts()
Host getHost(HostId hostId)
hostId - host identificationSet<Host> getHosts(org.onlab.packet.VlanId vlanId)
vlanId - vlan idSet<Host> getHosts(org.onlab.packet.MacAddress mac)
mac - mac addressSet<Host> getHosts(org.onlab.packet.IpAddress ip)
ip - ip addressSet<Host> getConnectedHosts(ConnectPoint connectPoint)
connectPoint - connection pointSet<Host> getConnectedHosts(DeviceId deviceId)
deviceId - infrastructure device identifiervoid updateAddressBindings(PortAddresses addresses)
addresses - the port and address informationvoid removeAddressBindings(PortAddresses addresses)
addresses - the port and address informationvoid clearAddressBindings(ConnectPoint connectPoint)
connectPoint - the connection pointSet<PortAddresses> getAddressBindings()
Set<PortAddresses> getAddressBindingsForPort(ConnectPoint connectPoint)
connectPoint - the connection point to return address information
forCopyright © 2015. All rights reserved.