All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class weblab.net.Publisher

java.lang.Object
   |
   +----weblab.net.Publisher

public class Publisher
extends Object
Publisher provides data publishing service on the WhiteBoard. This is the top level API for Publisher functions.

See Also:
WhiteBoard, Subscriber

Constructor Index

 o Publisher(String, String)
Constructor.

Method Index

 o addSubject(String)
Add a Subject to a WhiteBoard.
 o setValue(String, Object)
Set a new value for a Subject on WhiteBoard.

Constructors

 o Publisher
 public Publisher(String name,
                  String wb_host)
Constructor.

Parameters:
name - the Publisher's name.
wb_host - the WhiteBoard's host name. For example, "ottawa".

Methods

 o addSubject
 public boolean addSubject(String sname)
Add a Subject to a WhiteBoard. Return true if successful.

Parameters:
name - Subject's name.
 o setValue
 public boolean setValue(String name,
                         Object v)
Set a new value for a Subject on WhiteBoard. Return true if successful.

Parameters:
name - Subject's name.
v - New value.

All Packages  Class Hierarchy  This Package  Previous  Next  Index