next up previous contents
Next: About this document ... Up: The most important Classes Previous: KaaribogaClassLoader   Contents

KaaribogaMessage

All information interchange in the Kaariboga system is done by messages. This is a very powerful concept, because it provides the possibility to transfer arbitrary kinds of information. The KaaribogaMessage looks like this:
KaaribogaMessage
int version
KaaribogaAddress recipient
KaaribogaAddress sender
String kind
String content
Byte binary[]

Most important to understanding is the kind field. The following table lists the possible values and what is happening.

Important Fields of a Message
purpose kind content binary
transportation of an agent KAARIBOGA agent's name internal state of the agent
get an agent from another server GET name of requested agent null
get byte code of an agent GET_CLASS name of requested class null
transport byte code of a class CLASS name of the class byte code of the class
transport file FILE file name bytes of the file
an error occured ERROR error message null
arbitrary message MESSAGE free use free use
notify domain server BASE_ONLINE null null
notify domain server BASE_OFFLINE null null
notification how many servers are connected to a domain BASES null Servers connected to the domain



next up previous contents
Next: About this document ... Up: The most important Classes Previous: KaaribogaClassLoader   Contents
Dirk 2002-09-01