本文整理了Java中hudson.model.Node.isHoldOffLaunchUntilSave()
方法的一些代码示例,展示了Node.isHoldOffLaunchUntilSave()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.isHoldOffLaunchUntilSave()
方法的具体详情如下:
包路径:hudson.model.Node
类名称:Node
方法名:isHoldOffLaunchUntilSave
暂无
代码示例来源:origin: jenkinsci/jenkins
@Override
public void run() {
Node n = c.getNode();
if (n!=null && n.isHoldOffLaunchUntilSave())
return;
if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
// at the moment I don't trust strategies to wait more than 60 minutes
// strategies need to wait at least one minute
final long waitInMins = Math.max(1, Math.min(60, c.getRetentionStrategy().check(c)));
nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
}
}
});
代码示例来源:origin: jenkinsci/jenkins
if (!n.isHoldOffLaunchUntilSave() && automaticSlaveLaunch) {
RetentionStrategy retentionStrategy = c.getRetentionStrategy();
if (retentionStrategy != null) {
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
public boolean superIsHoldOffLaunchUntilSave() {
return super.isHoldOffLaunchUntilSave();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override
public void run() {
Node n = c.getNode();
if (n!=null && n.isHoldOffLaunchUntilSave())
return;
if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
// at the moment I don't trust strategies to wait more than 60 minutes
// strategies need to wait at least one minute
final long waitInMins = Math.max(1, Math.min(60, c.getRetentionStrategy().check(c)));
nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
}
}
});
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
protected void doRun() {
final long startRun = System.currentTimeMillis();
for (Computer c : Hudson.getInstance().getComputers()) {
Node n = c.getNode();
if (n!=null && n.isHoldOffLaunchUntilSave())
continue;
if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
// at the moment I don't trust strategies to wait more than 60 minutes
// strategies need to wait at least one minute
final long waitInMins = Math.min(1, Math.max(60, c.getRetentionStrategy().check(c)));
nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
}
}
}
}
代码示例来源:origin: hudson/hudson-2.x
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
protected void doRun() {
final long startRun = System.currentTimeMillis();
for (Computer c : Hudson.getInstance().getComputers()) {
Node n = c.getNode();
if (n!=null && n.isHoldOffLaunchUntilSave())
continue;
if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
// at the moment I don't trust strategies to wait more than 60 minutes
// strategies need to wait at least one minute
final long waitInMins = Math.min(1, Math.max(60, c.getRetentionStrategy().check(c)));
nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
}
}
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
protected void doRun() {
final long startRun = System.currentTimeMillis();
for (Computer c : Hudson.getInstance().getComputers()) {
Node n = c.getNode();
if (n!=null && n.isHoldOffLaunchUntilSave())
continue;
if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
// at the moment I don't trust strategies to wait more than 60 minutes
// strategies need to wait at least one minute
final long waitInMins = Math.min(1, Math.max(60, c.getRetentionStrategy().check(c)));
nextCheck.put(c, startRun + waitInMins*1000*60 /*MINS->MILLIS*/);
}
}
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
protected void doRun() {
final long startRun = System.currentTimeMillis();
for (Computer c : Hudson.getInstance().getComputers()) {
Node n = c.getNode();
if (n != null && n.isHoldOffLaunchUntilSave()) {
continue;
}
if (!nextCheck.containsKey(c) || startRun > nextCheck.get(c)) {
// at the moment I don't trust strategies to wait more than 60 minutes
// strategies need to wait at least one minute
final long waitInMins = Math.min(1, Math.max(60, c.getRetentionStrategy().check(c)));
nextCheck.put(c, startRun + waitInMins * 1000 * 60 /*MINS->MILLIS*/);
}
}
}
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
@Override
public boolean isHoldOffLaunchUntilSave() {
initPython();
if (pexec.isImplemented(2)) {
return pexec.execPythonBool("is_hold_off_launch_until_save");
} else {
return super.isHoldOffLaunchUntilSave();
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
if (!n.isHoldOffLaunchUntilSave() && automaticSlaveLaunch) {
RetentionStrategy retentionStrategy = c.getRetentionStrategy();
if (retentionStrategy != null) {
内容来源于网络,如有侵权,请联系作者删除!