ostore.network
Class ADns

java.lang.Object
  |
  +--ostore.network.ADns
All Implemented Interfaces:
EventHandlerIF

public class ADns
extends Object
implements EventHandlerIF

Allows a SandStorm stage to do DNS lookups and not block. Enqueue a LookupReq and wait for a LookupResp. The address field of the response will be null in case of failure.

Version:
$Id: ADns.java,v 1.1 2002/11/14 01:36:44 srhea Exp $
Author:
Sean C. Rhea

Nested Class Summary
static class ADns.LookupReq
           
static class ADns.LookupResp
           
 
Constructor Summary
ADns()
           
 
Method Summary
 void destroy()
           
 void handleEvent(QueueElementIF item)
           
 void handleEvents(QueueElementIF[] element_array)
           
 void init(ConfigDataIF config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ADns

public ADns()
Method Detail

init

public void init(ConfigDataIF config)
          throws Exception
Specified by:
init in interface EventHandlerIF
Exception

destroy

public void destroy()
Specified by:
destroy in interface EventHandlerIF

handleEvents

public void handleEvents(QueueElementIF[] element_array)
                  throws EventHandlerException
Specified by:
handleEvents in interface EventHandlerIF
EventHandlerException

handleEvent

public void handleEvent(QueueElementIF item)
                 throws EventHandlerException
Specified by:
handleEvent in interface EventHandlerIF
EventHandlerException