public void run(String consoleHost, int consolePort) {
		if (StringUtils.isNotEmpty(consoleHost)) {
			getGrinderProperties().setProperty(GrinderProperties.CONSOLE_HOST, consoleHost);
		}
		if (consolePort > 0) {
			getGrinderProperties().setInt(GrinderProperties.CONSOLE_PORT, consolePort);
		}

		thread = new Thread(new AgentThreadRunnable(), "Agent daemon connecting to port "
				+ getGrinderProperties().getInt(GrinderProperties.CONSOLE_PORT, 0));
		thread.setDaemon(true);
		thread.start();
		LOGGER.info("{} is started.", thread.getName());
	}
Run agent with given consoleHost and consolePort.

if consoleHost is null it will use localhost or use console host set in
{@link GrinderProperties}

if port number is 0, it will use default consolePort or use console port
set in {@link GrinderProperties}

@param consoleHost host name
@param consolePort port number
ngrinder-core/src/main/java/net/grinder/AgentDaemon.java