DNet
Class HostBase
java.lang.Object
|
+--DNet.HostBase
- public class HostBase
- extends java.lang.Object
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
GNUTELLA
public static final int GNUTELLA
DNET
public static final int DNET
N_TYPES
private static final int N_TYPES
hosts
private java.util.LinkedList hosts
pos
private int pos
inst
private static HostBase inst
minHosts
private int minHosts
maxHosts
private int maxHosts
HostBase
private HostBase()
reset
public void reset()
next
public HostNode next()
instance
public static HostBase instance()
init
public static HostBase init()
addHost
public void addHost(HostNode host)
addHost
public void addHost(int type,
java.lang.String ip,
int port)
removeHost
public void removeHost(HostNode host)
removeHost
public void removeHost(int type,
java.lang.String ip,
int port)
isFull
public boolean isFull()
load
public boolean load()
save
public boolean save()