join - defines the end of an interator action chain

 1. Description

The action http://www.n3phele.com/iterator executes one or more instances of a set of actions and is terminated by a http://www.n3phele.com/join action. The join action which shares the basename of the iterated actions is updated so that it is dependent on the n instances. 
The fields of the action are:
 
 name  Used to name the iterator. The name must start with an alphabetic or underscore character, and be followed by one or more alphanumeric or underscore characters. Names cannot contain spaces.The join operation is automagically set as being dependent on all tasks named name-i
 description  A description of the join purpose
 workloadKey  An unique identifier for the workload
 action  http://www.n3phele.com/join
 inputParameters  A list of input parameters describing the nature of the iterator. See 2. Input Parameters for details.
 

2. Input Parameters

The input parameters specify the characteristics of the iterator, including size and a number of virtual machine related parameters that are useful to the execution chain, as follows:
 
 
 parameter name  type  definition
 dependency  List list of dependencies for the action. defaults to an empty list
 stdout  List  task execution stdout
 stderr  List  task execution stderr.
 exitCode  List  operating system process exitcode

3. Output Parameters

The output parameters specify characteristics of the interator, as follows:
 
 parameter name  type  definition
 complete Boolean  join complete
 
Figure 1. Example 
 

  {
    "name" : "slaveIterator",
    "description" : "DenoiseCluster slave setup iterator",
    "workloadKey" : "slaveIterator",
    "action" : "http://www.n3phele.com/iterator",
    "inputParameters" : [{
        "name" : "agentUrls",
        "type" : "List",
        "value" : "$<DenoiseCluster.agentUrls>"
    },
    {
        "name" : "agentUser",
        "type" : "String",
        "value" : "$<DenoiseCluster.agentUser>"
    },
    {
        "name" : "agentPassword",
        "type" : "String",
        "value" : "$<DenoiseCluster.agentPassword>"
    },
    
        "name" : "n",
        "type" : "Long",
        "value" : "$<n>"
    }]
},
{
    "name" : "setupSlave-0",
    "description" : "run cluster slave setup process",
    "workloadKey" : "run_cluster_assembly_process",
    "action" : "http://www.n3phele.com/executecommand",
    "inputParameters" : [{
        "name" : "command",
        "description" : "Shell command",
        "type" : "String",
        "value" : "\"echo '\"+regex($<setupMaster.stdout>, \".*(ssh-rsa .*cluster).*\", 1)+\"' >> ~/.ssh/authorized_keys; chmod 600 ~/.ssh/authorized_keys; \""
    
},
    {
        "name" : "agentBaseUrl",
        "type" : "String",
        "value" : "$<slaveIterator.agentUrls>[$<i>]"
    },
    {
        "name" : "agentUser",
        "type" : "String",
        "value" : "
$<slaveIterator.agentUser>"
    },
    {
        "name" : "agentPassword",
        "type" : "String",
        "value" : "
$<slaveIterator.agentPassword>"
    }]
},
{ "name" : "setupSlave",
"    description" : "run cluster slave setup process join",
    "workloadKey" : "run_cluster_assembly_process_join",
    "action" : "http://www.n3phele.com/join"
},

 
 
 
 
 
 
 
 
 
 
 
 
 
Comments