本文整理了Java中hudson.model.Executor.getName()
方法的一些代码示例,展示了Executor.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Executor.getName()
方法的具体详情如下:
包路径:hudson.model.Executor
类名称:Executor
方法名:getName
暂无
代码示例来源:origin: jenkinsci/jenkins
private void finish2() {
for (RuntimeException e1 : owner.getTerminatedBy()) {
LOGGER.log(Level.FINE, String.format("%s termination trace", getName()), e1);
}
owner.removeExecutor(this);
if (this instanceof OneOffExecutor) {
owner.remove((OneOffExecutor) this);
}
executableEstimatedDuration = DEFAULT_ESTIMATED_DURATION;
queue.scheduleMaintenance();
}
代码示例来源:origin: jenkinsci/jenkins
private void finish1(@CheckForNull Throwable problems) {
if (problems != null) {
// for some reason the executor died. this is really
// a bug in the code, but we don't want the executor to die,
// so just leave some info and go on to build other things
LOGGER.log(Level.SEVERE, "Executor threw an exception", problems);
workUnit.context.abort(problems);
}
long time = System.currentTimeMillis() - startTime;
LOGGER.log(FINE, "{0} completed {1} in {2}ms", new Object[]{getName(), executable, time});
try {
workUnit.context.synchronizeEnd(this, executable, problems, time);
} catch (InterruptedException e) {
workUnit.context.abort(e);
} finally {
workUnit.setExecutor(null);
}
}
代码示例来源:origin: jenkinsci/jenkins
StringWriter writer = new StringWriter();
try (PrintWriter pw = new PrintWriter(writer)) {
pw.printf("%s grabbed %s from queue but %s %s. ", getName(), workUnit, owner.getDisplayName(), reason);
if (owner.getTerminatedBy().isEmpty()) {
pw.print("No termination trace available.");
代码示例来源:origin: jenkinsci/jenkins
LOGGER.log(FINE, getName()+" is going to execute "+executable);
setName(getName() + " : executing " + executable.toString());
Authentication auth = workUnit.context.item.authenticate();
LOGGER.log(FINE, "{0} is now executing {1} as {2}", new Object[] {getName(), executable, auth});
if (LOGGER.isLoggable(FINE) && auth.equals(ACL.SYSTEM)) { // i.e., unspecified
if (QueueItemAuthenticatorDescriptor.all().isEmpty()) {
LOGGER.log(FINE, getName()+" interrupted",e);
LOGGER.log(SEVERE, getName()+": Unexpected executor death", e);
} finally {
if (asynchronousExecution == null) {
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
StringWriter writer = new StringWriter();
try (PrintWriter pw = new PrintWriter(writer)) {
pw.printf("%s grabbed %s from queue but %s %s. ", getName(), workUnit, owner.getDisplayName(), reason);
if (owner.getTerminatedBy().isEmpty()) {
pw.print("No termination trace available.");
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
private void finish2() {
for (RuntimeException e1 : owner.getTerminatedBy()) {
LOGGER.log(Level.FINE, String.format("%s termination trace", getName()), e1);
}
owner.removeExecutor(this);
if (this instanceof OneOffExecutor) {
owner.remove((OneOffExecutor) this);
}
queue.scheduleMaintenance();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
private void finish1(@CheckForNull Throwable problems) {
if (problems != null) {
// for some reason the executor died. this is really
// a bug in the code, but we don't want the executor to die,
// so just leave some info and go on to build other things
LOGGER.log(Level.SEVERE, "Executor threw an exception", problems);
workUnit.context.abort(problems);
}
long time = System.currentTimeMillis() - startTime;
LOGGER.log(FINE, "{0} completed {1} in {2}ms", new Object[]{getName(), executable, time});
try {
workUnit.context.synchronizeEnd(this, executable, problems, time);
} catch (InterruptedException e) {
workUnit.context.abort(e);
} finally {
workUnit.setExecutor(null);
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
LOGGER.log(FINE, getName()+" is going to execute "+executable);
setName(getName() + " : executing " + executable.toString());
Authentication auth = workUnit.context.item.authenticate();
LOGGER.log(FINE, "{0} is now executing {1} as {2}", new Object[] {getName(), executable, auth});
if (LOGGER.isLoggable(FINE) && auth.equals(ACL.SYSTEM)) { // i.e., unspecified
if (QueueItemAuthenticatorDescriptor.all().isEmpty()) {
LOGGER.log(FINE, getName()+" interrupted",e);
LOGGER.log(SEVERE, getName()+": Unexpected executor death", e);
} finally {
if (asynchronousExecution == null) {
代码示例来源:origin: org.eclipse.hudson/hudson-core
LOGGER.fine("Pop returning " + offer.workUnit + " for " + exec.getName());
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
LOGGER.fine("Pop returning " + offer.workUnit + " for " + exec.getName());
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
LOGGER.fine("Pop returning " + offer.workUnit + " for " + exec.getName());
代码示例来源:origin: hudson/hudson-2.x
LOGGER.fine("Pop returning " + offer.workUnit + " for " + exec.getName());
代码示例来源:origin: org.eclipse.hudson/hudson-core
final String threadName = getName();
try {
workUnit.context.synchronizeStart();
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
final String threadName = getName();
try {
workUnit.context.synchronizeStart();
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
final String threadName = getName();
try {
workUnit.context.synchronizeStart();
代码示例来源:origin: hudson/hudson-2.x
final String threadName = getName();
try {
workUnit.context.synchronizeStart();
内容来源于网络,如有侵权,请联系作者删除!