demo.helloworld.step2.impl
Class HelloWorldClient
java.lang.Object
|
+--ostore.util.StandardStage
|
+--demo.helloworld.step2.impl.HelloWorldClient
- All Implemented Interfaces:
- EventHandlerIF, SingleThreadedEventHandlerIF
- public class HelloWorldClient
- 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
- LocateTimeout
- Max time given for a
HelloWorldLocateMsg
to result in receiving
response
- NumRetries
- Number of times to
Resender.resend(seda.sandStorm.api.QueueElementIF, int, long)
a
HelloWorldLocateMsg
.
- NumOfReqServers
- Number of servers
HelloWorldLocateMsg
needed to be located.
- Version:
- $Id: HelloWorldClient.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 |
HelloWorldClient()
Constructor: Creates a new HelloWorldClient . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloWorldClient
public HelloWorldClient()
- Constructor: Creates a new
HelloWorldClient
.
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