Class ParallelNodeDispatcher

  • All Implemented Interfaces:
    NodeDispatcher

    public class ParallelNodeDispatcher
    extends java.lang.Object
    implements NodeDispatcher
    MultiNodeExecutor is ...
    • Field Detail

      • STATUS_LISTENER_REF_ID

        public static final java.lang.String STATUS_LISTENER_REF_ID
      • NODE_NAME_LOCAL_REF_ID

        public static final java.lang.String NODE_NAME_LOCAL_REF_ID
      • NODE_USER_LOCAL_REF_ID

        public static final java.lang.String NODE_USER_LOCAL_REF_ID
    • Constructor Detail

      • ParallelNodeDispatcher

        public ParallelNodeDispatcher​(IFramework framework)
    • Method Detail

      • configureNodeContextThreadLocalsForProject

        public static void configureNodeContextThreadLocalsForProject​(org.apache.tools.ant.Project project)
        Adds InheritableNodeLocal references to the Project for use by the node context tasks
        Parameters:
        project - the project
      • getThreadLocalForProject

        public static java.lang.String getThreadLocalForProject​(java.lang.String nodeNameLocalRefId,
                                                                org.apache.tools.ant.Project project)
        Extract the threadlocal stored as a reference in the project, and return the string value or null.
        Parameters:
        nodeNameLocalRefId - refid for the thread local variable
        project - Project
        Returns:
        value of the variable, or null if it is not found or the refid doesn't refer to a valid thread local
      • addNodeContextTasks

        public static void addNodeContextTasks​(INodeEntry nodeentry,
                                               org.apache.tools.ant.Project project,
                                               org.apache.tools.ant.taskdefs.Sequential seq)
        Add tasks to the Sequential to set threadlocal values for the node name and username
        Parameters:
        nodeentry - node entry
        project - ant Project
        seq - Sequential