⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configurationdefaults.java

📁 java 文件下载器。可自定义
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ConfigurationDefaults.java

package org.gudy.azureus2.core3.config.impl;

import com.aelitis.azureus.core.speedmanager.impl.v2.SpeedLimitConfidence;
import java.io.File;
import java.io.PrintStream;
import java.util.*;
import org.gudy.azureus2.core3.config.COConfigurationManager;
import org.gudy.azureus2.core3.util.*;

// Referenced classes of package org.gudy.azureus2.core3.config.impl:
//			ConfigurationParameterNotFoundException

public class ConfigurationDefaults
{
	protected class IPVerifier
		implements org.gudy.azureus2.core3.config.COConfigurationManager.ParameterVerifier
	{

		final ConfigurationDefaults this$0;

		public boolean verify(String parameter, Object _value)
		{
			String value = (String)_value;
			for (int i = 0; i < value.length(); i++)
			{
				char c = value.charAt(i);
				if (!Character.isLetterOrDigit(c) && c != '.' && c != '-' && c != ':' && c != '~')
					return false;
			}

			return true;
		}

		protected IPVerifier()
		{
			this$0 = ConfigurationDefaults.this;
			super();
		}
	}


	private static final Long ZERO;
	private static final Long ONE;
	private static final Long FALSE;
	private static final Long TRUE;
	private static ConfigurationDefaults configdefaults;
	private static AEMonitor class_mon = new AEMonitor("ConfigDef");
	private Map def;
	public static final int def_int = 0;
	public static final long def_long = 0L;
	public static final float def_float = 0F;
	public static final int def_boolean = 0;
	public static final String def_String = "";
	public static final byte def_bytes[] = null;
	private Hashtable parameter_verifiers;

	public static ConfigurationDefaults getInstance()
	{
		ConfigurationDefaults configurationdefaults;
		class_mon.enter();
		if (configdefaults == null)
			try
			{
				configdefaults = new ConfigurationDefaults();
			}
			catch (Throwable e)
			{
				System.out.println("Falling back to default defaults as environment is restricted");
				configdefaults = new ConfigurationDefaults(new HashMap());
			}
		configurationdefaults = configdefaults;
		class_mon.exit();
		return configurationdefaults;
		Exception exception;
		exception;
		class_mon.exit();
		throw exception;
	}

	protected ConfigurationDefaults()
	{
		def = null;
		parameter_verifiers = new Hashtable();
		def = new HashMap();
		def.put("Override Ip", "");
		def.put("Enable incremental file creation", FALSE);
		def.put("TCP.Listen.Port", new Long(6881L));
		def.put("TCP.Listen.Port.Enable", TRUE);
		def.put("TCP.Listen.Port.Override", "");
		def.put("UDP.Listen.Port", new Long(6881L));
		def.put("UDP.Listen.Port.Enable", TRUE);
		def.put("UDP.NonData.Listen.Port", new Long(6881L));
		def.put("UDP.NonData.Listen.Port.Same", TRUE);
		def.put("HTTP.Data.Listen.Port", new Long(Constants.isWindows ? 80L : 8080L));
		def.put("HTTP.Data.Listen.Port.Override", ZERO);
		def.put("HTTP.Data.Listen.Port.Enable", FALSE);
		def.put("IPV6 Prefer Addresses", FALSE);
		def.put("max active torrents", new Long(4L));
		def.put("max downloads", new Long(4L));
		def.put("min downloads", ONE);
		def.put("Newly Seeding Torrents Get First Priority", TRUE);
		def.put("Max.Peer.Connections.Per.Torrent", new Long(50L));
		def.put("Max.Peer.Connections.Per.Torrent.When.Seeding", new Long(50L));
		def.put("Max.Peer.Connections.Per.Torrent.When.Seeding.Enable", FALSE);
		def.put("Max.Peer.Connections.Total", new Long(250L));
		def.put("Peer.Fast.Initial.Unchoke.Enabled", FALSE);
		def.put("File Max Open", new Long(50L));
		def.put("Use Config File Backups", TRUE);
		def.put("Max Uploads", new Long(4L));
		def.put("Max Uploads Seeding", new Long(4L));
		def.put("enable.seedingonly.maxuploads", FALSE);
		def.put("max.uploads.when.busy.inc.min.secs", new Long(30L));
		def.put("Max Download Speed KBs", ZERO);
		def.put("Use Request Limiting", TRUE);
		def.put("Use Request Limiting Priorities", TRUE);
		def.put("Max Upload Speed KBs", ZERO);
		def.put("Max Upload Speed Seeding KBs", ZERO);
		def.put("enable.seedingonly.upload.rate", FALSE);
		def.put("Max Seeds Per Torrent", ZERO);
		def.put("Auto Upload Speed Enabled", FALSE);
		def.put("Auto Upload Speed Seeding Enabled", FALSE);
		def.put("AutoSpeed Available", FALSE);
		def.put("AutoSpeed Min Upload KBs", ZERO);
		def.put("AutoSpeed Max Upload KBs", ZERO);
		def.put("AutoSpeed Max Increment KBs", ONE);
		def.put("AutoSpeed Max Decrement KBs", new Long(4L));
		def.put("AutoSpeed Choking Ping Millis", new Long(200L));
		def.put("AutoSpeed Download Adj Enable", FALSE);
		def.put("AutoSpeed Download Adj Ratio", "1.0");
		def.put("AutoSpeed Latency Factor", new Long(50L));
		def.put("AutoSpeed Forced Min KBs", new Long(4L));
		def.put("Auto Upload Speed Debug Enabled", FALSE);
		def.put("ASN Autocheck Performed Time", ZERO);
		def.put("LAN Speed Enabled", TRUE);
		def.put("Max LAN Download Speed KBs", ZERO);
		def.put("Max LAN Upload Speed KBs", ZERO);
		def.put("Use Resume", TRUE);
		def.put("On Resume Recheck All", FALSE);
		def.put("Save Resume Interval", new Long(5L));
		def.put("Check Pieces on Completion", TRUE);
		def.put("Stop Ratio", new Float(0.0F));
		def.put("Stop Peers Ratio", ZERO);
		def.put("Disconnect Seed", TRUE);
		def.put("Seeding Piece Check Recheck Enable", TRUE);
		def.put("priorityExtensions", "");
		def.put("priorityExtensionsIgnoreCase", FALSE);
		def.put("Ip Filter Enabled", TRUE);
		def.put("Ip Filter Allow", FALSE);
		def.put("Ip Filter Enable Banning", TRUE);
		def.put("Ip Filter Ban Block Limit", new Long(4L));
		def.put("Ip Filter Ban Discard Ratio", "5.0");
		def.put("Ip Filter Ban Discard Min KB", new Long(128L));
		def.put("Ip Filter Banning Persistent", TRUE);
		def.put("Ip Filter Enable Description Cache", TRUE);
		def.put("Ip Filter Autoload File", "");
		def.put("Allow Same IP Peers", FALSE);
		def.put("Use Super Seeding", FALSE);
		def.put("Pause Downloads On Exit", FALSE);
		def.put("Resume Downloads On Start", FALSE);
		def.put("User Mode", ZERO);
		def.put("Use default data dir", FALSE);
		String docPath = SystemProperties.getDocPath();
		File f = new File(docPath, "Azureus Downloads");
		def.put("Default save path", f.getAbsolutePath());
		def.put("update.start", TRUE);
		def.put("update.periodic", TRUE);
		def.put("update.opendialog", TRUE);
		def.put("update.autodownload", FALSE);
		def.put("Send Version Info", TRUE);
		def.put("Logger.Enabled", FALSE);
		def.put("Logging Enable", FALSE);
		def.put("Logging Dir", "");
		def.put("Logging Timestamp", "HH:mm:ss.SSS");
		def.put("Logging Max Size", new Long(5L));
		int logComponents[] = {
			0, 1, 2, 4
		};
		for (int i = 0; i < logComponents.length; i++)
		{
			for (int j = 0; j <= 3; j++)
				def.put((new StringBuilder()).append("bLog").append(logComponents[i]).append("-").append(j).toString(), TRUE);

		}

		def.put("Logger.DebugFiles.Enabled", TRUE);
		def.put("Logging Enable UDP Transport", FALSE);
		def.put("Enable.Proxy", FALSE);
		def.put("Enable.SOCKS", FALSE);
		def.put("Proxy.Host", "");
		def.put("Proxy.Port", "");
		def.put("Proxy.Username", "<none>");
		def.put("Proxy.Password", "");
		def.put("Proxy.Check.On.Start", TRUE);
		def.put("Proxy.Data.Enable", FALSE);
		def.put("Proxy.Data.SOCKS.version", "V4");
		def.put("Proxy.Data.SOCKS.inform", TRUE);
		def.put("Proxy.Data.Same", TRUE);
		def.put("Proxy.Data.Host", "");
		def.put("Proxy.Data.Port", "");
		def.put("Proxy.Data.Username", "<none>");
		def.put("Proxy.Data.Password", "");
		def.put("Start Num Peers", new Long(-1L));
		def.put("Max Upload Speed", new Long(-1L));
		def.put("Max Clients", new Long(-1L));
		def.put("Server.shared.port", TRUE);
		def.put("Low Port", new Long(6881L));
		def.put("Already_Migrated", FALSE);
		def.put("ID", "");
		def.put("Play Download Finished", FALSE);
		def.put("Play Download Finished File", "");
		def.put("Watch Torrent Folder", FALSE);
		def.put("Watch Torrent Folder Interval", ONE);
		def.put("Start Watched Torrents Stopped", FALSE);
		def.put("Watch Torrent Folder Path", "");
		def.put("Prioritize First Piece", FALSE);
		def.put("Prioritize Most Completed Files", FALSE);
		def.put("Piece Picker Request Hint Enabled", TRUE);
		def.put("Use Lazy Bitfield", FALSE);
		def.put("Zero New", FALSE);
		def.put("XFS Allocation", FALSE);
		def.put("Copy And Delete Data Rather Than Move", FALSE);
		def.put("File.save.peers.enable", TRUE);
		def.put("File.strict.locking", TRUE);
		def.put("Move Deleted Data To Recycle Bin", TRUE);
		def.put("Popup Download Finished", FALSE);
		def.put("Popup File Finished", FALSE);
		def.put("Popup Download Added", FALSE);
		def.put("Show Timestamp For Alerts", FALSE);
		def.put("Use Message Box For Popups", FALSE);
		def.put("Suppress Alerts", FALSE);
		def.put("Save Torrent Files", TRUE);
		def.put("General_sDefaultTorrent_Directory", (new StringBuilder()).append(SystemProperties.getUserPath()).append("torrents").toString());
		def.put("Bind IP", "");
		def.put("Enforce Bind IP", FALSE);
		def.put("Stats Export Peer Details", FALSE);
		def.put("Stats Export File Details", FALSE);
		def.put("Stats XSL File", "");
		def.put("Stats Enable", FALSE);
		def.put("Stats Period", new Long(30000L));
		def.put("Stats Dir", "");
		def.put("Stats File", "Azureus_Stats.xml");
		def.put("File.Torrent.IgnoreFiles", ".DS_Store;Thumbs.db;desktop.ini");
		def.put("File.save.peers.max", new Long(512L));
		def.put("Tracker Compact Enable", TRUE);
		def.put("Tracker Key Enable Client", TRUE);
		def.put("Tracker Key Enable Server", TRUE);
		def.put("Tracker Separate Peer IDs", FALSE);
		def.put("Tracker Client Connect Timeout", new Long(120L));
		def.put("Tracker Client Read Timeout", new Long(60L));
		def.put("Tracker Client Send OS and Java Version", TRUE);
		def.put("Tracker Client Show Warnings", TRUE);
		def.put("Tracker Client Min Announce Interval", ZERO);
		def.put("Tracker Client Numwant Limit", new Long(100L));
		def.put("Tracker Client No Port Announce", FALSE);
		def.put("Tracker Public Enable", FALSE);
		def.put("Tracker Log Enable", FALSE);
		def.put("Tracker Port Enable", FALSE);
		def.put("Tracker Port", new Long(6969L));
		def.put("Tracker Port Backups", "");
		def.put("Tracker Port SSL Enable", FALSE);
		def.put("Tracker Port SSL", new Long(7000L));
		def.put("Tracker Port SSL Backups", "");
		def.put("Tracker Port Force External", FALSE);
		def.put("Tracker Host Add Our Announce URLs", TRUE);
		def_put("Tracker IP", "", new IPVerifier());
		def.put("Tracker Port UDP Enable", FALSE);
		def.put("Tracker Port UDP Version", new Long(2L));
		def.put("Tracker Send Peer IDs", TRUE);
		def.put("Tracker Max Peers Returned", new Long(100L));
		def.put("Tracker Scrape Cache", new Long(5000L));
		def.put("Tracker Announce Cache", new Long(500L));
		def.put("Tracker Announce Cache Min Peers", new Long(500L));
		def.put("Tracker Poll Interval Min", new Long(120L));
		def.put("Tracker Poll Interval Max", new Long(3600L));
		def.put("Tracker Poll Seed Interval Mult", new Long(1L));
		def.put("Tracker Scrape Retry Percentage", new Long(200L));
		def.put("Tracker Password Enable Web", FALSE);
		def.put("Tracker Password Web HTTPS Only", FALSE);
		def.put("Tracker Password Enable Torrent", FALSE);
		def.put("Tracker Username", "");
		def.put("Tracker Password", null);
		def.put("Tracker Poll Inc By", new Long(60L));
		def.put("Tracker Poll Inc Per", new Long(10L));
		def.put("Tracker NAT Check Enable", TRUE);
		def.put("Tracker NAT Check Timeout", new Long(15L));
		def.put("Tracker Max Seeds Retained", ZERO);
		def.put("Tracker Max Seeds", ZERO);
		def.put("Tracker Max GET Time", new Long(20L));
		def.put("Tracker Max POST Time Multiplier", ONE);
		def.put("Tracker Max Threads", new Long(48L));
		def.put("Tracker TCP NonBlocking", FALSE);
		def.put("Tracker TCP NonBlocking Restrict Request Types", TRUE);
		def.put("Tracker TCP NonBlocking Conc Max", new Long(2048L));
		def.put("Tracker Client Scrape Enable", TRUE);
		def.put("Tracker Client Scrape Total Disable", FALSE);
		def.put("Tracker Client Scrape Stopped Enable", TRUE);
		def.put("Tracker Client Scrape Single Only", FALSE);
		def.put("Tracker Server Full Scrape Enable", TRUE);
		def.put("Tracker Server Not Found Redirect", "");
		def.put("Tracker Server Support Experimental Extensions", FALSE);
		def.put("Network Selection Prompt", TRUE);
		def.put("Network Selection Default.Public", TRUE);
		def.put("Network Selection Default.I2P", TRUE);
		def.put("Network Selection Default.Tor", TRUE);
		def.put("Tracker Network Selection Default.Public", TRUE);
		def.put("Tracker Network Selection Default.I2P", TRUE);
		def.put("Tracker Network Selection Default.Tor", TRUE);
		def.put("Peer Source Selection Default.Tracker", TRUE);
		def.put("Peer Source Selection Default.DHT", TRUE);
		def.put("Peer Source Selection Default.PeerExchange", TRUE);
		def.put("Peer Source Selection Default.Plugin", TRUE);
		def.put("Peer Source Selection Default.Incoming", TRUE);
		def.put("config.style.useSIUnits", FALSE);
		def.put("config.style.useUnitsRateBits", FALSE);
		def.put("config.style.separateProtDataStats", FALSE);
		def.put("config.style.dataStatsOnly", FALSE);
		def.put("config.style.doNotUseGB", FALSE);
		def.put("Save Torrent Backup", FALSE);
		def.put("Sharing Protocol", "DHT");
		def.put("Sharing Add Hashes", FALSE);
		def.put("Sharing Rescan Enable", FALSE);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -