Package com.wombat.mama
Class MamaSourceGroupManager
- java.lang.Object
-
- com.wombat.mama.MamaSourceGroupManager
-
public class MamaSourceGroupManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MamaSourceGroupManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSourceGroup(MamaSourceGroup sourceGroup)
Add an existing MamaSourceGroup to the MamaSourceGroupManager.void
destroy()
MamaSourceGroup
findOrCreateSourceGroup(java.lang.String key)
Locates an existing MamaSourceGroup for a given name.MamaSourceGroup
findSourceGroup(java.lang.String key)
Locates an existing MamaSourceGroup in the specified MamaSourceGroupManager with the specified key identifier.java.util.Iterator
sourceGroupIterator()
-
-
-
Method Detail
-
findOrCreateSourceGroup
public MamaSourceGroup findOrCreateSourceGroup(java.lang.String key)
Locates an existing MamaSourceGroup for a given name. If none exists, create a new one and add it to the group manager.- Parameters:
key
- The key identifier for the MamaSourceGroup- Returns:
- MamaSourceGroup
-
findSourceGroup
public MamaSourceGroup findSourceGroup(java.lang.String key)
Locates an existing MamaSourceGroup in the specified MamaSourceGroupManager with the specified key identifier. The value of the sourceGroup will be set to NULL, if no source was found.- Parameters:
key
- The key identifier for the required MamaSourceGroup- Returns:
- MamaSourceGroup
-
addSourceGroup
public void addSourceGroup(MamaSourceGroup sourceGroup)
Add an existing MamaSourceGroup to the MamaSourceGroupManager. The name of the source group manager will be used to uniquely identify the source group within the manager.- Parameters:
sourceGroup
- - The mama source group being specified.
-
sourceGroupIterator
public java.util.Iterator sourceGroupIterator()
-
destroy
public void destroy()
-
-