Inherited by com.wombat.mama.MamaSource
Name | |
---|---|
MamaSourceManager() | |
MamaSource | findOrCreateSource(final String sourceName) |
MamaSource | findSource(final String sourceName) |
void | addSource(MamaSource mamaSource) |
void | addSource(MamaSource mamaSource, final String sourceName) |
int | getSize() |
Iterator | sourceIterator() |
void | destroy() |
class com::wombat::mama::MamaSourceManager;
A Mama source manager maintains information about a set of data sources, including the quality of the data coming from sources.
inline MamaSourceManager()
Constructor - creates a new MamaSourceManager object
thread safe hashmap
inline MamaSource findOrCreateSource(
final String sourceName
)
Parameters:
Return: MamaSource
Locates an existing mamaSource for a given name, if none exists a new one is created and added to the source manager.
inline MamaSource findSource(
final String sourceName
)
Parameters:
Return: MamaSource
locates an existing source for a given name, if none is found null is returned, The caller has to validate null value on return.
inline void addSource(
MamaSource mamaSource
)
Parameters:
Add an existing mama Source to the source manager. The id of the source will be used instead of the name to identify the source within the source manager.
inline void addSource(
MamaSource mamaSource,
final String sourceName
)
Parameters:
Add an existing mama Source to the source manager. The name will used to uniquely identify the source within the source manager.
inline int getSize()
Return the size of the contents of source manager
inline Iterator sourceIterator()
inline void destroy()
Reimplemented by: com::wombat::mama::MamaSource::destroy
Updated on 2023-03-31 at 15:29:43 +0100