public final class ResourceCatalogImpl extends Object implements ResourceCatalog
ResourceCatalog.Descriptor
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_RACK |
Modifier and Type | Method and Description |
---|---|
NodeDescriptor |
getNode(String id)
Get the node descriptor with the given identifier.
|
Collection<NodeDescriptor> |
getNodes()
The global list of resources.
|
Collection<RackDescriptor> |
getRacks()
The global list of racks.
|
void |
handle(NodeDescriptorEvent node) |
String |
toString() |
public static final String DEFAULT_RACK
public Collection<NodeDescriptor> getNodes()
ResourceCatalog
getNodes
in interface ResourceCatalog
public Collection<RackDescriptor> getRacks()
ResourceCatalog
getRacks
in interface ResourceCatalog
public NodeDescriptor getNode(String id)
ResourceCatalog
getNode
in interface ResourceCatalog
id
- id of the node.public void handle(NodeDescriptorEvent node)
Copyright © 2016 The Apache Software Foundation. All rights reserved.