本文整理了Java中hudson.model.Executor.isAlive()
方法的一些代码示例,展示了Executor.isAlive()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Executor.isAlive()
方法的具体详情如下:
包路径:hudson.model.Executor
类名称:Executor
方法名:isAlive
暂无
代码示例来源:origin: jenkinsci/jenkins
/**
* Check if executor is ready to accept tasks.
* This method becomes the critical one since 1.536, which introduces the
* on-demand creation of executor threads. Callers should use
* this method instead of {@link #isAlive()}, which would be incorrect for
* non-started threads or running {@link AsynchronousExecution}.
* @return true if the executor is available for tasks (usually true)
* @since 1.536
*/
public boolean isActive() {
lock.readLock().lock();
try {
return !started || asynchronousExecution != null || isAlive();
} finally {
lock.readLock().unlock();
}
}
代码示例来源:origin: jenkinsci/jenkins
if (!entry.getKey().isAlive()
|| entry.getValue() != entry.getKey().getCurrentExecutable()) {
iterator.remove();
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Returns true if any of the executors are functioning.
*
* Note that if an executor dies, we'll leave it in {@link #executors} until
* the administrator yanks it out, so that we can see why it died.
*/
private boolean isAlive() {
for (Executor e : executors)
if (e.isAlive())
return true;
return false;
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Returns true if any of the executors are functioning.
*
* Note that if an executor dies, we'll leave it in {@link #executors} until
* the administrator yanks it out, so that we can see why it died.
*/
private boolean isAlive() {
for (Executor e : executors) {
if (e.isAlive()) {
return true;
}
}
return false;
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Returns true if any of the executors are functioning.
*
* Note that if an executor dies, we'll leave it in {@link #executors} until
* the administrator yanks it out, so that we can see why it died.
*/
private boolean isAlive() {
for (Executor e : executors)
if (e.isAlive())
return true;
return false;
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Returns true if any of the executors are functioning.
*
* Note that if an executor dies, we'll leave it in {@link #executors} until
* the administrator yanks it out, so that we can see why it died.
*/
private boolean isAlive() {
for (Executor e : executors)
if (e.isAlive())
return true;
return false;
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Check if executor is ready to accept tasks.
* This method becomes the critical one since 1.536, which introduces the
* on-demand creation of executor threads. Callers should use
* this method instead of {@link #isAlive()}, which would be incorrect for
* non-started threads or running {@link AsynchronousExecution}.
* @return true if the executor is available for tasks (usually true)
* @since 1.536
*/
public boolean isActive() {
lock.readLock().lock();
try {
return !started || asynchronousExecution != null || isAlive();
} finally {
lock.readLock().unlock();
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Throws away this executor and get a new one.
*/
public HttpResponse doYank() {
Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
if (isAlive())
throw new Failure("Can't yank a live executor");
owner.removeExecutor(this);
return HttpResponses.redirectViaContextPath("/");
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Throws away this executor and get a new one.
*/
public HttpResponse doYank() {
Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
if (isAlive())
throw new Failure("Can't yank a live executor");
owner.removeExecutor(this);
return HttpResponses.redirectViaContextPath("/");
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Throws away this executor and get a new one.
*/
public HttpResponse doYank() {
Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
if (isAlive()) {
throw new Failure("Can't yank a live executor");
}
owner.removeExecutor(this);
return HttpResponses.redirectViaContextPath("/");
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Throws away this executor and get a new one.
*/
public HttpResponse doYank() {
Hudson.getInstance().checkPermission(Hudson.ADMINISTER);
if (isAlive())
throw new Failure("Can't yank a live executor");
owner.removeExecutor(this);
return HttpResponses.redirectViaContextPath("/");
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
if (!entry.getKey().isAlive()
|| entry.getValue() != entry.getKey().getCurrentExecutable()) {
iterator.remove();
代码示例来源:origin: jenkinsci/cloudbees-folder-plugin
if (!entry.getKey().isAlive()
|| entry.getValue() != entry.getKey().getCurrentExecutable()) {
iterator.remove();
代码示例来源:origin: org.jenkins-ci.plugins/cloudbees-folder
if (!entry.getKey().isAlive()
|| entry.getValue() != entry.getKey().getCurrentExecutable()) {
iterator.remove();
内容来源于网络,如有侵权,请联系作者删除!