SunSPOT API V5.0


com.sun.spot.peripheral.radio.mhrp.aodv.routing
Class RoutingTableCleaner

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.spot.peripheral.radio.mhrp.aodv.routing.RoutingTableCleaner
All Implemented Interfaces:
Runnable

public class RoutingTableCleaner
extends Thread

Version:
0.1
Author:
Allen Ajit George

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RoutingTableCleaner(RoutingTable routingTable)
          constructs a new routing table cleaner
 
Method Summary
 void run()
          calls the routingTable.cleanTable() method every Constants.ROUTING_TABLE_CLEANER_SLEEP_TIME.
 void stopThread()
           
 
Methods inherited from class java.lang.Thread
activeCount, currentThread, getName, getPriority, interrupt, isAlive, join, setPriority, sleep, start, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoutingTableCleaner

public RoutingTableCleaner(RoutingTable routingTable)
constructs a new routing table cleaner

Method Detail

run

public void run()
calls the routingTable.cleanTable() method every Constants.ROUTING_TABLE_CLEANER_SLEEP_TIME. This is 8000 milisec in the current implementation

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.start(), Runnable.run()

stopThread

public void stopThread()

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.