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
-
Publisher(String, String)
- Constructor.
-
addSubject(String)
- Add a Subject to a WhiteBoard.
-
setValue(String, Object)
- Set a new value for a Subject on WhiteBoard.
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".
addSubject
public boolean addSubject(String sname)
- Add a Subject to a WhiteBoard. Return true if successful.
- Parameters:
- name - Subject's name.
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