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(DriverRuntimeProtocol.NodeDescriptorProto node) |
String |
toString() |
public static final String DEFAULT_RACK
public Collection<NodeDescriptor> getNodes()
ResourceCataloggetNodes in interface ResourceCatalogpublic Collection<RackDescriptor> getRacks()
ResourceCataloggetRacks in interface ResourceCatalogpublic final NodeDescriptor getNode(String id)
ResourceCataloggetNode in interface ResourceCatalogpublic final void handle(DriverRuntimeProtocol.NodeDescriptorProto node)
Copyright © 2015 The Apache Software Foundation. All rights reserved.