org.objectweb.carol.jndi.ns
Class JRMPRegistry

java.lang.Object
  extended byorg.objectweb.carol.jndi.ns.JRMPRegistry
All Implemented Interfaces:
NameService

public class JRMPRegistry
extends java.lang.Object
implements NameService

Class JRMPRegistry

Version:
1.0, 15/01/2003
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

Field Summary
static int port
          port number (1099 for default)
static java.rmi.registry.Registry registry
          registry
 
Constructor Summary
JRMPRegistry()
           
 
Method Summary
 int getPort()
          get port method, get the port for the name service
static boolean isLocal()
          isStarted Method, check if a name service is local
 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 all ready stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

public static int port
port number (1099 for default)


registry

public static java.rmi.registry.Registry registry
registry

Constructor Detail

JRMPRegistry

public JRMPRegistry()
Method Detail

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 all ready stop

Specified by:
stop in interface NameService
Throws:
NameServiceException - if a problem occure

isLocal

public static boolean isLocal()
isStarted Method, check if a name service is local

Returns:
boolean true if the name service is local

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

getPort

public int getPort()
Description copied from interface: NameService
get port method, get the port for the name service

Specified by:
getPort in interface NameService
Returns:
int port number