|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.CORBA.portable.ObjectImpl
org.objectweb.david.apis.services.naming._NameServerImplBase
org.objectweb.david.libs.services.naming.Directory
Implementation of a
simple name server
.
Method Summary | |
org.omg.CORBA.Object |
get(java.lang.String name)
Returns the interface registered under the name 'name' in the name server. |
static void |
main(java.lang.String[] args)
Launches the name server. |
boolean |
put(java.lang.String name,
org.omg.CORBA.Object itf,
boolean replace)
Registers interface 'itf' under the name 'name' in the name server. |
void |
remove(java.lang.String name)
Removes the interface registered under the name 'name' from the name server. |
Methods inherited from class org.objectweb.david.apis.services.naming._NameServerImplBase |
_getMethodSwitchKey, _ids, _invoke, _setContinuation |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
Method Detail |
public static void main(java.lang.String[] args)
args
- Name Server options.public boolean put(java.lang.String name, org.omg.CORBA.Object itf, boolean replace)
put
in interface NameServerOperations
put
in class _NameServerImplBase
name
- the name of the interface;itf
- the interface to register.replace
- true means replace any existing interface registered under
the same name, if any.
public void remove(java.lang.String name)
remove
in interface NameServerOperations
remove
in class _NameServerImplBase
name
- the name of the interface;public org.omg.CORBA.Object get(java.lang.String name)
get
in interface NameServerOperations
get
in class _NameServerImplBase
name
- the name of the interface;
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |