net.sourceforge.esw.service
Class ReggieLookup

java.lang.Object
  |
  +--net.sourceforge.esw.util.SupportObject
        |
        +--net.sourceforge.esw.service.ReggieLookup
All Implemented Interfaces:
ISupportObject, java.io.Serializable

public class ReggieLookup
extends SupportObject

This singleton will locate all reachable Jini Reggie Servers and store them for use by any requesting Client.

For environments that do not have multicast enabled (which Jini uses for discovery), or for enabling Unicast Discovery, create properties using the properties framework in the form of . . .

 
    hostNameOfAReggieService 
    hostNameOfAReggieService 
    hostNameOfAReggieService 
   . . .
 
 
. . . for as many Unicast Discovered Reggie services you wish to Discover. Multicast will still be used as well as Unicast.

This object utilizes the Singleton Design Pattern.

See Also:
Serialized Form

Field Summary
protected  net.sourceforge.esw.service.ReggieLookup.Listener listener
          The DiscoveryListener watching for Reggie services in the Enterprise, adding and removing the services to and from the List.
protected  net.jini.discovery.LookupDiscoveryManager lookupDiscovery
          The object that performs the dicovery of Reggie services, notifying the DiscoveryListener of a discoverd reggie or a discarded reggie.
protected static ReggieLookup reggieLookup
          The Singleton instance of this ReggieLookup.
protected  ListenerSupport reggies
          The current list of Reggie lookup services discovered in the Enterprise.
 
Fields inherited from class net.sourceforge.esw.util.SupportObject
id, properties, propertyChildren, propertyListeners, vetoableChildren, vetoableListeners
 
Method Summary
 net.jini.discovery.LookupDiscoveryManager getLookupDiscoveryManager()
          Returns the LookupDiscoveryManager that is responsible for finding Reggie services in the Enterprise and reporting them to us.
 java.lang.Object[] getReggies()
          Returns the current set of found Reggie Services.
static ReggieLookup instance()
          Returns the Singleton instance of this ReggieLookup.
 
Methods inherited from class net.sourceforge.esw.util.SupportObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getID, getProperty, getPropertySize, propertyKeys, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setID, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lookupDiscovery

protected net.jini.discovery.LookupDiscoveryManager lookupDiscovery
The object that performs the dicovery of Reggie services, notifying the DiscoveryListener of a discoverd reggie or a discarded reggie.

listener

protected net.sourceforge.esw.service.ReggieLookup.Listener listener
The DiscoveryListener watching for Reggie services in the Enterprise, adding and removing the services to and from the List.

reggies

protected ListenerSupport reggies
The current list of Reggie lookup services discovered in the Enterprise.

reggieLookup

protected static ReggieLookup reggieLookup
The Singleton instance of this ReggieLookup.
Method Detail

instance

public static ReggieLookup instance()
Returns the Singleton instance of this ReggieLookup.

Returns:
the Singleton instance of this ReggieLookup.

getLookupDiscoveryManager

public net.jini.discovery.LookupDiscoveryManager getLookupDiscoveryManager()
Returns the LookupDiscoveryManager that is responsible for finding Reggie services in the Enterprise and reporting them to us. This Manager can be used to specify specific Reggie Services, or to specify the kind of group for which to find Reggie Servers.

Returns:
the LookupDiscoveryManager for this ReggieLookup.

getReggies

public java.lang.Object[] getReggies()
Returns the current set of found Reggie Services.

Returns:
the current set of found Reggie Services.


Copyright 2002 Free Software Foundation. All Rights Reserved.