org.objectweb.carol.jndi.ns

Class CmiRegistry

Implemented Interfaces:
NameService

public class CmiRegistry
extends java.lang.Object
implements NameService

Class CmiRegistry

Author:
Simon Nieuviarts (Simon.Nieuviarts@inrialpes.fr)

Method Summary

int
getPort()
boolean
isStarted()
isStarted Method, check if a name service is started
void
setPort(int p)
set port method, set the port for the name service
void
start()
start Method, Start a new NameService or do nothing if the name service is all ready start
void
stop()
stop Method, Stop a NameService or do nothing if the name service is already stop

Method Details

getPort

public int getPort()
Specified by:
getPort in interface NameService


isStarted

public boolean isStarted()
isStarted Method, check if a name service is started
Specified by:
isStarted in interface NameService

Returns:
boolean true if the name service is started


setPort

public void setPort(int p)
set port method, set the port for the name service
Specified by:
setPort in interface NameService

Parameters:


start

public void start()
            throws NameServiceException
start Method, Start a new NameService or do nothing if the name service is all ready start
Specified by:
start in interface NameService

Throws:
NameServiceException - if a problem occure


stop

public void stop()
            throws NameServiceException
stop Method, Stop a NameService or do nothing if the name service is already stop
Specified by:
stop in interface NameService

Throws:
NameServiceException - if a problem occure