@CheckForNull @Override public T getNode() { return (T) super.getNode(); }
public RetentionStrategy getRetentionStrategy() { Slave n = getNode(); return n==null ? RetentionStrategy.NOOP : n.getRetentionStrategy(); }
args.add("-workDir"); if (workDirPath == null) { Slave node = computer.getNode(); if (node == null) {
bldr.append("-workDir \""); if (workDirPath == null) { Slave node = computer.getNode(); if (node == null) {
/** * {@inheritDoc} */ @Override public void taskAccepted(Executor executor, Queue.Task task) { super.taskAccepted(executor, task); if (launcher instanceof ExecutorListener) { ((ExecutorListener)launcher).taskAccepted(executor, task); } //getNode() can return null at indeterminate times when nodes go offline Slave node = getNode(); if (node != null && node.getRetentionStrategy() instanceof ExecutorListener) { ((ExecutorListener)node.getRetentionStrategy()).taskAccepted(executor, task); } }
Node checkedNode = c.getNode(); if (needExecutor && checkedNode != null && checkedNode.canTake(item) == null) { demandMilliseconds = System.currentTimeMillis() - item.buildableStartMilliseconds;
Slave node = c.getNode(); if (node != this) { String message = "Issue with creating launcher for agent " + name + ". Computer has been reconnected";
Slave node = getNode(); if (node == null) { // Node has been disabled/removed during the connection throw new IOException("Node "+nodeName+" has been deleted during the channel setup");
@Override public MesosSlave getNode() { return (MesosSlave) super.getNode(); }
@Override public T getNode() { return (T) super.getNode(); }
@Override public T getNode() { return (T) super.getNode(); }
@CheckForNull @Override public T getNode() { return (T) super.getNode(); }
@CheckForNull @Override public DockerTransientNode getNode() { return (DockerTransientNode) super.getNode(); }
public RetentionStrategy getRetentionStrategy() { Slave n = getNode(); return n==null ? RetentionStrategy.INSTANCE : n.getRetentionStrategy(); }
@CheckForNull public String getInstanceId() { EC2AbstractSlave node = (EC2AbstractSlave) super.getNode(); if (node == null) { return null; } return node.getInstanceId(); }
/** * Returns the remote root workspace (without trailing slash). * * @param computer The slave computer to get the root workspace of. * * @return the remote root workspace (without trailing slash). */ @CheckForNull private static String getWorkingDirectory(SlaveComputer computer) { return getWorkingDirectory(computer.getNode()); }
/** * Returns the remote root workspace (without trailing slash). * * @param computer The slave computer to get the root workspace of. * * @return the remote root workspace (without trailing slash). * */ @CheckForNull public static String getWorkingDirectory(SlaveComputer computer) { return getWorkingDirectory(computer.getNode()); }
public InstallerGui(SlaveInstaller installer, SlaveComputer sc) { this.installer = installer; final Slave node = sc.getNode(); if (node == null) { throw new IllegalStateException("The configration has change and the node for computer " + sc.getName() + " is removed"); } // TODO: missing null check this.slaveRoot = node.getRootPath(); this.jnlpMac = sc.getJnlpMac(); }
/** * {@inheritDoc} */ @Override public void taskAccepted(Executor executor, Queue.Task task) { super.taskAccepted(executor, task); if (launcher instanceof ExecutorListener) { ((ExecutorListener)launcher).taskAccepted(executor, task); } if (getNode().getRetentionStrategy() instanceof ExecutorListener) { ((ExecutorListener)getNode().getRetentionStrategy()).taskAccepted(executor, task); } }
/** * {@inheritDoc} */ @Override public void taskAccepted(Executor executor, Queue.Task task) { super.taskAccepted(executor, task); if (launcher instanceof ExecutorListener) { ((ExecutorListener)launcher).taskAccepted(executor, task); } if (getNode().getRetentionStrategy() instanceof ExecutorListener) { ((ExecutorListener)getNode().getRetentionStrategy()).taskAccepted(executor, task); } }