edu.nyu.cs.pdsg.discovery
Class Subscriber

java.lang.Object
  extended byedu.nyu.cs.pdsg.discovery.Subscriber

public class Subscriber
extends java.lang.Object


Field Summary
private  Authorizer authorizer
           
private  ILocatorCallback callback
           
 
Constructor Summary
Subscriber(Authorizer _authorizer, ILocatorCallback _callback)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Two Subscribers are equal if they have references to the same Authorizers and ICallbacks
 Authorizer getAuthorizer()
           
 ILocatorCallback getCallback()
           
protected  void notifyCallback(ServiceLocatorCollection service, Locator locator)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authorizer

private Authorizer authorizer

callback

private ILocatorCallback callback
Constructor Detail

Subscriber

public Subscriber(Authorizer _authorizer,
                  ILocatorCallback _callback)
Parameters:
_authorizer - the Authorizer to use when notifying the Subscriber about Locators
_callback - the class that is to be notified upon receipt of new Locators
Method Detail

notifyCallback

protected void notifyCallback(ServiceLocatorCollection service,
                              Locator locator)
Parameters:
service - the ServiceLocatorCollection for which new Locators have been found

getAuthorizer

public Authorizer getAuthorizer()
Returns:
the Authorizer used for this Subscriber

getCallback

public ILocatorCallback getCallback()
Returns:
the class that is notified upon receipt of new Locators

equals

public boolean equals(java.lang.Object o)
Two Subscribers are equal if they have references to the same Authorizers and ICallbacks



Copyright (c) 2002-2003 New York University RLAB