/** * @return new Properties with system and context properties * @since 0.8.4 */ @Override public Properties getProperties() { Properties rv = super.getProperties(); if (_router != null) rv.putAll(_router.getConfigMap()); return rv; }
Properties opts = _context.getProperties(); if (_opts != null) { for (Map.Entry<String, String> entry : _opts.entrySet() )
_log = _context.logManager().getLog(I2PTunnel.class); Properties p = _context.getProperties(); _clientOptions = p; _sessions = new CopyOnWriteArraySet<I2PSession>();
public TCBShare(I2PAppContext ctx, SimpleTimer2 timer) { _context = ctx; _log = ctx.logManager().getLog(TCBShare.class); final Properties props = ctx.getProperties(); _rttDampening = getDouble(props, RTT_DAMP_PROP, RTT_DAMPENING); _wdwDampening = getDouble(props, WDW_DAMP_PROP, WDW_DAMPENING); _rttDevDampening = getDouble(props, RTTDEV_DAMP_PROP, RTTDEV_DAMPENING); _cache = new ConcurrentHashMap<Destination,Entry>(4); _cleaner = new CleanEvent(timer); _cleaner.schedule(CLEAN_TIME); if (_log.shouldLog(Log.DEBUG)) { String log = "Creating TCBCache with rttDamp=%s, rttDevDamp=%s, wdwDamp=%s, "+ "expire=%d, clean=%d"; log = String.format(log,_rttDampening,_rttDevDampening,_wdwDampening, EXPIRE_TIME,CLEAN_TIME); _log.debug(log); } }
public TCBShare(I2PAppContext ctx, SimpleTimer2 timer) { _context = ctx; _log = ctx.logManager().getLog(TCBShare.class); final Properties props = ctx.getProperties(); _rttDampening = getDouble(props, RTT_DAMP_PROP, RTT_DAMPENING); _wdwDampening = getDouble(props, WDW_DAMP_PROP, WDW_DAMPENING); _rttDevDampening = getDouble(props, RTTDEV_DAMP_PROP, RTTDEV_DAMPENING); _cache = new ConcurrentHashMap<Destination,Entry>(4); _cleaner = new CleanEvent(timer); _cleaner.schedule(CLEAN_TIME); if (_log.shouldLog(Log.DEBUG)) { String log = "Creating TCBCache with rttDamp=%s, rttDevDamp=%s, wdwDamp=%s, "+ "expire=%d, clean=%d"; log = String.format(log,_rttDampening,_rttDevDampening,_wdwDampening, EXPIRE_TIME,CLEAN_TIME); _log.debug(log); } }