public final class ORB extends ORBSingleton implements POAListener, Configurable
bufferManager, configuration, localCodeSetComponentInfo, logger, nativeCodeSetChar, nativeCodeSetWchar, typeCodeCache, typeCodeCompactor
Constructor and Description |
---|
ORB() |
Modifier and Type | Method and Description |
---|---|
Object |
_getDelegate(ParsedIOR pior)
This method is used for references that have
arrived over the network and is called from CDRInputStream.
|
Object |
_getObject(IOR ior)
This method is used for references that have
arrived over the network and is called from CDRInputStream.
|
void |
addObjectKey(String key_name,
Object target)
addObjectKey is a proprietary method that allows the
internal objectKeyMap to be altered programmatically. |
void |
addObjectKey(String key_name,
String full_path)
addObjectKey is a proprietary method that allows the
internal objectKeyMap to be altered programmatically. |
void |
addRequest(Request req) |
void |
configure(Configuration config)
configure the ORB
|
void |
connect(Object obj) |
ContextList |
create_context_list() |
Environment |
create_environment() |
ExceptionList |
create_exception_list() |
NVList |
create_list(int count) |
NamedValue |
create_named_value(String name,
Any value,
int flags) |
NVList |
create_operation_list(Object obj) |
NVList |
create_operation_list(OperationDef oper)
Deprecated.
use
(org.omg.CORBA.Object) instead |
OutputStream |
create_output_stream() |
Policy |
create_policy(int type,
Any value)
This method creates a policy with the given type and the given
value.
|
void |
destroy() |
void |
disconnect(Object obj) |
Context |
get_default_context() |
Request |
get_next_response() |
boolean |
get_service_information(short service_type,
ServiceInformationHolder service_information) |
Object |
get_value_def(String repid)
always return a ValueDef or throw BAD_PARAM if not repid of a value
|
String[] |
getArgs() |
BasicAdapter |
getBasicAdapter()
used from the POA
|
BoxedValueHelper |
getBoxedValueHelper(String repId)
Returns a BoxedValueHelper for the type specified by repId, or
null if no such BoxedValueHelper can be found.
|
ClientConnectionManager |
getClientConnectionManager() |
int |
getGIOPMinorVersion() |
String |
getImplName() |
InterceptorManager |
getInterceptorManager()
Get the InterceptorManager, if present.
|
Current |
getPOACurrent()
getPOACurrent
|
Object |
getReference(POA poa,
byte[] object_key,
String rep_id,
boolean _transient)
called by POA to create an IOR
|
POA |
getRootPOA() |
SelectorManager |
getSelectorManager() |
byte[] |
getServerId() |
String |
getServerIdString() |
TimerQueue |
getTimerQueue() |
TransportManager |
getTransportManager() |
boolean |
hasClientRequestInterceptors()
Test, if the ORB has ClientRequestInterceptors
Called by Delegate. |
boolean |
hasPolicyFactoryForType(int type)
Tests if a policy factory is present for the given type.
|
boolean |
hasRequestInterceptors()
Test, if the ORB has client or server side interceptors.
|
boolean |
hasServerRequestInterceptors()
Test, if the ORB has ServerRequestInterceptors
Called by poa.RequestProcessor. |
String |
id()
Overrides id() in org.omg.CORBA_2_5.ORB
|
boolean |
isSSLRequiredInComponentList(TaggedComponentList components) |
String[] |
list_initial_services() |
ValueFactory |
lookup_value_factory(String id) |
byte[] |
mapObjectKey(byte[] originalKey)
Map an object key to another, as defined by the value
of a corresponding configuration property in the properties
file, e.g.
|
RPPoolManager |
newRPPoolManager(boolean isSingleThreaded) |
void |
notifyTransportListeners(GIOPConnection gc) |
String |
object_to_string(Object obj) |
void |
perform_work() |
void |
poaCreated(POA poa)
An operation from the POAListener interface.
|
void |
poaStateChanged(POA poa,
int new_state) |
boolean |
poll_next_response() |
void |
referenceCreated(Object o) |
void |
register_initial_reference(String id,
Object obj)
Register a reference, that will be returned on subsequent calls
to resove_initial_references(id).
|
ValueFactory |
register_value_factory(String id,
ValueFactory factory) |
void |
removeRequest(Request req) |
Object |
resolve_initial_references(String identifier)
resolve_initial_references
|
void |
run() |
void |
send_multiple_requests_deferred(Request[] req) |
void |
send_multiple_requests_oneway(Request[] req) |
void |
set_delegate(Object wrapper)
called by org.jacorb.poa.RequestProcessor
|
protected void |
set_parameters(Applet app,
Properties props)
Initialization method, called from within the super class
org.omg.CORBA.ORB
|
protected void |
set_parameters(String[] args,
Properties props) |
void |
shutdown(boolean wait_for_completion) |
Object |
string_to_object(String str) |
void |
turnOnBiDirGIOP() |
void |
unregister_value_factory(String id) |
boolean |
useBiDirGIOP() |
boolean |
work_pending() |
create_abstract_interface_tc, create_alias_tc, create_any, create_array_tc, create_enum_tc, create_enum_tc, create_exception_tc, create_exception_tc, create_fixed_tc, create_interface_tc, create_local_interface_tc, create_native_tc, create_recursive_sequence_tc, create_recursive_tc, create_sequence_tc, create_string_tc, create_struct_tc, create_struct_tc, create_union_tc, create_union_tc, create_value_box_tc, create_value_tc, create_wstring_tc, get_current, get_primitive_tc, getBufferManager, getConfiguration, getLocalCodeSetComponentInfo, getLogger, getTCSDefault, getTCSWDefault, getTypeCodeCache, getTypeCodeCompactor, legalNameChar, legalStartChar, set_parameters
create_basic_dyn_any, create_dyn_any, create_dyn_array, create_dyn_enum, create_dyn_sequence, create_dyn_struct, create_dyn_union, init, init, init
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
configure
in class ORBSingleton
ConfigurationException
public String id()
id
in class org.omg.CORBA_2_5.ORB
public boolean useBiDirGIOP()
public void turnOnBiDirGIOP()
public Object _getObject(IOR ior)
ior
- an org.omg.IOP.IOR
, the IOR.org.omg.CORBA.Object
the Object to use.public Object _getDelegate(ParsedIOR pior)
public ClientConnectionManager getClientConnectionManager()
public Policy create_policy(int type, Any value) throws PolicyError
create_policy
in class ORB
type
- The policies type.value
- The policies value.PolicyError
- There is no PolicyFactory for the
given type or the policy creation failed.PolicyFactory
public boolean hasPolicyFactoryForType(int type)
public ContextList create_context_list()
create_context_list
in class ORBSingleton
public Environment create_environment()
create_environment
in class ORBSingleton
public OutputStream create_output_stream()
create_output_stream
in class ORBSingleton
public boolean isSSLRequiredInComponentList(TaggedComponentList components)
public Context get_default_context()
get_default_context
in class ORBSingleton
public BasicAdapter getBasicAdapter()
public Current getPOACurrent()
public Object getReference(POA poa, byte[] object_key, String rep_id, boolean _transient)
poa
- the calling POAobject_key
- rep_id
- _transient
- is the new reference transient or persistentpublic POA getRootPOA() throws INITIALIZE
INITIALIZE
public String[] list_initial_services()
list_initial_services
in class ORBSingleton
public void poaCreated(POA poa)
poaCreated
in interface POAListener
public void poaStateChanged(POA poa, int new_state)
poaStateChanged
in interface POAListener
public void referenceCreated(Object o)
referenceCreated
in interface POAListener
public boolean get_service_information(short service_type, ServiceInformationHolder service_information)
get_service_information
in class ORB
public Object resolve_initial_references(String identifier) throws InvalidName
resolve_initial_references
in class ORBSingleton
InvalidName
public void register_initial_reference(String id, Object obj) throws InvalidName
Overrides register_initial_reference() in org.omg.CORBA_2_5.ORB
register_initial_reference
in class org.omg.CORBA_2_5.ORB
id
- The references human-readable id, e.g. "MyService".obj
- The objects reference.InvalidName
- A reference with id has already been registered.
work_pending();public void run()
run
in class ORBSingleton
public void send_multiple_requests_oneway(Request[] req)
send_multiple_requests_oneway
in class ORBSingleton
public void send_multiple_requests_deferred(Request[] req)
send_multiple_requests_deferred
in class ORBSingleton
public boolean poll_next_response()
poll_next_response
in class ORBSingleton
public Request get_next_response()
get_next_response
in class ORBSingleton
public void addRequest(Request req)
public void removeRequest(Request req)
protected void set_parameters(String[] args, Properties props)
set_parameters
in class ORBSingleton
protected void set_parameters(Applet app, Properties props)
set_parameters
in class ORBSingleton
public void shutdown(boolean wait_for_completion)
shutdown
in class ORBSingleton
public Object string_to_object(String str)
string_to_object
in class ORBSingleton
public Object get_value_def(String repid) throws BAD_PARAM
get_value_def
in class ORB
BAD_PARAM
public void set_delegate(Object wrapper)
set_delegate
in class ORB
public String object_to_string(Object obj)
object_to_string
in class ORBSingleton
public void perform_work()
perform_work
in class ORBSingleton
public boolean work_pending()
work_pending
in class ORBSingleton
public ValueFactory register_value_factory(String id, ValueFactory factory)
register_value_factory
in class ORB
public void unregister_value_factory(String id)
unregister_value_factory
in class ORB
public ValueFactory lookup_value_factory(String id)
lookup_value_factory
in class ORB
public BoxedValueHelper getBoxedValueHelper(String repId)
repId
- the repository id of the type for which a BoxedValueHelper
should be returned. It is assumed that repId is the repository id of a
boxed value type. Otherwise, the result will be null.public boolean hasClientRequestInterceptors()
public boolean hasServerRequestInterceptors()
public boolean hasRequestInterceptors()
public InterceptorManager getInterceptorManager()
public TransportManager getTransportManager()
public TimerQueue getTimerQueue()
public SelectorManager getSelectorManager()
public ExceptionList create_exception_list()
create_exception_list
in class ORBSingleton
public NVList create_list(int count)
create_list
in class ORBSingleton
public NamedValue create_named_value(String name, Any value, int flags)
create_named_value
in class ORBSingleton
public NVList create_operation_list(Object obj)
create_operation_list
in class ORBSingleton
@Deprecated public NVList create_operation_list(OperationDef oper)
(org.omg.CORBA.Object)
insteadcreate_operation_list
in class ORBSingleton
public void addObjectKey(String key_name, String full_path)
addObjectKey
is a proprietary method that allows the
internal objectKeyMap to be altered programmatically. The objectKeyMap
allows more readable corbaloc URLs by mapping the actual object key to
an arbitary string. See the jacorb.properties file for more information.key_name
- a String
value e.g. NameServicefull_path
- an String
value e.g. file:/home/rnc/NameSingleton.iorpublic void addObjectKey(String key_name, Object target)
addObjectKey
is a proprietary method that allows the
internal objectKeyMap to be altered programmatically. The objectKeyMap
allows more readable corbaloc URLs by mapping the actual object key to
an arbitary string. See the jacorb.properties file for more information.key_name
- a String
value e.g. NameServicetarget
- the object whose object key should be used.public byte[] mapObjectKey(byte[] originalKey)
originalKey
- a byte[]
value containing the original
key.byte[]
value containing the mapped key, if a
mapping is defined, originalKey otherwise.public void disconnect(Object obj)
disconnect
in class ORB
public String getServerIdString()
public byte[] getServerId()
public RPPoolManager newRPPoolManager(boolean isSingleThreaded)
public void notifyTransportListeners(GIOPConnection gc)
public String getImplName()
public String[] getArgs()
public int getGIOPMinorVersion()
Copyright © 2017 JacORB. All rights reserved.