public class MamaSourceManager
extends java.lang.Object
Constructor and Description |
---|
MamaSourceManager()
Constructor - creates a new MamaSourceManager object
|
Modifier and Type | Method and Description |
---|---|
void |
addSource(MamaSource mamaSource)
Add an existing mama Source to the source manager.
|
void |
addSource(MamaSource mamaSource,
java.lang.String sourceName)
Add an existing mama Source to the source manager.
|
void |
destroy() |
MamaSource |
findOrCreateSource(java.lang.String sourceName)
Locates an existing mamaSource for a given name, if none
exists a new one is created and added to the source manager.
|
MamaSource |
findSource(java.lang.String sourceName)
locates an existing source for a given name, if none is found
null is returned, The caller has to validate null value on
return.
|
int |
getSize()
Return the size of the contents of source manager
|
java.util.Iterator |
sourceIterator() |
public MamaSourceManager()
public MamaSource findOrCreateSource(java.lang.String sourceName)
sourceName
- The string identifier for the mamaSourcepublic MamaSource findSource(java.lang.String sourceName)
sourceName
- The string identifier for the MamaSourcepublic void addSource(MamaSource mamaSource)
mamaSource
- an existing mama sourcepublic void addSource(MamaSource mamaSource, java.lang.String sourceName)
mamaSource
- an existing mama sourcesourceName
- The string identifier for the MamaSourcepublic int getSize()
public java.util.Iterator sourceIterator()
public void destroy()
Copyright 2011 NYSE Technologies