1 /*
2  * Created on Dec 8, 2009
3  * Created by Paul Gardner
4  *
5  * Copyright (C) Azureus Software, Inc, All Rights Reserved.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18  */
19 
20 
21 package com.aelitis.azureus.core.tracker;
22 
23 public interface
24 TrackerPeerSource
25 {
26 	public static final int TP_UNKNOWN		= 0;
27 	public static final int TP_TRACKER		= 1;
28 	public static final int TP_HTTP_SEED	= 2;
29 	public static final int TP_DHT			= 3;
30 	public static final int TP_LAN			= 4;
31 	public static final int TP_PEX			= 5;
32 	public static final int TP_INCOMING		= 6;
33 	public static final int TP_PLUGIN		= 7;
34 
35 	public static final int ST_UNKNOWN		= 0;
36 	public static final int ST_DISABLED		= 1;
37 	public static final int ST_STOPPED		= 2;
38 	public static final int ST_QUEUED		= 3;
39 	public static final int ST_UPDATING		= 4;
40 	public static final int ST_ONLINE 		= 5;
41 	public static final int ST_ERROR		= 6;
42 	public static final int ST_AVAILABLE	= 7;
43 	public static final int ST_UNAVAILABLE	= 8;
44 	public static final int ST_INITIALISING	= 9;
45 
46 
47 	public int
getType()48 	getType();
49 
50 	public String
getName()51 	getName();
52 
53 	public int
getStatus()54 	getStatus();
55 
56 	public String
getStatusString()57 	getStatusString();
58 
59 	public int
getSeedCount()60 	getSeedCount();
61 
62 	public int
getLeecherCount()63 	getLeecherCount();
64 
65 	public int
getPeers()66 	getPeers();
67 
68 		/**
69 		 * If the tracker source supports 'number downloads completed' this will be >= 0
70 		 * @return
71 		 */
72 
73 	public int
getCompletedCount()74 	getCompletedCount();
75 
76 	public int
getLastUpdate()77 	getLastUpdate();
78 
79 	public int
getSecondsToUpdate()80 	getSecondsToUpdate();
81 
82 	public int
getInterval()83 	getInterval();
84 
85 	public int
getMinInterval()86 	getMinInterval();
87 
88 	public boolean
isUpdating()89 	isUpdating();
90 
91 	public boolean
canManuallyUpdate()92 	canManuallyUpdate();
93 
94 	public void
manualUpdate()95 	manualUpdate();
96 
97 	public boolean
canDelete()98 	canDelete();
99 
100 	public void
delete()101 	delete();
102 }
103