| java.lang.Object org.apache.geronimo.corba.NameService
NameService | public class NameService implements GBeanLifecycle(Code) | | Starts the openejb transient cos naming service.
2809
localhost
version: $Revision: 465108 $ $Date: 2006-10-17 17:23:40 -0700 (Tue, 17 Oct 2006) $ |
Constructor Summary | |
protected | NameService() | public | NameService(ServerInfo serverInfo, ConfigAdapter config, String host, int port) GBean constructor to create a NameService instance.
Parameters: serverInfo - The dependent ServerInfo. |
Method Summary | |
public void | doFail() | public void | doStart() Start the NameService instance. | public void | doStop() Stop the name server. | public InetSocketAddress | getAddress() Get the InetSocketAddress for this NameService. | public String | getHost() Retrieve the host name for this NameService instance. | public boolean | getLocal() Get the "local" value for this server. | public int | getPort() Get the port information for this NameService instance. | public String | getURI() | public void | setLocal(boolean l) Get the "local" value for this server. |
NameService | protected NameService()(Code) | | |
NameService | public NameService(ServerInfo serverInfo, ConfigAdapter config, String host, int port) throws Exception(Code) | | GBean constructor to create a NameService instance.
Parameters: serverInfo - The dependent ServerInfo. This value is not used,but is in the constructor to create an orderingdependency. Parameters: config - The ORB ConfigAdapter used to create the realNameService instance. Parameters: host - The advertised host name. Parameters: port - The listener port. exception: Exception - |
doFail | public void doFail()(Code) | | |
doStart | public void doStart() throws Exception(Code) | | Start the NameService instance. If the local
setting is true, will launch an appropriate
in-process name server instance.
exception: Exception - |
doStop | public void doStop() throws Exception(Code) | | Stop the name server. Only has an effect if doStart()
launched an NameServer instance.
exception: Exception - |
getAddress | public InetSocketAddress getAddress()(Code) | | Get the InetSocketAddress for this NameService.
An InetSocketAddress containing the host and portinformation. |
getHost | public String getHost()(Code) | | Retrieve the host name for this NameService instance.
The String host name. |
getLocal | public boolean getLocal()(Code) | | Get the "local" value for this server. If true, an
in-process NameService instance will be created when
the service is started. If false, this is an
indirect reference to a NameService (possibly located
elsewhere).
The current localServer value. The default istrue. |
getPort | public int getPort()(Code) | | Get the port information for this NameService instance.
The configured name service listener port. |
getURI | public String getURI()(Code) | | Return the NameService locator as a URI (generally
using the corbaloc:: protocol);
The URI in String format. |
setLocal | public void setLocal(boolean l)(Code) | | Get the "local" value for this server. If true, an
in-process NameService instance will be created when
the service is started. If false, this is an
indirect reference to a NameService (possibly located
elsewhere).
Parameters: l - The new local setting. |
|
|