public void saveAgentPidProperties(String agentPid, String startMode) {
		checkNotNull(home);
		Properties properties = home.getProperties("pid");
		if ("agent".equalsIgnoreCase(startMode)) {
			properties.put("agent.pid", agentPid);
		} else {
			properties.put("monitor.pid", agentPid);
		}
		home.saveProperties("pid", properties);
	}
Save the agent pid.

@param agentPid  agent pid
@param startMode startMode
ngrinder-core/src/main/java/org/ngrinder/infra/AgentConfig.java