示例#1
0
文件: Slave.java 项目: jernst/jenkins
 public Slave(
     String name,
     String nodeDescription,
     String remoteFS,
     String numExecutors,
     Mode mode,
     String labelString,
     ComputerLauncher launcher,
     RetentionStrategy retentionStrategy,
     List<? extends NodeProperty<?>> nodeProperties)
     throws FormException, IOException {
   this(
       name,
       nodeDescription,
       remoteFS,
       Util.tryParseNumber(numExecutors, 1).intValue(),
       mode,
       labelString,
       launcher,
       retentionStrategy,
       nodeProperties);
 }
 public int getNumExecutors() {
     return Util.tryParseNumber(numExecutors, 1).intValue();
 }