L - the type of the protocol specific location, typically a subclass of NodeLocationpublic final class Discovery<L> extends Object
| Constructor and Description |
|---|
Discovery() |
| Modifier and Type | Method and Description |
|---|---|
<N> void |
discoverChildren(Resource<L> parent,
ResourceType<L> childType,
Session<L> session,
Consumer<Resource<L>> resourceConsumer)
Discovers children of the given type underneath the given parent.
|
public <N> void discoverChildren(Resource<L> parent, ResourceType<L> childType, Session<L> session, Consumer<Resource<L>> resourceConsumer)
parent - look under this resource to find its children (if null, this looks for root resources)childType - only find children of this typesession - session used to query the managed endpointresourceConsumer - if not null, will be a listener that gets notified when resources are discoveredCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.