public class DistributedServerRMIGeneric
extends java.lang.Object
implements net.jini.lookup.ServiceIDListener, net.jini.discovery.DiscoveryListener
| Red (cxh) |
| Red (kapokasa) |
| Constructor and Description |
|---|
DistributedServerRMIGeneric(java.lang.String configFileName)
Construct a DistributedServerRMIGeneric with a configuration file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
discarded(net.jini.discovery.DiscoveryEvent evt)
Called when one or more lookup service registrars has been discarded.
|
void |
discovered(net.jini.discovery.DiscoveryEvent evt)
Called when one or more lookup service registrars has been discovered.
|
static void |
main(java.lang.String[] args)
Create a new instance of this application, passing it the first
command-line argument (configuration file).
|
void |
serviceIDNotify(net.jini.core.lookup.ServiceID serviceID)
Required by the ServiceIDListener interface.
|
void |
tryRetrieveServiceId(java.io.File serviceIdFile)
Try to load the service ID from file.
|
public DistributedServerRMIGeneric(java.lang.String configFileName)
configFileName - The configuration file.public void discarded(net.jini.discovery.DiscoveryEvent evt)
discarded in interface net.jini.discovery.DiscoveryListenerevt - The event that describes the discovered registrars.public void discovered(net.jini.discovery.DiscoveryEvent evt)
discovered in interface net.jini.discovery.DiscoveryListenerevt - The event that describes the discovered registrars.public static void main(java.lang.String[] args)
args - The command-line arguments.public void serviceIDNotify(net.jini.core.lookup.ServiceID serviceID)
serviceIDNotify in interface net.jini.lookup.ServiceIDListenerserviceID - the service ID assigned by the lookup service.public void tryRetrieveServiceId(java.io.File serviceIdFile)
serviceIdFile - name of the file where the serviceID is stored.