|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface YardManager
Manages the different active Yards and provides the possibility to lookup/
create Cache instances based on already available Yards.
| Method Summary | |
|---|---|
Cache |
getCache(String id)
Getter for the Cache based on the yard id used to cache the data. |
Collection<String> |
getCacheIDs()
Getter for the IDs of Caches currently managed by this Manager |
Yard |
getYard(String id)
Getter for the Yard based on the parsed Id |
Collection<String> |
getYardIDs()
Getter for the IDs of Yards currently managed by this Manager |
boolean |
isCache(String id)
Returns if a Cache with the requested ID is registered. |
boolean |
isYard(String id)
Returns if there is a Yard for the parsed ID |
| Method Detail |
|---|
Collection<String> getYardIDs()
boolean isYard(String id)
id - the id
true if a Yard with the parsed ID is managed
by this YardManager.Yard getYard(String id)
id - the ID
null if no Yard with the parsed ID is
active.Cache getCache(String id)
If no cache is present for the parsed yard, than a new instance is
created by using the ComponentFactory.
id - the ID of the Yard used to store the data of the cache
null if no Yard with the parsed ID
is active.
YardException - on any Error while creating a new Cache for the
Yard with the parsed id.
TODO: replace YardException by a better one. However I do not like to use
the ComponentException because it is a runtime exception and would
introduce a dependency to OSGI in the ServicesApi bundleboolean isCache(String id)
id - the id of the cache (or the Yard used by the Cache)
true if a Cache with the parsed ID is managed
by this YardManager.Collection<String> getCacheIDs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||