public Collection<SocketAddress> getServerList() { Set<SocketAddress> addresses = new HashSet<SocketAddress>(); String servers = props.getProperty(SERVER_LIST, "127.0.0.1:" + DEFAULT_HOTROD_PORT); for (String server : servers.split(";")) { String[] components = server.trim().split(":"); String host = components[0]; int port = DEFAULT_HOTROD_PORT; if (components.length > 1) port = Integer.parseInt(components[1]); addresses.add(new InetSocketAddress(host, port)); } if (addresses.isEmpty()) throw new IllegalStateException("No Hot Rod servers specified!"); return addresses; }
public String getTrustStorePassword() { return props.getProperty(TRUST_STORE_PASSWORD, null); }
public String getTransportFactory() { return props.getProperty(TRANSPORT_FACTORY, TcpTransportFactory.class.getName()); }
public String getKeyStorePassword() { return props.getProperty(KEY_STORE_PASSWORD, null); }
public String getTrustStoreFileName() { return props.getProperty(TRUST_STORE_FILE_NAME, null); }
public String getKeyStoreFileName() { return props.getProperty(KEY_STORE_FILE_NAME, null); }
public String getProtocolVersion() { return props.getProperty(PROTOCOL_VERSION, DEFAULT_PROTOCOL_VERSION); }
public String getRequestBalancingStrategy() { return props.getProperty( REQUEST_BALANCING_STRATEGY, RoundRobinBalancingStrategy.class.getName()); }
public String getAsyncExecutorFactory() { return props.getProperty(ASYNC_EXECUTOR_FACTORY, DefaultAsyncExecutorFactory.class.getName()); }
public String getMarshaller() { return props.getProperty(MARSHALLER, GenericJBossMarshaller.class.getName()); }