/** * Build the process to execute when the service is started * @param commandList list of commands is inserted on the front * @param env environment variables above those generated by * @throws IOException IO problems */ public void build(Map<String, String> env, List<String> commandList) throws IOException { assert process == null; process = new LongLivedProcess(getName(), processLog, commandList); process.setLifecycleCallback(this); //set the env variable mapping process.putEnvMap(env); }
/** * Build the process to execute when the service is started * @param commandList list of commands is inserted on the front * @param env environment variables above those generated by * @throws IOException IO problems */ public void build(Map<String, String> env, List<String> commandList) throws IOException { assert process == null; process = new LongLivedProcess(getName(), processLog, commandList); process.setLifecycleCallback(this); //set the env variable mapping process.putEnvMap(env); }
private LongLivedProcess initProcess(List<String> commands) { process = new LongLivedProcess(name.getMethodName(), log, commands); process.setLifecycleCallback(this); // increase the line limit to accommodate containers with long list of envs process.setRecentLineLimit(640); return process; }
private LongLivedProcess initProcess(List<String> commands) { process = new LongLivedProcess(name.getMethodName(), log, commands); process.setLifecycleCallback(this); // increase the line limit to accommodate containers with long list of envs process.setRecentLineLimit(640); return process; }