public class EmptyInventory extends Object implements Inventory
| Constructor and Description |
|---|
EmptyInventory() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected static <T> Page<T> |
emptyPage(Pager pager) |
protected static EntityNotFoundException |
entityNotFound(Class<? extends Entity<?,?>> entityClass) |
boolean |
hasObservers(Interest<?,?> interest)
This method is mainly useful for testing.
|
void |
initialize(Configuration configuration)
Initializes the inventory from the provided configuration object.
|
<C,E> rx.Observable<C> |
observable(Interest<C,E> interest)
NOTE: The subscribers will receive the notifications even after they failed.
|
Relationships.Read |
relationships()
Global access to all relationships.
|
Tenants.ReadWrite |
tenants()
Entry point into the inventory.
|
public void initialize(Configuration configuration)
Inventoryinitialize in interface Inventoryconfiguration - the configuration to use.public void close()
throws Exception
close in interface AutoCloseableExceptionpublic Tenants.ReadWrite tenants()
InventoryResolvingToSingle.get(Object)) or
more (ResolvingToMultiple.getAll(org.hawkular.inventory.api.filters.Filter...))
tenants and navigate further to the entities of interest.public Relationships.Read relationships()
InventoryTo create relationships, first navigate to one of its endpoint entities and create it from there using the API calls.
relationships in interface Inventorypublic boolean hasObservers(Interest<?,?> interest)
InventoryhasObservers in interface Inventoryinterest - the interest in changes of some inventory entity typepublic <C,E> rx.Observable<C> observable(Interest<C,E> interest)
Inventoryobservable in interface InventoryC - the type of object that will be passed to the subscribers of the returned observableE - the type of the entity the interest is expressed oninterest - the interest in changes of some inventory entity typeprotected static EntityNotFoundException entityNotFound(Class<? extends Entity<?,?>> entityClass)
Copyright © 2015 Red Hat, Inc.. All rights reserved.