hudson.model.Node.isHoldOffLaunchUntilSave()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(125)

本文整理了Java中hudson.model.Node.isHoldOffLaunchUntilSave()方法的一些代码示例,展示了Node.isHoldOffLaunchUntilSave()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.isHoldOffLaunchUntilSave()方法的具体详情如下:
包路径:hudson.model.Node
类名称:Node
方法名:isHoldOffLaunchUntilSave

Node.isHoldOffLaunchUntilSave介绍

暂无

代码示例

代码示例来源:origin: jenkinsci/jenkins

  1. @Override
  2. public void run() {
  3. Node n = c.getNode();
  4. if (n!=null && n.isHoldOffLaunchUntilSave())
  5. return;
  6. if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
  7. // at the moment I don't trust strategies to wait more than 60 minutes
  8. // strategies need to wait at least one minute
  9. final long waitInMins = Math.max(1, Math.min(60, c.getRetentionStrategy().check(c)));
  10. nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
  11. }
  12. }
  13. });

代码示例来源:origin: jenkinsci/jenkins

  1. if (!n.isHoldOffLaunchUntilSave() && automaticSlaveLaunch) {
  2. RetentionStrategy retentionStrategy = c.getRetentionStrategy();
  3. if (retentionStrategy != null) {

代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper

  1. public boolean superIsHoldOffLaunchUntilSave() {
  2. return super.isHoldOffLaunchUntilSave();
  3. }

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

  1. @Override
  2. public void run() {
  3. Node n = c.getNode();
  4. if (n!=null && n.isHoldOffLaunchUntilSave())
  5. return;
  6. if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
  7. // at the moment I don't trust strategies to wait more than 60 minutes
  8. // strategies need to wait at least one minute
  9. final long waitInMins = Math.max(1, Math.min(60, c.getRetentionStrategy().check(c)));
  10. nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
  11. }
  12. }
  13. });

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @SuppressWarnings("unchecked")
  5. protected void doRun() {
  6. final long startRun = System.currentTimeMillis();
  7. for (Computer c : Hudson.getInstance().getComputers()) {
  8. Node n = c.getNode();
  9. if (n!=null && n.isHoldOffLaunchUntilSave())
  10. continue;
  11. if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
  12. // at the moment I don't trust strategies to wait more than 60 minutes
  13. // strategies need to wait at least one minute
  14. final long waitInMins = Math.min(1, Math.max(60, c.getRetentionStrategy().check(c)));
  15. nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
  16. }
  17. }
  18. }
  19. }

代码示例来源:origin: hudson/hudson-2.x

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @SuppressWarnings("unchecked")
  5. protected void doRun() {
  6. final long startRun = System.currentTimeMillis();
  7. for (Computer c : Hudson.getInstance().getComputers()) {
  8. Node n = c.getNode();
  9. if (n!=null && n.isHoldOffLaunchUntilSave())
  10. continue;
  11. if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
  12. // at the moment I don't trust strategies to wait more than 60 minutes
  13. // strategies need to wait at least one minute
  14. final long waitInMins = Math.min(1, Math.max(60, c.getRetentionStrategy().check(c)));
  15. nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
  16. }
  17. }
  18. }
  19. }

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @SuppressWarnings("unchecked")
  5. protected void doRun() {
  6. final long startRun = System.currentTimeMillis();
  7. for (Computer c : Hudson.getInstance().getComputers()) {
  8. Node n = c.getNode();
  9. if (n!=null && n.isHoldOffLaunchUntilSave())
  10. continue;
  11. if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
  12. // at the moment I don't trust strategies to wait more than 60 minutes
  13. // strategies need to wait at least one minute
  14. final long waitInMins = Math.min(1, Math.max(60, c.getRetentionStrategy().check(c)));
  15. nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
  16. }
  17. }
  18. }
  19. }

代码示例来源:origin: org.eclipse.hudson/hudson-core

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @SuppressWarnings("unchecked")
  5. protected void doRun() {
  6. final long startRun = System.currentTimeMillis();
  7. for (Computer c : Hudson.getInstance().getComputers()) {
  8. Node n = c.getNode();
  9. if (n != null && n.isHoldOffLaunchUntilSave()) {
  10. continue;
  11. }
  12. if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
  13. // at the moment I don't trust strategies to wait more than 60 minutes
  14. // strategies need to wait at least one minute
  15. final long waitInMins = Math.min(1, Math.max(60, c.getRetentionStrategy().check(c)));
  16. nextCheck.put(c, startRun + waitInMins * 1000 * 60 /*MINS->MILLIS*/);
  17. }
  18. }
  19. }
  20. }

代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper

  1. @Override
  2. public boolean isHoldOffLaunchUntilSave() {
  3. initPython();
  4. if (pexec.isImplemented(2)) {
  5. return pexec.execPythonBool("is_hold_off_launch_until_save");
  6. } else {
  7. return super.isHoldOffLaunchUntilSave();
  8. }
  9. }

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

  1. if (!n.isHoldOffLaunchUntilSave() && automaticSlaveLaunch) {
  2. RetentionStrategy retentionStrategy = c.getRetentionStrategy();
  3. if (retentionStrategy != null) {

相关文章