demo.helloworld.step1.impl
Class HelloWorldServer

java.lang.Object
  |
  +--ostore.util.StandardStage
        |
        +--demo.helloworld.step1.impl.HelloWorldServer
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

public class HelloWorldServer
extends StandardStage
implements SingleThreadedEventHandlerIF

Helloworld is a very simple test that introduces a programmer to self-organizing networks and event based programming. Helloworld works by a HelloWorldClient sending a HelloWorldLocateMsg to a HelloWorldServer. The HelloWorldServer prints the contained msg and returns a response. That is it!

USAGE

Look at the above paragraph

INITIALIZATION PARAMETERS

debug_level
Turns on/off debugging. debug_level=0 => off, debug_level>0 => on

Version:
$Id: HelloWorldServer.java,v 1.1 2004/06/14 06:24:17 kelvinso Exp $
Author:
Chiu Wah Kelvin So

Field Summary
 
Fields inherited from class ostore.util.StandardStage
classifier, DEBUG, event_types, inb_msg_types, logger, my_node_id, my_sink, outb_msg_types, resender, resender_tokens, serializable_types, sim_running, tag
 
Constructor Summary
HelloWorldServer()
          Constructor: Creates a new HelloWorldServer.
 
Method Summary
 void handleEvent(QueueElementIF item)
          Specified by seda.sandStorm.api.EventHandlerIF
 void init(ConfigDataIF config)
          Specified by seda.sandStorm.api.EventHandlerIF
 
Methods inherited from class ostore.util.StandardStage
BUG, BUG, 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

HelloWorldServer

public HelloWorldServer()
Constructor: Creates a new HelloWorldServer.

Method Detail

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

handleEvent

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

Specified by:
handleEvent in interface EventHandlerIF
EventHandlerException