# route add -net 224.0.0.0 netmask 240.0.0.0 dev lo# ifconfig lo multicast
lo: <UP, LOOPBACK, RUNNING, MULTICAST> . . .
import org.jppf.client.*;import org.jppf.utils.*;public class TestPools { public static void main(final String[] args) { int numConnections = 50; JPPFConfiguration.getProperties() .setString("jppf.drivers", "driver1") .setString("driver1.jppf.server.host", "localhost") // set the proper hostname or IP .setInt("driver1.jppf.server.port", 11111) .setInt("driver1.jppf.pool.size", numConnections) .setBoolean("jppf.discovery.enabled", false); try (JPPFClient client = new JPPFClient()) { JPPFConnectionPool pool = client.awaitActiveConnectionPool(); pool.awaitActiveConnections(Operator.AT_LEAST, numConnections); System.out.println("Got all " + numConnections + " connections"); } catch(Exception e) { e.printStackTrace(); } }}
It is like the properties file is not being loaded for the client on the linux OS.
I assume the awaitConnectionsPools and the awaitActiveConnections routines share the same underlying code.