org.objectweb.carol.jndi.ns
Class JacORBCosNaming

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

public class JacORBCosNaming
extends java.lang.Object
implements NameService

Allow to start the nameservice of JacORB within Carol

Author:
Florent Benoit

Constructor Summary
JacORBCosNaming()
          Default constructor
 
Method Summary
static org.omg.CORBA.ORB getOrb()
           
 int getPort()
          get port method, get the port for the name service
 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 a new NameService or do nothing if the name service is already started
 void stop()
          Stop a NameService or do nothing if the name service is already stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JacORBCosNaming

public JacORBCosNaming()
Default constructor

Method Detail

start

public void start()
           throws NameServiceException
Start a new NameService or do nothing if the name service is already started

Specified by:
start in interface NameService
Throws:
NameServiceException - if a problem occurs

stop

public void stop()
          throws NameServiceException
Stop a NameService or do nothing if the name service is already stopped

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

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:
p - port number

getPort

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

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

getOrb

public static org.omg.CORBA.ORB getOrb()
Returns:
the orb.