Code example for InetSocketAddress

Methods: getHostName, getPort

0
		RuntimeConfigBuilder rtConfigBuilder =
				(RuntimeConfigBuilder)client.getClientConfigManager().getConfigBuilder();
 
		ServerInfoBuilder relayConfigBuilder = rtConfigBuilder.getRelay(Integer.toString(id));
		relayConfigBuilder.setName(name);
		relayConfigBuilder.setHost(addr.getHostName());
		relayConfigBuilder.setPort(addr.getPort());
		relayConfigBuilder.setSources(sources);
		ServerInfo si = relayConfigBuilder.build();
		client.getClientConfigManager().setNewConfig(rtConfigBuilder.build());
		return si;
	} 
	 
	static class TestConsumer extends AbstractDatabusCombinedConsumer 
	{ 
	  public static final String MODULE = TestConsumer.class.getName();
	  public static final Logger LOG = Logger.getLogger(MODULE);
 
	  private int _eventNum;
	  private int _winNum;
	  private long _rollbackScn;