public class ORBSingleton extends ORB
giopDebugFlag, giopVersionDebugFlag, invocationTimingDebugFlag, monitoringManager, namingDebugFlag, omgWrapper, orbdDebugFlag, ORBInitDebug, poaConcurrencyDebugFlag, poaDebugFlag, poaFSMDebugFlag, serviceContextDebugFlag, shutdownDebugFlag, staticWrapper, subcontractDebugFlag, transientObjectManagerDebugFlag, transportDebugFlag, wrapper| Constructor and Description |
|---|
ORBSingleton() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alwaysSendCodeSetServiceContext() |
void |
checkShutdownState() |
void |
connect(Object servant)
Connects the given servant object (a Java object that is
an instance of the server implementation class)
to the ORB.
|
TypeCode |
create_abstract_interface_tc(String id,
String name)
Create a
TypeCode object for an IDL abstract interface. |
TypeCode |
create_alias_tc(String id,
String name,
TypeCode original_type)
Creates a
TypeCode object representing an IDL alias
(typedef). |
Any |
create_any()
Creates an IDL
Any object initialized to
contain a Typecode object whose kind field
is set to TCKind.tc_null. |
TypeCode |
create_array_tc(int length,
TypeCode element_type)
Creates a
TypeCode object representing an IDL array. |
ContextList |
create_context_list()
Creates an empty
ContextList object. |
TypeCode |
create_enum_tc(String id,
String name,
String[] members)
Creates a
TypeCode object representing an IDL enum. |
Environment |
create_environment()
Creates an
Environment object. |
ExceptionList |
create_exception_list()
Creates an empty
ExceptionList object. |
TypeCode |
create_exception_tc(String id,
String name,
StructMember[] members)
Creates a
TypeCode object representing an IDL exception. |
TypeCode |
create_fixed_tc(short digits,
short scale)
Create a
TypeCode object for an IDL fixed type. |
TypeCode |
create_interface_tc(String id,
String name)
Creates a
TypeCode object representing an IDL interface. |
NVList |
create_list(int count)
Allocates an
NVList with (probably) enough
space for the specified number of NamedValue objects. |
NamedValue |
create_named_value(String s,
Any any,
int flags)
Creates a
NamedValue object
using the given name, value, and argument mode flags. |
TypeCode |
create_native_tc(String id,
String name)
Create a
TypeCode object for an IDL native type. |
NVList |
create_operation_list(Object oper)
Creates an
NVList initialized with argument
descriptions for the operation described in the given
OperationDef object. |
OutputStream |
create_output_stream()
Creates a new
org.omg.CORBA.portable.OutputStream into which
IDL method parameters can be marshalled during method invocation. |
Policy |
create_policy(int type,
Any val)
Can be invoked to create new instances of policy objects
of a specific type with specified initial state.
|
TypeCode |
create_recursive_sequence_tc(int bound,
int offset)
Creates a
TypeCode object representing a
a recursive IDL sequence. |
TypeCode |
create_recursive_tc(String id)
Create a recursive
TypeCode object which
serves as a placeholder for a concrete TypeCode during the process of creating
TypeCodes which contain recursion. |
TypeCode |
create_sequence_tc(int bound,
TypeCode element_type)
Creates a
TypeCode object representing an IDL sequence. |
TypeCode |
create_string_tc(int bound)
Creates a
TypeCode object representing a bounded IDL
string. |
TypeCode |
create_struct_tc(String id,
String name,
StructMember[] members)
Creates a
TypeCode object representing an IDL struct. |
TypeCode |
create_union_tc(String id,
String name,
TypeCode discriminator_type,
UnionMember[] members)
Creates a
TypeCode object representing an IDL union. |
TypeCode |
create_value_box_tc(String id,
String name,
TypeCode boxed_type)
Creates a
TypeCode object for an IDL value box. |
TypeCode |
create_value_tc(String id,
String name,
short type_modifier,
TypeCode concrete_base,
ValueMember[] members)
Create a
TypeCode object for an IDL value type. |
TypeCode |
create_wstring_tc(int bound)
Creates a
TypeCode object representing a bounded IDL
wstring (wide string). |
ClientInvocationInfo |
createOrIncrementInvocationInfo() |
void |
destroy()
Destroys the ORB so that its resources can be reclaimed.
|
protected void |
destroyConnections() |
void |
disconnect(Object obj)
Disconnects the given servant object from the ORB.
|
void |
finishedDispatch() |
Current |
get_current()
Retrieves a
Current object. |
Context |
get_default_context()
Gets the default
Context object. |
Request |
get_next_response()
Gets the next
Request instance for which a response
has been received. |
TypeCode |
get_primitive_tc(TCKind tckind)
Retrieves the
TypeCode object that represents
the given primitive IDL type. |
URL |
getAppletCodeBase() |
String |
getAppletHost() |
ClientDelegateFactory |
getClientDelegateFactory() |
CodeSetComponentInfo |
getCodeSetComponentInfo() |
ConnectionCache |
getConnectionCache(ContactInfo contactInfo) |
CopierManager |
getCopierManager() |
CorbaContactInfoListFactory |
getCorbaContactInfoListFactory() |
CorbaTransportManager |
getCorbaTransportManager() |
IOR |
getFVDCodeBaseIOR() |
int |
getGIOPBuffMgrStrategy(GIOPVersion gv) |
int |
getGIOPFragmentSize() |
int |
getHighWaterMark() |
ClientInvocationInfo |
getInvocationInfo() |
LegacyServerSocketManager |
getLegacyServerSocketManager() |
LocalResolver |
getLocalResolver()
Get the LocalResolver used in this ORB.
|
int |
getLowWaterMark() |
int |
getNumberToReclaim() |
ObjectKeyFactory |
getObjectKeyFactory() |
ORBData |
getORBData() |
String |
getORBInitialHost()
Return the bootstrap naming host specified in the ORBInitialHost param.
|
int |
getORBInitialPort()
Return the bootstrap naming port specified in the ORBInitialPort param.
|
String |
getORBServerHost() |
int |
getORBServerPort() |
ORBVersion |
getORBVersion() |
PIHandler |
getPIHandler() |
RequestDispatcherRegistry |
getRequestDispatcherRegistry() |
Resolver |
getResolver()
Get the resolver used in this ORB.
|
Selector |
getSelector(int x) |
LegacyServerSocketEndPointInfo |
getServerEndpoint() |
ServiceContextRegistry |
getServiceContextRegistry()
Return the service context registry
|
TaggedComponentFactoryFinder |
getTaggedComponentFactoryFinder()
Factory finders for the various parts of the IOR: tagged components, tagged
profiles, and tagged profile templates.
|
IdentifiableFactoryFinder |
getTaggedProfileFactoryFinder() |
IdentifiableFactoryFinder |
getTaggedProfileTemplateFactoryFinder() |
ThreadPoolManager |
getThreadPoolManager() |
int |
getTransientServerId()
Get the transient server ID
|
TransportManager |
getTransportManager() |
TypeCodeImpl |
getTypeCodeForClass(Class c) |
Operation |
getURLOperation()
Get the operation used in string_to_object calls.
|
void |
handleBadServerId(ObjectKey okey)
Handle a bad server id for the given object key.
|
void |
initBadServerIdHandler() |
boolean |
isDuringDispatch() |
boolean |
isLocalHost(String host) |
boolean |
isLocalServerId(int subcontractId,
int serverId) |
String[] |
list_initial_services()
Returns a list of the initially available CORBA object references,
such as "NameService" and "InterfaceRepository".
|
ValueFactory |
lookup_value_factory(String repositoryID) |
void |
notifyORB() |
String |
object_to_string(Object obj)
Converts the given CORBA object reference to a string.
|
OAInvocationInfo |
peekInvocationInfo() |
void |
perform_work()
Performs an implementation-dependent unit of work if called
by the main thread.
|
boolean |
poll_next_response()
Finds out if any of the deferred (asynchronous) invocations have
a response yet.
|
OAInvocationInfo |
popInvocationInfo() |
void |
pushInvocationInfo(OAInvocationInfo info) |
void |
register_initial_reference(String id,
Object obj)
If this operation is called with an id,
"Y", and an
object, YY, then a subsequent call to
ORB.resolve_initial_references( "Y" ) will
return object YY. |
ValueFactory |
register_value_factory(String repositoryID,
ValueFactory factory) |
void |
registerInitialReference(String id,
Closure closure) |
void |
releaseOrDecrementInvocationInfo() |
Object |
resolve_initial_references(String identifier)
Resolves a specific object reference from the set of available
initial service names.
|
void |
run()
This operation blocks the current thread until the ORB has
completed the shutdown process, initiated when some thread calls
shutdown. |
void |
send_multiple_requests_deferred(Request[] req)
Sends multiple dynamic (DII) requests asynchronously.
|
void |
send_multiple_requests_oneway(Request[] req)
Sends multiple dynamic (DII) requests asynchronously without expecting
any responses.
|
protected void |
set_parameters(Applet app,
Properties props)
Allows the ORB implementation to be initialized with the given
applet and parameters.
|
void |
set_parameters(Properties props) |
protected void |
set_parameters(String[] params,
Properties props)
Allows the ORB implementation to be initialized with the given
parameters and properties.
|
void |
setBadServerIdHandler(BadServerIdHandler handler) |
void |
setClientDelegateFactory(ClientDelegateFactory factory) |
void |
setCorbaContactInfoListFactory(CorbaContactInfoListFactory factory) |
void |
setINSDelegate(CorbaServerRequestDispatcher sdel)
Set the ServerRequestDispatcher that should be used for handling INS requests.
|
void |
setLocalResolver(LocalResolver resolver)
Set the LocalResolver used in this ORB.
|
void |
setObjectKeyFactory(ObjectKeyFactory factory) |
void |
setORBVersion(ORBVersion verObj) |
void |
setPersistentServerId(int id) |
void |
setResolver(Resolver resolver)
Set the resolver used in this ORB.
|
void |
setThreadPoolManager(ThreadPoolManager mgr) |
void |
setTypeCodeForClass(Class c,
TypeCodeImpl tcimpl) |
void |
setURLOperation(Operation stringToObject)
Set the operation used in string_to_object calls.
|
void |
shutdown(boolean wait_for_completion)
Instructs the ORB to shut down, which causes all
object adapters to shut down, in preparation for destruction.
If the wait_for_completion parameter
is true, this operation blocks until all ORB processing (including
processing of currently executing requests, object deactivation,
and other object adapter operations) has completed. |
protected void |
shutdownServants(boolean wait_for_completion) |
void |
startingDispatch() |
Object |
string_to_object(String s)
Converts a string produced by the method
object_to_string
back to a CORBA object reference. |
Remote |
string_to_remote(String s) |
void |
unregister_value_factory(String repositoryID) |
boolean |
work_pending()
Returns
true if the ORB needs the main thread to
perform some work, and false if the ORB does not
need the main thread. |
get_primitive_tc, getByteBufferPool, getLogger, getLogWrapper, getMonitoringManager, getPresentationManager, getStubFactoryFactory, getTypeCode, setTypeCode, staticGetLogger, staticGetLogWrapperget_value_def, set_delegatecreate_basic_dyn_any, create_dyn_any, create_dyn_array, create_dyn_enum, create_dyn_sequence, create_dyn_struct, create_dyn_union, get_service_information, init, init, initpublic void set_parameters(Properties props)
set_parameters in class ORBprotected void set_parameters(Applet app, Properties props)
ORBinit method to pass in its parameters.set_parameters in class ORBapp - the applet; may be nullprops - applet-specific properties; may be nullprotected void set_parameters(String[] params, Properties props)
ORBinit method to pass in its parameters.set_parameters in class ORBparams - command-line arguments for the application's main
method; may be nullprops - application-specific properties; may be nullpublic OutputStream create_output_stream()
ORBorg.omg.CORBA.portable.OutputStream into which
IDL method parameters can be marshalled during method invocation.create_output_stream in class ORBorg.omg.CORBA.portable.OutputStream objectpublic TypeCode create_struct_tc(String id, String name, StructMember[] members)
ORBTypeCode object representing an IDL struct.
The TypeCode object is initialized with the given id,
name, and members.create_struct_tc in class ORBid - the repository id for the structname - the name of the structmembers - an array describing the members of the structTypeCode object describing
an IDL structpublic TypeCode create_union_tc(String id, String name, TypeCode discriminator_type, UnionMember[] members)
ORBTypeCode object representing an IDL union.
The TypeCode object is initialized with the given id,
name, discriminator type, and members.create_union_tc in class ORBid - the repository id of the unionname - the name of the uniondiscriminator_type - the type of the union discriminatormembers - an array describing the members of the unionTypeCode object describing
an IDL unionpublic TypeCode create_enum_tc(String id, String name, String[] members)
ORBTypeCode object representing an IDL enum.
The TypeCode object is initialized with the given id,
name, and members.create_enum_tc in class ORBid - the repository id for the enumname - the name for the enummembers - an array describing the members of the enumTypeCode object describing
an IDL enumpublic TypeCode create_alias_tc(String id, String name, TypeCode original_type)
ORBTypeCode object representing an IDL alias
(typedef).
The TypeCode object is initialized with the given id,
name, and original type.create_alias_tc in class ORBid - the repository id for the aliasname - the name for the aliasoriginal_type - the TypeCode object describing the original type
for which this is an aliasTypeCode object describing
an IDL aliaspublic TypeCode create_exception_tc(String id, String name, StructMember[] members)
ORBTypeCode object representing an IDL exception.
The TypeCode object is initialized with the given id,
name, and members.create_exception_tc in class ORBid - the repository id for the exceptionname - the name for the exceptionmembers - an array describing the members of the exceptionTypeCode object describing
an IDL exceptionpublic TypeCode create_interface_tc(String id, String name)
ORBTypeCode object representing an IDL interface.
The TypeCode object is initialized with the given id
and name.create_interface_tc in class ORBid - the repository id for the interfacename - the name for the interfaceTypeCode object describing
an IDL interfacepublic TypeCode create_string_tc(int bound)
ORBTypeCode object representing a bounded IDL
string.
The TypeCode object is initialized with the given bound,
which represents the maximum length of the string. Zero indicates
that the string described by this type code is unbounded.create_string_tc in class ORBbound - the bound for the string; cannot be negativeTypeCode object describing
a bounded IDL stringpublic TypeCode create_wstring_tc(int bound)
ORBTypeCode object representing a bounded IDL
wstring (wide string).
The TypeCode object is initialized with the given bound,
which represents the maximum length of the wide string. Zero indicates
that the string described by this type code is unbounded.create_wstring_tc in class ORBbound - the bound for the wstring; cannot be negativeTypeCode object describing
a bounded IDL wstringpublic TypeCode create_sequence_tc(int bound, TypeCode element_type)
ORBTypeCode object representing an IDL sequence.
The TypeCode object is initialized with the given bound and
element type.create_sequence_tc in class ORBbound - the bound for the sequence, 0 if unboundedelement_type - the TypeCode object describing the elements
contained in the sequenceTypeCode object describing
an IDL sequencepublic TypeCode create_recursive_sequence_tc(int bound, int offset)
ORBTypeCode object representing a
a recursive IDL sequence.
For the IDL struct Node in following code fragment,
the offset parameter for creating its sequence would be 1:
Struct Node {
long value;
Sequence <Node> subnodes;
};
create_recursive_sequence_tc in class ORBbound - the bound for the sequence, 0 if unboundedoffset - the index to the enclosing TypeCode object
that describes the elements of this sequenceTypeCode object describing
a recursive sequencecreate_recursive_tc,
create_sequence_tcpublic TypeCode create_array_tc(int length, TypeCode element_type)
ORBTypeCode object representing an IDL array.
The TypeCode object is initialized with the given length and
element type.create_array_tc in class ORBlength - the length of the arrayelement_type - a TypeCode object describing the type
of element contained in the arrayTypeCode object describing
an IDL arraypublic TypeCode create_native_tc(String id, String name)
ORBTypeCode object for an IDL native type.create_native_tc in class ORBid - the logical id for the native type.name - the name of the native type.public TypeCode create_abstract_interface_tc(String id, String name)
ORBTypeCode object for an IDL abstract interface.create_abstract_interface_tc in class ORBid - the logical id for the abstract interface type.name - the name of the abstract interface type.public TypeCode create_fixed_tc(short digits, short scale)
ORBTypeCode object for an IDL fixed type.create_fixed_tc in class ORBdigits - specifies the total number of decimal digits in the number
and must be from 1 to 31 inclusive.scale - specifies the position of the decimal point.public TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members)
ORBTypeCode object for an IDL value type.
The concrete_base parameter is the TypeCode for the immediate
concrete valuetype base of the valuetype for which the TypeCode
is being created.
It may be null if the valuetype does not have a concrete base.create_value_tc in class ORBid - the logical id for the value type.name - the name of the value type.type_modifier - one of the value type modifier constants:
VM_NONE, VM_CUSTOM, VM_ABSTRACT or VM_TRUNCATABLEconcrete_base - a TypeCode object
describing the concrete valuetype basemembers - an array containing the members of the value typepublic TypeCode create_recursive_tc(String id)
ORBTypeCode object which
serves as a placeholder for a concrete TypeCode during the process of creating
TypeCodes which contain recursion. The id parameter specifies the repository id of
the type for which the recursive TypeCode is serving as a placeholder. Once the
recursive TypeCode has been properly embedded in the enclosing TypeCode which
corresponds to the specified repository id, it will function as a normal TypeCode.
Invoking operations on the recursive TypeCode before it has been embedded in the
enclosing TypeCode will result in a BAD_TYPECODE exception.
For example, the following IDL type declaration contains recursion:
Struct Node {
Sequence<Node> subnodes;
};
To create a TypeCode for struct Node, you would invoke the TypeCode creation operations as shown below:
String nodeID = "IDL:Node:1.0";
TypeCode recursiveSeqTC = orb.create_sequence_tc(0, orb.create_recursive_tc(nodeID));
StructMember[] members = { new StructMember("subnodes", recursiveSeqTC, null) };
TypeCode structNodeTC = orb.create_struct_tc(nodeID, "Node", members);
Also note that the following is an illegal IDL type declaration:
Struct Node {
Node next;
};
Recursive types can only appear within sequences which can be empty. That way marshaling problems, when transmitting the struct in an Any, are avoided.
create_recursive_tc in class ORBid - the logical id of the referenced typepublic TypeCode create_value_box_tc(String id, String name, TypeCode boxed_type)
ORBTypeCode object for an IDL value box.create_value_box_tc in class ORBid - the logical id for the value typename - the name of the value typeboxed_type - the TypeCode for the typepublic TypeCode get_primitive_tc(TCKind tckind)
ORBTypeCode object that represents
the given primitive IDL type.get_primitive_tc in class ORBtckind - the TCKind instance corresponding to the
desired primitive typeTypeCode objectpublic Any create_any()
ORBAny object initialized to
contain a Typecode object whose kind field
is set to TCKind.tc_null.create_any in class ORBAny objectpublic NVList create_list(int count)
ORBNVList with (probably) enough
space for the specified number of NamedValue objects.
Note that the specified size is only a hint to help with
storage allocation and does not imply the maximum size of the list.create_list in class ORBcount - suggested number of NamedValue objects for
which to allocate spaceNVListNVListpublic NVList create_operation_list(Object oper)
ORBNVList initialized with argument
descriptions for the operation described in the given
OperationDef object. This OperationDef object
is obtained from an Interface Repository. The arguments in the
returned NVList object are in the same order as in the
original IDL operation definition, which makes it possible for the list
to be used in dynamic invocation requests.create_operation_list in class ORBoper - the OperationDef object to use to create the listNVList object containing
descriptions of the arguments to the method described in the given
OperationDef objectNVListpublic NamedValue create_named_value(String s, Any any, int flags)
ORBNamedValue object
using the given name, value, and argument mode flags.
A NamedValue object serves as (1) a parameter or return
value or (2) a context property.
It may be used by itself or
as an element in an NVList object.
create_named_value in class ORBs - the name of the NamedValue objectany - the Any value to be inserted into the
NamedValue objectflags - the argument mode flags for the NamedValue: one of
ARG_IN.value, ARG_OUT.value,
or ARG_INOUT.value.NamedValue objectNamedValuepublic ExceptionList create_exception_list()
ORBExceptionList object.create_exception_list in class ORBExceptionList objectpublic ContextList create_context_list()
ORBContextList object.create_context_list in class ORBContextList objectContextList,
Contextpublic Context get_default_context()
ORBContext object.get_default_context in class ORBContext objectContextpublic Environment create_environment()
ORBEnvironment object.create_environment in class ORBEnvironment objectEnvironmentpublic Current get_current()
ORBCurrent object.
The Current interface is used to manage thread-specific
information for use by services such as transactions and security.get_current in class ORBCurrent objectCORBA package
comments for unimplemented featurespublic String[] list_initial_services()
ORBlist_initial_services in class ORBString objects that represent
the object references for CORBA services
that are initially available with this ORBpublic Object resolve_initial_references(String identifier) throws InvalidName
ORBresolve_initial_references in class ORBidentifier - the name of the initial service as a stringInvalidName - if the given name is not associated with a
known servicepublic void register_initial_reference(String id, Object obj) throws InvalidName
ORB"Y", and an
object, YY, then a subsequent call to
ORB.resolve_initial_references( "Y" ) will
return object YY.register_initial_reference in class ORBid - The ID by which the initial reference will be known.obj - The initial reference itself.InvalidName - if this operation is called with an empty string id
or this operation is called with an id that is already registered,
including the default names defined by OMG.public void send_multiple_requests_oneway(Request[] req)
ORBsend_multiple_requests_oneway in class ORBreq - an array of request objectspublic void send_multiple_requests_deferred(Request[] req)
ORBsend_multiple_requests_deferred in class ORBreq - an array of Request objectspublic boolean poll_next_response()
ORBpoll_next_response in class ORBtrue if there is a response available;
false otherwisepublic Request get_next_response()
ORBRequest instance for which a response
has been received.get_next_response in class ORBRequest object ready with a responsepublic String object_to_string(Object obj)
ORB
The resulting String object may be stored or communicated
in any way that a String object can be manipulated.
object_to_string in class ORBobj - the object reference to stringifypublic Object string_to_object(String s)
ORBobject_to_string
back to a CORBA object reference.string_to_object in class ORBs - the string to be converted back to an object reference. It must
be the result of converting an object reference to a string using the
method object_to_string.public Remote string_to_remote(String s) throws RemoteException
RemoteExceptionpublic void connect(Object servant)
ORBImplBase class corresponding to the interface that is
supported by the server. The servant must thus be a CORBA object
reference, and inherit from org.omg.CORBA.Object.
Servants created by the user can start receiving remote invocations
after the method connect has been called. A servant may also be
automatically and implicitly connected to the ORB if it is passed as
an IDL parameter in an IDL method invocation on a non-local object,
that is, if the servant object has to be marshalled and sent outside of the
process address space.
Calling the method connect has no effect
when the servant object is already connected to the ORB.
Deprecated by the OMG in favor of the Portable Object Adapter APIs.
public void disconnect(Object obj)
ORBorg.omg.CORBA.OBJECT_NOT_EXIST back to the
remote client. Thus the object appears to be destroyed from the
point of view of remote clients. Note, however, that local requests issued
using the servant directly do not
pass through the ORB; hence, they will continue to be processed by the
servant.
Calling the method disconnect has no effect
if the servant is not connected to the ORB.
Deprecated by the OMG in favor of the Portable Object Adapter APIs.
disconnect in class ORBobj - The servant object to be disconnected from the ORBpublic void run()
ORBshutdown. It may be used by multiple threads which
get all notified when the ORB shuts down.public void shutdown(boolean wait_for_completion)
ORBwait_for_completion parameter
is true, this operation blocks until all ORB processing (including
processing of currently executing requests, object deactivation,
and other object adapter operations) has completed.
If an application does this in a thread that is currently servicing
an invocation, the BAD_INV_ORDER system exception
will be thrown with the OMG minor code 3,
since blocking would result in a deadlock.wait_for_completion parameter is FALSE,
then shutdown may not have completed upon return.
While the ORB is in the process of shutting down, the ORB operates as normal,
servicing incoming and outgoing requests until all requests have been completed.
Once an ORB has shutdown, only object reference management operations
may be invoked on the ORB or any object reference obtained from it.
An application may also invoke the destroy operation on the ORB itself.
Invoking any other operation will throw the BAD_INV_ORDER
system exception with the OMG minor code 4.
The ORB.run method will return after
shutdown has been called.
protected void shutdownServants(boolean wait_for_completion)
protected void destroyConnections()
public void destroy()
ORBOBJECT_NOT_EXIST exception.
Once an ORB has been destroyed, another call to init
with the same ORBid will return a reference to a newly constructed ORB.
If destroy is called on an ORB that has not been shut down,
it will start the shut down process and block until the ORB has shut down
before it destroys the ORB.
If an application calls destroy in a thread that is currently servicing
an invocation, the BAD_INV_ORDER system exception will be thrown
with the OMG minor code 3, since blocking would result in a deadlock.
For maximum portability and to avoid resource leaks, an application should
always call shutdown and destroy
on all ORB instances before exiting.
public boolean work_pending()
ORBtrue if the ORB needs the main thread to
perform some work, and false if the ORB does not
need the main thread.work_pending in class ORBtrue if there is work pending, meaning that the ORB
needs the main thread to perform some work; false
if there is no work pending and thus the ORB does not need the
main threadpublic void perform_work()
ORBwork_pending and perform_work
can be used in
conjunction to implement a simple polling loop that multiplexes
the main thread among the ORB and other activities.perform_work in class ORBpublic ValueFactory register_value_factory(String repositoryID, ValueFactory factory)
register_value_factory in class ORBpublic void unregister_value_factory(String repositoryID)
unregister_value_factory in class ORBpublic ValueFactory lookup_value_factory(String repositoryID)
lookup_value_factory in class ORBpublic TransportManager getTransportManager()
public CorbaTransportManager getCorbaTransportManager()
getCorbaTransportManager in class ORBpublic LegacyServerSocketManager getLegacyServerSocketManager()
getLegacyServerSocketManager in class ORBpublic RequestDispatcherRegistry getRequestDispatcherRegistry()
getRequestDispatcherRegistry in class ORBpublic ServiceContextRegistry getServiceContextRegistry()
getServiceContextRegistry in class ORBpublic int getTransientServerId()
getTransientServerId in class ORBpublic int getORBInitialPort()
public String getORBInitialHost()
public String getORBServerHost()
public int getORBServerPort()
public CodeSetComponentInfo getCodeSetComponentInfo()
public boolean isLocalHost(String host)
isLocalHost in class ORBpublic boolean isLocalServerId(int subcontractId,
int serverId)
isLocalServerId in class ORBpublic ORBVersion getORBVersion()
getORBVersion in class ORBpublic void setORBVersion(ORBVersion verObj)
setORBVersion in class ORBpublic String getAppletHost()
public URL getAppletCodeBase()
public int getHighWaterMark()
public int getLowWaterMark()
public int getNumberToReclaim()
public int getGIOPFragmentSize()
public int getGIOPBuffMgrStrategy(GIOPVersion gv)
public IOR getFVDCodeBaseIOR()
getFVDCodeBaseIOR in class ORBpublic Policy create_policy(int type, Any val) throws PolicyError
ORBcreate_policy in class ORBtype - the PolicyType of the policy object to
be createdval - the value that will be used to set the initial
state of the Policy object that is createdPolicyErrorpublic LegacyServerSocketEndPointInfo getServerEndpoint()
public void setPersistentServerId(int id)
public TypeCodeImpl getTypeCodeForClass(Class c)
public void setTypeCodeForClass(Class c, TypeCodeImpl tcimpl)
public boolean alwaysSendCodeSetServiceContext()
public boolean isDuringDispatch()
isDuringDispatch in class ORBpublic PIHandler getPIHandler()
getPIHandler in class ORBpublic void checkShutdownState()
checkShutdownState in class ORBpublic void startingDispatch()
startingDispatch in class ORBpublic void finishedDispatch()
finishedDispatch in class ORBpublic ORBData getORBData()
getORBData in class ORBpublic void setClientDelegateFactory(ClientDelegateFactory factory)
setClientDelegateFactory in class ORBpublic ClientDelegateFactory getClientDelegateFactory()
getClientDelegateFactory in class ORBpublic void setCorbaContactInfoListFactory(CorbaContactInfoListFactory factory)
setCorbaContactInfoListFactory in class ORBpublic CorbaContactInfoListFactory getCorbaContactInfoListFactory()
getCorbaContactInfoListFactory in class ORBpublic Operation getURLOperation()
ORBgetURLOperation in class ORBpublic void setINSDelegate(CorbaServerRequestDispatcher sdel)
ORBsetINSDelegate in class ORBpublic TaggedComponentFactoryFinder getTaggedComponentFactoryFinder()
ORBgetTaggedComponentFactoryFinder in class ORBpublic IdentifiableFactoryFinder getTaggedProfileFactoryFinder()
getTaggedProfileFactoryFinder in class ORBpublic IdentifiableFactoryFinder getTaggedProfileTemplateFactoryFinder()
getTaggedProfileTemplateFactoryFinder in class ORBpublic ObjectKeyFactory getObjectKeyFactory()
getObjectKeyFactory in class ORBpublic void setObjectKeyFactory(ObjectKeyFactory factory)
setObjectKeyFactory in class ORBpublic void handleBadServerId(ObjectKey okey)
ORBhandleBadServerId in class ORBpublic OAInvocationInfo peekInvocationInfo()
peekInvocationInfo in class ORBpublic void pushInvocationInfo(OAInvocationInfo info)
pushInvocationInfo in class ORBpublic OAInvocationInfo popInvocationInfo()
popInvocationInfo in class ORBpublic ClientInvocationInfo createOrIncrementInvocationInfo()
public void releaseOrDecrementInvocationInfo()
public ClientInvocationInfo getInvocationInfo()
public ConnectionCache getConnectionCache(ContactInfo contactInfo)
public void setResolver(Resolver resolver)
ORBsetResolver in class ORBpublic Resolver getResolver()
ORBgetResolver in class ORBpublic void setLocalResolver(LocalResolver resolver)
ORBsetLocalResolver in class ORBpublic LocalResolver getLocalResolver()
ORBgetLocalResolver in class ORBpublic void setURLOperation(Operation stringToObject)
ORBsetURLOperation in class ORBpublic void setBadServerIdHandler(BadServerIdHandler handler)
setBadServerIdHandler in class ORBpublic void initBadServerIdHandler()
initBadServerIdHandler in class ORBpublic Selector getSelector(int x)
public void setThreadPoolManager(ThreadPoolManager mgr)
setThreadPoolManager in class ORBpublic ThreadPoolManager getThreadPoolManager()
getThreadPoolManager in class ORBpublic CopierManager getCopierManager()
getCopierManager in class ORBCopyright © 2018 JBoss by Red Hat. All rights reserved.