org.objectweb.carol.jndi.ns
Interface NameService

All Known Implementing Classes:
AbsRegistry, CmiRegistry, DummyRegistry, IIOPCosNaming, IRMIRegistry, JacORBCosNaming, JeremieRegistry, JRMPRegistry

public interface NameService

Interface NameService is the CAROL Name Service generic interface. This is the carol SPI for a Name Service

Author:
Guillaume Riviere, Florent Benoit (Add methods for fixing firewall issues)

Method Summary
 java.lang.String getHost()
           
 int getPort()
          get port method, get the port for the name service
 boolean isStarted()
          isStarted Method, check if a name service is started
 void setConfigProperties(java.util.Properties p)
          Set the configuration properties of the protocol
 void setHost(java.lang.String host)
          Set the address to use for bind
 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 all ready stop
 

Method Detail

start

void start()
           throws NameServiceException
start Method, Start a new NameService or do nothing if the name service is all ready start

Throws:
NameServiceException - if a problem occure

stop

void stop()
          throws NameServiceException
stop Method, Stop a NameService or do nothing if the name service is all ready stop

Throws:
NameServiceException - if a problem occure

isStarted

boolean isStarted()
isStarted Method, check if a name service is started

Returns:
boolean true if the name service is started

setPort

void setPort(int p)
set port method, set the port for the name service

Parameters:
p - port number

getPort

int getPort()
get port method, get the port for the name service

Returns:
int port number

setHost

void setHost(java.lang.String host)
Set the address to use for bind

Parameters:
host - hostname/ip address

getHost

java.lang.String getHost()
Returns:
hostname/ip to use

setConfigProperties

void setConfigProperties(java.util.Properties p)
Set the configuration properties of the protocol

Parameters:
p - configuration properties