nenok.net.registry
Class RegistryStarter

java.lang.Object
  extended by nenok.net.registry.RegistryStarter

public class RegistryStarter
extends Object

This class launches Nenok Registry instances and registers them in a JINI lookup service.

Version:
1.1
Author:
Marc Pouly

Constructor Summary
RegistryStarter(String[] args)
          Constructor:
RegistryStarter(String[] configArgs, com.sun.jini.start.LifeCycle lifeCycle)
          Constructor:
 
Method Summary
 boolean terminate()
          Terminates this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryStarter

public RegistryStarter(String[] configArgs,
                       com.sun.jini.start.LifeCycle lifeCycle)
Constructor:

Parameters:
configArgs - Arguments from a configuration file.
lifeCycle - no meaning - given by interface for unknown reasons.

RegistryStarter

public RegistryStarter(String[] args)
Constructor:

Parameters:
args - Array of configuration file names.
Method Detail

terminate

public boolean terminate()
Terminates this service. This method unexports the registry service and cancels all leases. The service disappears when the leases expire.

Returns:
true, if the service has been unexported sucessfully.