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

📄 rptrackertorrent.java

📁 java 文件下载器。可自定义
💻 JAVA
字号:
// 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:   RPTrackerTorrent.java

package org.gudy.azureus2.pluginsimpl.remote.tracker;

import org.gudy.azureus2.plugins.torrent.Torrent;
import org.gudy.azureus2.plugins.tracker.*;
import org.gudy.azureus2.pluginsimpl.remote.*;
import org.gudy.azureus2.pluginsimpl.remote.torrent.RPTorrent;

public class RPTrackerTorrent extends RPObject
	implements TrackerTorrent
{

	protected transient TrackerTorrent delegate;
	public RPTorrent torrent;
	public int status;
	public long total_uploaded;
	public long total_downloaded;
	public long average_uploaded;
	public long average_downloaded;
	public long total_left;
	public long completed_count;
	public long total_bytes_in;
	public long average_bytes_in;
	public long total_bytes_out;
	public long average_bytes_out;
	public long scrape_count;
	public long average_scrape_count;
	public long announce_count;
	public long average_announce_count;
	public int seed_count;
	public int leecher_count;
	public int bad_NAT_count;

	public static RPTrackerTorrent create(TrackerTorrent _delegate)
	{
		RPTrackerTorrent res = (RPTrackerTorrent)_lookupLocal(_delegate);
		if (res == null)
			res = new RPTrackerTorrent(_delegate);
		return res;
	}

	protected RPTrackerTorrent(TrackerTorrent _delegate)
	{
		super(_delegate);
		if (delegate.getTorrent() != null)
		{
			torrent = (RPTorrent)_lookupLocal(delegate.getTorrent());
			if (torrent == null)
				torrent = RPTorrent.create(delegate.getTorrent());
		}
	}

	protected void _setDelegate(Object _delegate)
	{
		delegate = (TrackerTorrent)_delegate;
		status = delegate.getStatus();
		total_uploaded = delegate.getTotalUploaded();
		total_downloaded = delegate.getTotalDownloaded();
		average_uploaded = delegate.getAverageUploaded();
		average_downloaded = delegate.getAverageDownloaded();
		total_left = delegate.getTotalLeft();
		completed_count = delegate.getCompletedCount();
		total_bytes_in = delegate.getTotalBytesIn();
		average_bytes_in = delegate.getAverageBytesIn();
		total_bytes_out = delegate.getTotalBytesOut();
		average_bytes_out = delegate.getAverageBytesOut();
		scrape_count = delegate.getScrapeCount();
		average_scrape_count = delegate.getAverageScrapeCount();
		announce_count = delegate.getAnnounceCount();
		average_announce_count = delegate.getAverageAnnounceCount();
		seed_count = delegate.getSeedCount();
		leecher_count = delegate.getLeecherCount();
		bad_NAT_count = delegate.getBadNATCount();
	}

	public Object _setLocal()
		throws RPException
	{
		Object res = _fixupLocal();
		if (torrent != null)
			torrent._setLocal();
		return res;
	}

	public void _setRemote(RPRequestDispatcher dispatcher)
	{
		super._setRemote(dispatcher);
		if (torrent != null)
			torrent._setRemote(dispatcher);
	}

	public RPReply _process(RPRequest request)
	{
		String method = request.getMethod();
		throw new RPException((new StringBuilder()).append("Unknown method: ").append(method).toString());
	}

	public void start()
		throws TrackerException
	{
		notSupported();
	}

	public void stop()
		throws TrackerException
	{
		notSupported();
	}

	public void remove()
		throws TrackerTorrentRemovalVetoException
	{
		notSupported();
	}

	public boolean canBeRemoved()
		throws TrackerTorrentRemovalVetoException
	{
		notSupported();
		return false;
	}

	public Torrent getTorrent()
	{
		return torrent;
	}

	public TrackerPeer[] getPeers()
	{
		notSupported();
		return null;
	}

	public int getStatus()
	{
		return status;
	}

	public long getTotalUploaded()
	{
		return total_uploaded;
	}

	public long getTotalDownloaded()
	{
		return total_downloaded;
	}

	public long getAverageUploaded()
	{
		return average_uploaded;
	}

	public long getAverageDownloaded()
	{
		return average_downloaded;
	}

	public long getTotalLeft()
	{
		return total_left;
	}

	public long getCompletedCount()
	{
		return completed_count;
	}

	public long getTotalBytesIn()
	{
		return total_bytes_in;
	}

	public long getAverageBytesIn()
	{
		return average_bytes_in;
	}

	public long getTotalBytesOut()
	{
		return total_bytes_out;
	}

	public long getAverageBytesOut()
	{
		return average_bytes_out;
	}

	public long getScrapeCount()
	{
		return scrape_count;
	}

	public long getAverageScrapeCount()
	{
		return average_scrape_count;
	}

	public long getAnnounceCount()
	{
		return announce_count;
	}

	public long getAverageAnnounceCount()
	{
		return average_announce_count;
	}

	public int getSeedCount()
	{
		return seed_count;
	}

	public int getLeecherCount()
	{
		return leecher_count;
	}

	public int getBadNATCount()
	{
		return bad_NAT_count;
	}

	public void disableReplyCaching()
	{
		notSupported();
	}

	public boolean isPassive()
	{
		notSupported();
		return false;
	}

	public long getDateAdded()
	{
		notSupported();
		return 0L;
	}

	public void addListener(TrackerTorrentListener listener)
	{
		notSupported();
	}

	public void removeListener(TrackerTorrentListener listener)
	{
		notSupported();
	}

	public void addRemovalListener(TrackerTorrentWillBeRemovedListener listener)
	{
		notSupported();
	}

	public void removeRemovalListener(TrackerTorrentWillBeRemovedListener listener)
	{
		notSupported();
	}
}

⌨️ 快捷键说明

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