org.objectweb.carol.jndi.ns

Class 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 (Guillaume.Riviere@inrialpes.fr)

Method Summary

static NameServiceManager
getNSManagerCurrent()
Method getCurrent
static void
main(String[] args)
Main function: start all registry and wait for control C function
static void
startNS()
Start all names service
static void
startNonStartedNS()
Start all non-started names service
static void
stopNS()
Stop all name services

Method Details

getNSManagerCurrent

public static NameServiceManager getNSManagerCurrent()
Method getCurrent

Returns:
NameServiceManager return the current


main

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

Parameters:
args - arguments


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