com.ibm.di.api
Class ProcessRegistry

java.lang.Object
  extended by 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
ProcessRegistry()
          Default constructor for this object.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessRegistry

public ProcessRegistry()
Default constructor for this object.

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 the aConfigInstance parameter is null.

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 the aConfigInstance parameter is null.

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 provided aAssemblyLine parameter is null 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 provided aAssemblyLine parameter is null 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.