private SingularityExecutorTaskProcessCallable buildProcessCallable(final SingularityExecutorTask task, ProcessBuilder processBuilder) {
return new SingularityExecutorTaskProcessCallable(task, processBuilder, executorUtils);
}
private SingularityExecutorTaskProcessCallable submitProcessMonitor(final SingularityExecutorTask task, ProcessBuilder processBuilder) {
SingularityExecutorTaskProcessCallable processCallable = buildProcessCallable(task, processBuilder);
final ListenableFuture<Integer> processExitFuture = runningProcessPool.submit(processCallable);
watchProcessExitFuture(task, processExitFuture);