edu.jhu.cnds.Frugal
Class FrugalEars
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--edu.jhu.cnds.Frugal.FrugalEars
- public class FrugalEars
- extends java.rmi.server.UnicastRemoteObject
- implements net.jini.discovery.DiscoveryListener, net.jini.core.event.RemoteEventListener
An event handling class for users of the Frugal Package.
- Version:
- 2.0
- Author:
- R. Sean Borgstrom
- See Also:
- Serialized Form
|
Field Summary |
java.util.Hashtable |
FrugalManagers
The Frugal Managers this class knows of. |
java.util.Hashtable |
lookupServices
The lookup services this class knows of. |
java.util.Hashtable |
ourLeases
Leases for this class' registration of interest in events. |
net.jini.lease.LeaseRenewalManager |
protectLeases
LeaseRenewalManager for this class' leases. |
net.jini.discovery.LookupDiscoveryManager |
scout
LookupDiscoveryManager for this class. |
net.jini.core.lookup.ServiceTemplate |
searchDescription
Description of a Frugal Manager class. |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
Constructor Summary |
FrugalEars()
This constructor performs no actions at this time. |
|
Method Summary |
void |
discarded(net.jini.discovery.DiscoveryEvent evt)
Called when a lookup service registrar is discarded. |
void |
discovered(net.jini.discovery.DiscoveryEvent evt)
Called when lookup services are discovered. |
FrugalManagerRemote |
getManager()
Finds a Frugal Manager for the caller. |
void |
notify(net.jini.core.event.RemoteEvent evt)
Called when something of interest transpires remotely. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
lookupServices
public transient java.util.Hashtable lookupServices
- The lookup services this class knows of.
ourLeases
public transient java.util.Hashtable ourLeases
- Leases for this class' registration of interest in events.
FrugalManagers
public java.util.Hashtable FrugalManagers
- The Frugal Managers this class knows of.
searchDescription
public net.jini.core.lookup.ServiceTemplate searchDescription
- Description of a Frugal Manager class.
protectLeases
public net.jini.lease.LeaseRenewalManager protectLeases
- LeaseRenewalManager for this class' leases.
scout
public transient net.jini.discovery.LookupDiscoveryManager scout
- LookupDiscoveryManager for this class.
FrugalEars
public FrugalEars()
throws java.rmi.RemoteException
- This constructor performs no actions at this time.
discovered
public void discovered(net.jini.discovery.DiscoveryEvent evt)
- Called when lookup services are discovered.
- Specified by:
- discovered in interface net.jini.discovery.DiscoveryListener
- Parameters:
evt - A DiscoveryEvent describing the service(s) found.
discarded
public void discarded(net.jini.discovery.DiscoveryEvent evt)
- Called when a lookup service registrar is discarded.
- Specified by:
- discarded in interface net.jini.discovery.DiscoveryListener
- Parameters:
evt - A DiscoveryEvent describing the discarded registrar(s).
notify
public void notify(net.jini.core.event.RemoteEvent evt)
throws java.rmi.RemoteException
- Called when something of interest transpires remotely.
- Specified by:
- notify in interface net.jini.core.event.RemoteEventListener
- Parameters:
evt - A RemoteEvent describing the change in remote state.
getManager
public FrugalManagerRemote getManager()
throws java.rmi.RemoteException
- Finds a Frugal Manager for the caller.
- Returns:
- A FrugalManagerRemote reference to a Frugal Manager on the lookup service.