org.kaariboga.agents
Class ServerLister

java.lang.Object
  |
  +--org.kaariboga.core.Kaariboga
        |
        +--org.kaariboga.agents.ServerLister
All Implemented Interfaces:
KbMessageHandler, java.lang.Runnable, java.io.Serializable

public class ServerLister
extends Kaariboga

Utility agent that prints out a list of all servers connected to the domain. Note how easy it is to extend an existing program with agents. Future versions of kaariboga will probably contain special agents that are automatically integrated into the menu structure.

See Also:
Serialized Form

Inner classes inherited from class org.kaariboga.core.Kaariboga
Kaariboga.FireEventThread, Kaariboga.FireMessageThread
 
Field Summary
private  DomainService serviceObject
          The object this class wants to access at a base.
 
Fields inherited from class org.kaariboga.core.Kaariboga
base, destination, kaaribogaListener, messageListener, name
 
Constructor Summary
ServerLister(java.lang.String name)
          Just initialize the super class.
 
Method Summary
 void run()
          Prints out the names of all servers connected to the domain.
 
Methods inherited from class org.kaariboga.core.Kaariboga
addKaaribogaListener, addKaaribogaMessageListener, fireDestroyRequest, fireDispatchRequest, fireKaaribogaMessage, fireSleepRequest, getDestination, getName, handleMessage, onArrival, onAwake, onCreate, onDestroy, onDispatch, onSleep, setBase, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

serviceObject

private transient DomainService serviceObject
The object this class wants to access at a base.
Constructor Detail

ServerLister

public ServerLister(java.lang.String name)
Just initialize the super class.
Parameters:
name - The name of the agent. This name has to be unique. Normally the KaaribogaBase class provides some method to generate a unique name.
Method Detail

run

public void run()
Prints out the names of all servers connected to the domain.
Overrides:
run in class Kaariboga