~motu-torrent/azureus/upstream-stable

« back to all changes in this revision

Viewing changes to com/aelitis/azureus/core/peer/cache/CachePeer.java

  • Committer: John Dong
  • Date: 2007-10-22 04:54:13 UTC
  • Revision ID: john.dong@gmail.com-20071022045413-3ovb11u82rrcokxx
Commit 3.0.3.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Created on Feb 1, 2007
 
3
 * Created by Paul Gardner
 
4
 * Copyright (C) 2007 Aelitis, All Rights Reserved.
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; either version 2
 
9
 * of the License, or (at your option) any later version.
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
17
 * 
 
18
 * AELITIS, SAS au capital de 63.529,40 euros
 
19
 * 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.
 
20
 *
 
21
 */
 
22
 
 
23
 
 
24
package com.aelitis.azureus.core.peer.cache;
 
25
 
 
26
import java.net.InetAddress;
 
27
 
 
28
public interface 
 
29
CachePeer 
 
30
{
 
31
        public static final int PT_NONE                         = 1;
 
32
        public static final int PT_CACHE_LOGIC          = 2;
 
33
        
 
34
        public int
 
35
        getType();
 
36
        
 
37
        public InetAddress
 
38
        getAddress();
 
39
        
 
40
        public int
 
41
        getPort();
 
42
        
 
43
        public long
 
44
        getCreateTime(
 
45
                long    now );
 
46
        
 
47
        public long
 
48
        getInjectTime(
 
49
                long    now );
 
50
        
 
51
        public void
 
52
        setInjectTime(
 
53
                long    time );
 
54
        
 
55
        public long
 
56
        getSpeedChangeTime(
 
57
                long    now );
 
58
        
 
59
        public void
 
60
        setSpeedChangeTime(
 
61
                long    time );
 
62
        
 
63
        public boolean
 
64
        getAutoReconnect();
 
65
        
 
66
        public void
 
67
        setAutoReconnect(
 
68
                boolean         auto );
 
69
        
 
70
        public boolean
 
71
        sameAs(
 
72
                CachePeer       other );
 
73
        
 
74
        public String
 
75
        getString();
 
76
}