/** * Reads given configuration property. If not found, throws a {@link MissingParameterException}. * * @param name Name of configuration property */ public static long getLong(String name) { return config.getLong(name); }
/** * Reads given configuration property. If not found, returns the default value. * * @param name Name of configuration property * @param def default value */ public static long getLong(String name, long def) { if (name == Network.PAR_SIZE || name == Network.PAR_MAXSIZE) return config.getLong(name, def) / Communicator.getSize(); else return config.getLong(name, def); }