bamboo.vis
Class FetchNodeInfoThread
java.lang.Object
java.lang.Thread
bamboo.vis.FetchNodeInfoThread
- All Implemented Interfaces:
- Runnable
public class FetchNodeInfoThread
- extends Thread
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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 |
logger
public static org.apache.log4j.Logger logger
mult
protected static BigInteger mult
work_queue
protected static LinkedList work_queue
thread_count
protected static int thread_count
cb
protected FetchNodeInfoThread.FetchDoneCb cb
idle
protected boolean idle
hostname
protected static Pattern hostname
ip_addr
protected static Pattern ip_addr
port
protected static Pattern port
id
protected static Pattern id
uptime
protected static Pattern uptime
coord
protected static Pattern coord
ls_neighbor
protected static Pattern ls_neighbor
rt_neighbor
protected static Pattern rt_neighbor
FetchNodeInfoThread
public FetchNodeInfoThread(FetchNodeInfoThread.FetchDoneCb cb)
idle
public boolean idle()
add_work
public static void add_work(String url,
Object user_data)
get_work
public Object[] get_work()
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
parse_body
public static FetchNodeInfoThread.NodeInfo parse_body(InputStream is)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)