The Broker as a Module

The Broker, that is, the program which forwards the CALL FUNC and other messages, is itself a module (called "Broker"), and implements some methods.

These are used by the graphical user interface (GUI) to the Broker. The GUI is a standalone program that connects to the Broker like any other client, inquires about the Broker's state by making function calls, and displays the information.

NOTE: The information below is not true. It describes what the method calls should look like, but they have not been changed to look like this yet.

Connection

A Connection is the connection of a module to the server. Both the class Connection and instances of the class are publications which can be subscribed to.

Class Method

list

Instance Attributes

log
A log of all messages between the server and the module connected by this connection.
The following methods can be used with the logs:
get
subscribe

StartableServer

The broker has a class called StartableServer. StartableServers are identified by their name, and support the methods:

Class Methods

list
new <password> <name> <command-line> <restart> <startTimeout> <stopTimeout> <email>

Instance Methods

stop
start
info
change <newName> <newCommandLine>

Attributes

stderr
stdout


Previous: Using the Broker from Tcl, Up: Implementing Modules

© Copyright 1997 Erland Lewin and the members of the Center for Speech Technology