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_parameterscreate_basic_dyn_any, create_dyn_any, create_dyn_array, create_dyn_enum, create_dyn_sequence, create_dyn_struct, create_dyn_union, init, init, initpublic void configure(Configuration config) throws ConfigurationException
configure in interface Configurableconfigure in class ORBSingletonConfigurationExceptionpublic String id()
id in class org.omg.CORBA_2_5.ORBpublic 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 ORBtype - The policies type.value - The policies value.PolicyError - There is no PolicyFactory for the
given type or the policy creation failed.PolicyFactorypublic boolean hasPolicyFactoryForType(int type)
public ContextList create_context_list()
create_context_list in class ORBSingletonpublic Environment create_environment()
create_environment in class ORBSingletonpublic OutputStream create_output_stream()
create_output_stream in class ORBSingletonpublic boolean isSSLRequiredInComponentList(TaggedComponentList components)
public Context get_default_context()
get_default_context in class ORBSingletonpublic 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
INITIALIZEpublic String[] list_initial_services()
list_initial_services in class ORBSingletonpublic void poaCreated(POA poa)
poaCreated in interface POAListenerpublic void poaStateChanged(POA poa, int new_state)
poaStateChanged in interface POAListenerpublic void referenceCreated(Object o)
referenceCreated in interface POAListenerpublic boolean get_service_information(short service_type,
ServiceInformationHolder service_information)
get_service_information in class ORBpublic Object resolve_initial_references(String identifier) throws InvalidName
resolve_initial_references in class ORBSingletonInvalidNamepublic 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.ORBid - 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 ORBSingletonpublic void send_multiple_requests_oneway(Request[] req)
send_multiple_requests_oneway in class ORBSingletonpublic void send_multiple_requests_deferred(Request[] req)
send_multiple_requests_deferred in class ORBSingletonpublic boolean poll_next_response()
poll_next_response in class ORBSingletonpublic Request get_next_response()
get_next_response in class ORBSingletonpublic void addRequest(Request req)
public void removeRequest(Request req)
protected void set_parameters(String[] args, Properties props)
set_parameters in class ORBSingletonprotected void set_parameters(Applet app, Properties props)
set_parameters in class ORBSingletonpublic void shutdown(boolean wait_for_completion)
shutdown in class ORBSingletonpublic Object string_to_object(String str)
string_to_object in class ORBSingletonpublic Object get_value_def(String repid) throws BAD_PARAM
get_value_def in class ORBBAD_PARAMpublic void set_delegate(Object wrapper)
set_delegate in class ORBpublic String object_to_string(Object obj)
object_to_string in class ORBSingletonpublic void perform_work()
perform_work in class ORBSingletonpublic boolean work_pending()
work_pending in class ORBSingletonpublic ValueFactory register_value_factory(String id, ValueFactory factory)
register_value_factory in class ORBpublic void unregister_value_factory(String id)
unregister_value_factory in class ORBpublic ValueFactory lookup_value_factory(String id)
lookup_value_factory in class ORBpublic 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 ORBSingletonpublic NVList create_list(int count)
create_list in class ORBSingletonpublic NamedValue create_named_value(String name, Any value, int flags)
create_named_value in class ORBSingletonpublic 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 ORBSingletonpublic 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 ORBpublic 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.