|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread ants.p2p.utils.addresses.InetAddressEngine
public class InetAddressEngine
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
broadcastTimeToLive
|
static InetAddressEngine |
instance
|
static java.io.File |
peersFile
|
static int |
peersToMemorize
|
static int |
peersToSendback
|
static int |
refreshRate
|
static java.io.File |
trustedPeersFile
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
static void |
addTrustedPeer(java.lang.String inetAddr,
int port)
|
static boolean |
contains(int[] indexes,
int val)
|
static InetAddressEngine |
getInstance()
|
static InetAddressEngine |
getInstance(WarriorAnt owner)
|
static java.util.ArrayList |
getPeersWithFreeSlots(boolean sendMyAddress)
|
static java.util.ArrayList |
getRandomIMPeersWithFreeSlots(int howMany)
|
static java.util.ArrayList |
getRandomPeersWithFreeSlots(int howMany,
boolean sendMyAddress)
|
static java.util.ArrayList |
getTrustedPeers()
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
static void |
removeDeadPeer(ServerInfo s)
|
static void |
removeTrustedPeer(ServerInfo sInfo)
|
void |
run()
|
void |
terminate()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int refreshRate
public static int peersToMemorize
public static int peersToSendback
public static int broadcastTimeToLive
public static InetAddressEngine instance
public static java.io.File trustedPeersFile
public static java.io.File peersFile
Method Detail |
---|
public static InetAddressEngine getInstance(WarriorAnt owner)
public static InetAddressEngine getInstance()
public static boolean contains(int[] indexes, int val)
public static java.util.ArrayList getRandomIMPeersWithFreeSlots(int howMany)
public static java.util.ArrayList getRandomPeersWithFreeSlots(int howMany, boolean sendMyAddress)
public static java.util.ArrayList getPeersWithFreeSlots(boolean sendMyAddress)
public static void removeDeadPeer(ServerInfo s)
public static java.util.ArrayList getTrustedPeers()
public static void removeTrustedPeer(ServerInfo sInfo)
public static void addTrustedPeer(java.lang.String inetAddr, int port)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void terminate()
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |