Behavior Server 

The server provides an environment for uploading and storing java classes, creating instances from these classes and running these instances at the server. The server implements 'online authoring' this means a client can upload an other (newer) version of a class. In this case the instances of the replaced class (and the instances of the subclasses) will by restarted automatically.

Behavior Server Structure

The server is fully multithreaded each connection to a client is handled by a separate thread. A 'Listener' thread accepts requests of clients for setting up a connection and creates a 'Connection' thread for each request. A separate 'Runner' thread goes periodically through the instances of the uploaded classes. It calls the 'run' method of each instance whose status is RUNNING.

The server provides the following functionality

  • Functionality for uploading, updating and deleting java classes
  • Functionality for creating and deleting instances of uploaded behavior classes.
  • Functionality for starting and stopping instances
  • Functionality for setting and querying static class parameters
  • Functionality for querying information about the uploaded classes and instances
  • Functionality for communication between instances of uploaded behavior classes
  • Behavior Server Information Window

    Behavior Server Info Window

    This window views information about the state of the server. It contains the following six lists:

    Behavior Server Option Window

    Behavior Server Option Window

    This window is used to change options of the server. This includes:

    Behavior Server Error Log Window

    This window is used to display error messages. It shows mainly messages about errors respectively exceptions encountered while running an instance of an uploaded class. It doesn't show errors which occur through incorrect client commands (e.g. trying to delete a nonexistent class).

    Behavior Server Limitations


    Related Topics