|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.naming.remote.EmbeddableJNDIServer
public class EmbeddableJNDIServer
This class implements an embeddable JNDI server.
Usage:
EmbeddableJNDIServer jndi = new EmbeddableJNDIServer(); jndi.start(true); // use it... jndi.stop();
| Constructor Summary | |
|---|---|
EmbeddableJNDIServer()
Creates an instance of this class that will listen on the default (1099) port, on the "default" domain. |
|
EmbeddableJNDIServer(java.lang.String domain,
int port)
Creates an instance of this class that will listen on the given port and domain. |
|
EmbeddableJNDIServer(java.lang.String domain,
int port,
java.lang.String mcastAddress,
int mcastPort)
Creates an instance of this class that will listen on the given port and domain. |
|
| Method Summary | |
|---|---|
EventChannel |
getEventChannel()
Returns the event channel that this instance uses to broacast events and subscribe to notifications. |
RemoteContext |
getRemoteContext()
|
javax.naming.Context |
getRootContext()
|
void |
onAsyncEvent(RemoteEvent evt)
Receives multicast events. |
void |
run()
|
void |
start(boolean daemon)
Starts this instance. |
void |
stop()
Stops this instance (this internally closes the EventChannel
that this instance holds). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddableJNDIServer()
Consts.DEFAULT_MCAST_ADDR,
Consts.DEFAULT_MCAST_PORT
public EmbeddableJNDIServer(java.lang.String domain,
int port)
Consts.DEFAULT_MCAST_ADDR,
Consts.DEFAULT_MCAST_PORT
public EmbeddableJNDIServer(java.lang.String domain,
int port,
java.lang.String mcastAddress,
int mcastPort)
| Method Detail |
|---|
public EventChannel getEventChannel()
EventChannel.public void onAsyncEvent(RemoteEvent evt)
AsyncEventListener
onAsyncEvent in interface AsyncEventListenerevt - a RemoteEvent.public javax.naming.Context getRootContext()
Context.public RemoteContext getRemoteContext()
getRemoteContext in interface RemoteContextProviderRemoteContext, or null if
no such context exists.public void stop()
EventChannel
that this instance holds).
public void start(boolean daemon)
throws java.lang.Exception
daemon - if true, this instance will be started
as a daemon thread.
java.lang.Exceptionpublic final void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||