org.objectweb.carol.jndi.ns
Class NameServiceManager

java.lang.Object
  extended byorg.objectweb.carol.jndi.ns.NameServiceManager

public class NameServiceManager
extends java.lang.Object

Class NameServicemanager is the CAROL Name Service manager. This is the carol API for Nme services management

Author:
Guillaume Riviere

Method Summary
static NameServiceManager getNSManagerCurrent()
          Method getCurrent
static void main(java.lang.String[] args)
          Main function: start all registry and wait for control C function
static void startNonStartedNS()
          Start all non-started names service
static void startNS()
          Start all names service
static void stopNS()
          Stop all name services
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNSManagerCurrent

public static NameServiceManager getNSManagerCurrent()
Method getCurrent

Returns:
NameServiceManager return the current

startNS

public static void startNS()
                    throws NameServiceException
Start all names service

Throws:
NameServiceException - if one of the name services is already start

startNonStartedNS

public static void startNonStartedNS()
Start all non-started names service


stopNS

public static void stopNS()
                   throws NameServiceException
Stop all name services

Throws:
NameServiceException - if an exception occure at stoping time

main

public static void main(java.lang.String[] args)
Main function: start all registry and wait for control C function

Parameters:
args - arguments