View Javadoc

1   package org.rundeck.api;
2   
3   import java.util.Properties;
4   
5   /**
6    * Super interface for adhoc executions
7    */
8   public interface RunAdhoc {
9       /**
10       * Project name, required
11       * @return
12       */
13      String getProject();
14  
15      /**
16       * Filters for selecting nodes on which the command will be executed. See {@link NodeFiltersBuilder}
17       * @return
18       */
19      Properties getNodeFilters();
20  
21      /**
22       * Thread count to use (for parallelizing when running on multiple nodes) - optional
23       * @return
24       */
25      Integer getNodeThreadcount();
26  
27      /**
28       * if true, continue executing on other nodes even if some fail - optional
29       * @return
30       */
31      Boolean getNodeKeepgoing();
32  
33      /**
34       * Specify a user name to run the job as, must have 'runAs' permission
35       * @return
36       */
37      String getAsUser();
38  }