Package com.ibm.di.api
Class ProcessRegistry
- java.lang.Object
-
- com.ibm.di.api.ProcessRegistry
-
public class ProcessRegistry extends java.lang.Object
This class is a tracker object, responsible for tracking the state of a configInstance, assemblyLines objects.
-
-
Constructor Summary
Constructors Constructor Description ProcessRegistry()
Default constructor for this object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assemblyLineStarted(AssemblyLine aAssemblyLine)
Marks that the AssemblyLine instance has been started.void
assemblyLineTerminated(AssemblyLine aAssemblyLine)
Marks that the AssemblyLine instance has been terminated.void
configInstanceStarted(RSInterface aConfigInstance)
Marks that the configuration instance has been started.void
configInstanceStopped(RSInterface aConfigInstance)
Marks that the configuration instance has been stopped.java.util.Hashtable<RSInterface,java.util.Vector<AssemblyLine>>
getAssemblyLines()
Returns a hashtable whose key elements are the Configuration Instances currently started, and the values are vectors containing all Assembly Lines currently started in the corresponding Configuration Instance.java.util.List<java.lang.String>
getConfigInstanceIDs()
java.util.Vector<RSInterface>
getConfigInstances()
Returns a vector containing all configuration instances currently started.
-
-
-
Method Detail
-
configInstanceStarted
public void configInstanceStarted(RSInterface aConfigInstance) throws DIException
Marks that the configuration instance has been started.- Parameters:
aConfigInstance
- the started configInstance object.- Throws:
DIException
- if theaConfigInstance
parameter isnull
.
-
configInstanceStopped
public void configInstanceStopped(RSInterface aConfigInstance) throws DIException
Marks that the configuration instance has been stopped.- Parameters:
aConfigInstance
- the stopped configInstance object.- Throws:
DIException
- if theaConfigInstance
parameter isnull
.
-
assemblyLineStarted
public void assemblyLineStarted(AssemblyLine aAssemblyLine) throws DIException
Marks that the AssemblyLine instance has been started.- Parameters:
aAssemblyLine
- the started AssemblyLine object.- Throws:
DIException
- if the providedaAssemblyLine
parameter isnull
or the configInstance parent of that parameter is not registered.
-
assemblyLineTerminated
public void assemblyLineTerminated(AssemblyLine aAssemblyLine) throws DIException
Marks that the AssemblyLine instance has been terminated.- Parameters:
aAssemblyLine
- the started AssemblyLine object.- Throws:
DIException
- if the providedaAssemblyLine
parameter isnull
or the configInstance parent of that parameter is not registered.
-
getConfigInstances
public java.util.Vector<RSInterface> getConfigInstances()
Returns a vector containing all configuration instances currently started.- Returns:
- the list with the running config instance objects.
-
getConfigInstanceIDs
public java.util.List<java.lang.String> getConfigInstanceIDs()
- Returns:
- a list containing the IDs of all the configuration instances currently started.
-
getAssemblyLines
public java.util.Hashtable<RSInterface,java.util.Vector<AssemblyLine>> getAssemblyLines()
Returns a hashtable whose key elements are the Configuration Instances currently started, and the values are vectors containing all Assembly Lines currently started in the corresponding Configuration Instance.- Returns:
- the map between config instances and their AssemblyLines.
-
-