/** * The process's output will be captured and returned in the results. This may be ignored if * <code>waitForCompletion</code> is 0 or less. Process output will be logged into agent.log and at the same time * captured into memory. With <code>limit</code> parameter you can set maximum memory buffer to be captured (and possibly returned) * captured output size. If the process writes more output, it will only be redirected to agent.log. * * @param limit in Bytes (if given value < 0, it's ignored and default 2MB is used instead) * @return captureMode */ public static CaptureMode agentLog(int limit) { return new CaptureMode(true, true, limit); }
/** * The process's output will be captured and returned in the results. This may be ignored if * <code>waitForCompletion</code> is 0 or less. By default capturing to memory is limited to 2MB of * process output. If the process writes more output, it will be ignored. * @return captureMode */ public static CaptureMode memory() { return new CaptureMode(true); }
/** * The process's output is *not* captured, this is the default. * @return captureMode */ public static CaptureMode none() { return new CaptureMode(false); }
/** * The process's output will be captured and returned in the results. This may be ignored if * <code>waitForCompletion</code> is 0 or less. With <code>limit</code> parameter you can set maximum captured output size. * If the process writes more output, it will be ignored. * * @param limit in Bytes (if given value < 0, it's ignored and default 2MB is used instead) * @return captureMode */ public static CaptureMode memory(int limit) { return new CaptureMode(true, limit); }
/** * The process's output will be captured and returned in the results. This may be ignored if * <code>waitForCompletion</code> is 0 or less. Process output will be redirected to agent.log and at the same time * captured into memory. By default capturing to memory is limited to 2MB of process output. If the process writes more output, * it will only be redirected to agent.log. * * @return captureMode */ public static CaptureMode agentLog() { return new CaptureMode(true, true, -1); }