public class CorbaNamingContext extends NamingContextExtPOA implements Serializable
This class implements an in-VM CORBA Naming Server that caches for JBoss to use. All contexts keep a cache of the local sub-contexts to avoid unnecessary remote calls when resolving a complex name.
Constructor and Description |
---|
CorbaNamingContext() |
Modifier and Type | Method and Description |
---|---|
void |
bind_context(NameComponent[] nc,
NamingContext obj) |
NamingContext |
bind_new_context(NameComponent[] nc) |
void |
bind(NameComponent[] nc,
Object obj) |
void |
destroy() |
static void |
init(ORB orb,
POA rootPoa)
This method needs to be called once to initialize the static fields orb and rootPoa.
|
void |
init(POA poa,
boolean doPurge,
boolean noPing)
This method needs to be called for each newly created or re-read naming context to set its POA.
|
void |
list(int how_many,
BindingListHolder bl,
BindingIteratorHolder bi) |
NamingContext |
new_context() |
void |
rebind_context(NameComponent[] nc,
NamingContext obj) |
void |
rebind(NameComponent[] nc,
Object obj) |
Object |
resolve_str(String n) |
Object |
resolve(NameComponent[] nc) |
NameComponent[] |
to_name(String sn) |
String |
to_string(NameComponent[] n) |
String |
to_url(String addr,
String sn) |
void |
unbind(NameComponent[] nc) |
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
public static void init(ORB orb, POA rootPoa)
This method needs to be called once to initialize the static fields orb and rootPoa.
orb
- a reference to the running ORB
instance.rootPoa
- a reference to the root POA
.public void init(POA poa, boolean doPurge, boolean noPing)
This method needs to be called for each newly created or re-read naming context to set its POA.
poa
- a reference to the Naming Service POA
.doPurge
- a boolean that indicates if dead objects should be purged from the context (true
) upon cleanup
or not (false
).noPing
- a boolean that indicates if the method resolve
should check if the resolved name or context is
alive before returning it. If false
, the name will be checked (default)public void bind(NameComponent[] nc, Object obj) throws NotFound, CannotProceed, InvalidName, AlreadyBound
bind
in interface NamingContextOperations
NotFound
CannotProceed
InvalidName
AlreadyBound
public void bind_context(NameComponent[] nc, NamingContext obj) throws NotFound, CannotProceed, InvalidName, AlreadyBound
bind_context
in interface NamingContextOperations
NotFound
CannotProceed
InvalidName
AlreadyBound
public NamingContext bind_new_context(NameComponent[] nc) throws NotFound, CannotProceed, InvalidName, AlreadyBound
bind_new_context
in interface NamingContextOperations
NotFound
CannotProceed
InvalidName
AlreadyBound
public void destroy() throws NotEmpty
destroy
in interface NamingContextOperations
NotEmpty
public void list(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
list
in interface NamingContextOperations
public NamingContext new_context()
new_context
in interface NamingContextOperations
public void rebind(NameComponent[] nc, Object obj) throws NotFound, CannotProceed, InvalidName
rebind
in interface NamingContextOperations
NotFound
CannotProceed
InvalidName
public void rebind_context(NameComponent[] nc, NamingContext obj) throws NotFound, CannotProceed, InvalidName
rebind_context
in interface NamingContextOperations
NotFound
CannotProceed
InvalidName
public Object resolve(NameComponent[] nc) throws NotFound, CannotProceed, InvalidName
resolve
in interface NamingContextOperations
NotFound
CannotProceed
InvalidName
public void unbind(NameComponent[] nc) throws NotFound, CannotProceed, InvalidName
unbind
in interface NamingContextOperations
NotFound
CannotProceed
InvalidName
public Object resolve_str(String n) throws NotFound, CannotProceed, InvalidName
resolve_str
in interface NamingContextExtOperations
NotFound
CannotProceed
InvalidName
public NameComponent[] to_name(String sn) throws InvalidName
to_name
in interface NamingContextExtOperations
InvalidName
public String to_string(NameComponent[] n) throws InvalidName
to_string
in interface NamingContextExtOperations
InvalidName
public String to_url(String addr, String sn) throws InvalidAddress, InvalidName
to_url
in interface NamingContextExtOperations
InvalidAddress
InvalidName
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.