org.objectweb.carol.jndi.ns

Class JacORBCosNaming

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 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

Constructor Details

JacORBCosNaming

public JacORBCosNaming()
Default constructor

Method Details

getOrb

public static ORB getOrb()

Returns:
the orb.


getPort

public int getPort()
get port method, get the port for the name service
Specified by:
getPort in interface NameService

Returns:
int port number


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


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