demo.helloworld.step2.impl
Class HelloWorldServer
java.lang.Object
|
+--ostore.util.StandardStage
|
+--demo.helloworld.step2.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 some number of
HelloWorldServer
. Each
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:30:17 kelvinso Exp $
- Author:
- Chiu Wah Kelvin So
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloWorldServer
public HelloWorldServer()
- Constructor: Creates a new
HelloWorldServer
.
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