All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class weblab.net.Subscriber

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

public class Subscriber
extends Object
Subscriber provides data subscription service for Subjects the WhiteBoard. This is the top level API for Subscriber functions.

See Also:
WhiteBoard, Publisher

Constructor Index

 o Subscriber(String, String, SubscriberUser)
Constructor.

Method Index

 o subscribe(String)
Subscribe to a Subject to a WhiteBoard.
 o update(String, Object)
Update Subscriber's knowledge of a Subject.

Constructors

 o Subscriber
 public Subscriber(String name,
                   String wb_host,
                   SubscriberUser user)
Constructor.

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

Methods

 o subscribe
 public Object subscribe(String subj_name)
Subscribe to a Subject to a WhiteBoard. Return true if successful.

Parameters:
subj_name - Subject's name.
 o update
 public void update(String name,
                    Object v)
Update Subscriber's knowledge of a Subject.

Parameters:
name - The Subject's name.
v - The Subject's new value.

All Packages  Class Hierarchy  This Package  Previous  Next  Index