public class MyAppInventory extends Object
| Constructor and Description |
|---|
MyAppInventory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResource(Resource<MyAppNodeLocation> newResource) |
Resource<MyAppNodeLocation> |
getResource(String id) |
ResourceManager<MyAppNodeLocation> |
getResourceManager() |
ResourceTypeManager<MyAppNodeLocation> |
getResourceTypeManager() |
Resource<MyAppNodeLocation> |
instantiateResource(String resourceId)
Creates a resource with the given ID.
|
void |
removeResource(Resource<MyAppNodeLocation> doomedResource) |
public ResourceManager<MyAppNodeLocation> getResourceManager()
public ResourceTypeManager<MyAppNodeLocation> getResourceTypeManager()
public Resource<MyAppNodeLocation> instantiateResource(String resourceId)
addResource(Resource).resourceId - the ID of the resource to createpublic void addResource(Resource<MyAppNodeLocation> newResource)
public void removeResource(Resource<MyAppNodeLocation> doomedResource)
public Resource<MyAppNodeLocation> getResource(String id)
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.