public class JPPFCsvFileConnectionStrategy extends AbstractCsvConnectionStrategy
DriverConnectionStrategyreads a list of drivers from a CSV file where each line has the following format:
secure, host, port, recovery_enabled
Additionally, any line starting with a '#' (after trimming) will be considered as a comment and ignored.
The file location is read from the configuration property
It will first be looked up in the file system, then in the classpath if it is not found in the file system.
If no file is found at all, the node will fall back to the
JPPF default strategy and use the configuration to find the driver connection information.
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 CSV file.
Copyright © 2005-2018 JPPF Team.