|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.corba.NameService
public class NameService
Starts the openejb transient cos naming service.
Constructor Summary | |
---|---|
protected |
NameService()
|
|
NameService(ServerInfo serverInfo,
ConfigAdapter config,
String host,
int port)
GBean constructor to create a NameService instance. |
Method Summary | |
---|---|
void |
doFail()
Fails the GBean. |
void |
doStart()
Start the NameService instance. |
void |
doStop()
Stop the name server. |
InetSocketAddress |
getAddress()
Get the InetSocketAddress for this NameService. |
String |
getHost()
Retrieve the host name for this NameService instance. |
boolean |
getLocal()
Get the "local" value for this server. |
int |
getPort()
Get the port information for this NameService instance. |
String |
getURI()
Return the NameService locator as a URI (generally using the corbaloc:: protocol); |
void |
setLocal(boolean l)
Get the "local" value for this server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NameService()
public NameService(ServerInfo serverInfo, ConfigAdapter config, String host, int port) throws Exception
serverInfo
- The dependent ServerInfo. This value is not used,
but is in the constructor to create an ordering
dependency.config
- The ORB ConfigAdapter used to create the real
NameService instance.host
- The advertised host name.port
- The listener port.
Exception
Method Detail |
---|
public String getHost()
public int getPort()
public boolean getLocal()
public void setLocal(boolean l)
l
- The new local setting.public InetSocketAddress getAddress()
public String getURI()
public void doStart() throws Exception
doStart
in interface GBeanLifecycle
Exception
public void doStop() throws Exception
doStop
in interface GBeanLifecycle
Exception
public void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |