tapestry.ptr.impl
Class LocationStage

java.lang.Object
  |
  +--ostore.util.StandardStage
        |
        +--tapestry.ptr.impl.LocationStage
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

public class LocationStage
extends StandardStage
implements SingleThreadedEventHandlerIF

WARNING This class is not complete yet. If you are not online this stage will hang and then die. LocationStage fetches and parses the geographic location of a list of nodes given their ip_addresses. When used as a stand alone program LocationStage prints the location list to the screen. When used as a stage use the LocationReq, LocationResp, and LocationInfo interface.

Version:
$Id: LocationStage.java,v 1.1.1.1 2004/03/26 19:57:11 hweather Exp $
Author:
Hakim Weatherspoon

Nested Class Summary
static class LocationStage.LocationInfo
          Ping another node to test if the node is alive.
static class LocationStage.LocationReq
          LocationReq request to the LocationStage to return a LocationStage.LocationInfo pertaining to the given NodeId.
static class LocationStage.LocationResp
          LocationResp response from the LocationStage containing LocationStage.LocationInfo corresponding to the given NodeId.
 
Field Summary
 
Fields inherited from class ostore.util.StandardStage
classifier, DEBUG, event_types, inb_msg_types, my_node_id, my_sink, outb_msg_types, tag
 
Constructor Summary
LocationStage()
           
 
Method Summary
 void handleEvent(QueueElementIF item)
          Specified by seda.sandStorm.api.EventHandlerIF
 void init(ConfigDataIF config)
          Specified by seda.sandStorm.api.EventHandlerIF
static void main(String[] argv)
           
 
Methods inherited from class ostore.util.StandardStage
BUG, destroy, dispatch, enqueue, handleEvents, now_ms, now_us
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationStage

public LocationStage()
Method Detail

main

public static void main(String[] argv)

handleEvent

public void handleEvent(QueueElementIF item)
                 throws EventHandlerException
Specified by seda.sandStorm.api.EventHandlerIF

Specified by:
handleEvent in interface EventHandlerIF
EventHandlerException

init

public void init(ConfigDataIF config)
          throws Exception
Specified by seda.sandStorm.api.EventHandlerIF

Specified by:
init in interface EventHandlerIF
Overrides:
init in class StandardStage
Exception