public interface NodeService
NodeSupplierService
.Modifier and Type | Method and Description |
---|---|
void |
addListener(NodeListener listener)
Registers a listener for all node-related events.
|
Set<NodeListener> |
getListeners()
Returns the set of listeners for node-related events.
|
Node |
getNode(IpAddress ip,
SegmentId segmentId)
|
Node |
getNode(NodeId id)
Returns a specific node from the domain, based upon the globally-unique
node ID.
|
Iterator<Node> |
getNodes()
Returns an iterator over all nodes in the domain.
|
Set<Node> |
getNodes(ConnectionPoint cp)
Returns all nodes in the domain where the nodes' most recent location
matches the given connection point.
|
Set<Node> |
getNodes(DeviceId device)
Returns all nodes in the domain where the nodes' most recent location
matches a connection point on the given device ID.
|
Set<Node> |
getNodes(IpAddress ip)
Returns all nodes in the domain with a given IP address.
|
Set<Node> |
getNodes(MacAddress mac,
SegmentId segmentId)
Returns all nodes in the domain with a given MAC address.
|
Iterator<Node> |
getNodes(NodeFilter filter)
Returns an iterator over all nodes which match the given filter in the
domain.
|
Iterator<Node> |
getNodes(SegmentId segId)
Returns an iterator all nodes in a given segment within the domain.
|
void |
removeListener(NodeListener listener)
Unregisters a listener from node-related events, regardless of which
node-related events the listener was registered to receive.
|
Iterator<Node> getNodes()
Iterator<Node> getNodes(SegmentId segId)
segId
- the given segment IDSet<Node> getNodes(IpAddress ip)
SegmentId
.
If no matches exist, an empty set will be returned.
ip
- the given IP addressSet<Node> getNodes(MacAddress mac, SegmentId segmentId)
IpAddress
within the given SegmentId
.
If no matches exist, an empty set will be returned.
mac
- the given MAC addresssegmentId
- the given segment IDSet<Node> getNodes(ConnectionPoint cp)
If no matches exist, an empty set will be returned.
cp
- the given connection pointSet<Node> getNodes(DeviceId device)
If no matches exist, an empty set will be returned.
device
- the given device IDIterator<Node> getNodes(NodeFilter filter)
filter
- the given filterNode getNode(IpAddress ip, SegmentId segmentId)
IpAddress
and
SegmentId
.ip
- IP addresssegmentId
- segment IDNode getNode(NodeId id)
id
- Node IDvoid addListener(NodeListener listener)
listener
- the event listenervoid removeListener(NodeListener listener)
listener
- the event listenerIllegalArgumentException
- if the listener was not registeredSet<NodeListener> getListeners()
Copyright © 2015. All Rights Reserved.