org.javaseis.parallel
Class ParallelMapFactory
java.lang.Object
org.javaseis.parallel.ParallelMapFactory
public class ParallelMapFactory
- extends java.lang.Object
Manage object maps for communicating bewteen colaborating
algorithms or tools in a processing flow.
A master map registry is used to create and provide references
to maps for individual flows or algorithms vi a simple static
factory method.
Collaborating tools create a map by calling ParallelMapFactory.get
with a unique string shared by the collaborating tools.
- Author:
- Chuck Mosher for JavaSeis.org
Field Summary |
(package private) static java.util.Map<java.lang.String,ParallelMap> |
mapMap
|
Method Summary |
static ParallelMap |
getMap(java.lang.String key)
Return the ParallelMap associated with a given key |
static java.lang.String[] |
getMapNames()
Return the list of map names that currently exist. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapMap
static java.util.Map<java.lang.String,ParallelMap> mapMap
getMap
public static ParallelMap getMap(java.lang.String key)
- Return the ParallelMap associated with a given key
- Parameters:
key
- string defining the map requested
- Returns:
- ParallelMap for the specified key
getMapNames
public static java.lang.String[] getMapNames()
- Return the list of map names that currently exist.
A String array of length 0 is returned if no maps have been allocated.
- Returns:
- array containing the names of the allocated maps