public class JPPFCsvPropertyConnectionStrategy extends AbstractCsvConnectionStrategy
DriverConnectionStrategyreads a list of drivers from a configuration property with the following format:
jppf.server.connection.strategy.definitions = secure1, host1, port1, recovery_enabled1 | ... | secureN, hostN, portN, recovery_enabledN
Additionally, any group of comma-separated values starting with a '#' (after trimming) will be considered a comment and ignored. This allows writing the value of the property on multiple lines, with comments, as follows:
jppf.server.connection.strategy.definitions = \ # definition for server 1 |\ false, my.host1.org, 11111, -1 |\ # definition for server 2 |\ true, my.host2.org, 11443, 2222
The listed drivers will be used as if they were arrayed in a "circle",
with the driver selection mechanism rotating one tick each time
nextConnectionInfo() is invoked.
|Constructor and Description|
Find and read the connection information.
Copyright © 2005-2018 JPPF Team.