bamboo.vis
Class FetchNodeInfoThread

java.lang.Object
  extended by java.lang.Thread
      extended by bamboo.vis.FetchNodeInfoThread
All Implemented Interfaces:
Runnable

public class FetchNodeInfoThread
extends Thread


Nested Class Summary
static interface FetchNodeInfoThread.FetchDoneCb
           
static class FetchNodeInfoThread.NeighborInfo
           
static class FetchNodeInfoThread.NodeInfo
           
static class FetchNodeInfoThread.TestCb
           
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  FetchNodeInfoThread.FetchDoneCb cb
           
protected static Pattern coord
           
protected static Pattern hostname
           
protected static Pattern id
           
protected  boolean idle
           
protected static Pattern ip_addr
           
static org.apache.log4j.Logger logger
           
protected static Pattern ls_neighbor
           
protected static BigInteger mult
           
protected static Pattern port
           
protected static Pattern rt_neighbor
           
protected static int thread_count
           
protected static Pattern uptime
           
protected static LinkedList work_queue
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FetchNodeInfoThread(FetchNodeInfoThread.FetchDoneCb cb)
           
 
Method Summary
static void add_work(String url, Object user_data)
           
 Object[] get_work()
           
 boolean idle()
           
static void main(String[] args)
           
static FetchNodeInfoThread.NodeInfo parse_body(InputStream is)
           
 void run()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

FetchNodeInfoThread

public FetchNodeInfoThread(FetchNodeInfoThread.FetchDoneCb cb)
Method Detail

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)