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, staticGetLogWrapper
get_value_def, set_delegate
create_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, init
public void set_parameters(Properties props)
set_parameters
in class ORB
protected void set_parameters(Applet app, Properties props)
ORB
init
method to pass in its parameters.set_parameters
in class ORB
app
- the applet; may be null
props
- applet-specific properties; may be null
protected void set_parameters(String[] params, Properties props)
ORB
init
method to pass in its parameters.set_parameters
in class ORB
params
- command-line arguments for the application's main
method; may be null
props
- application-specific properties; may be null
public OutputStream create_output_stream()
ORB
org.omg.CORBA.portable.OutputStream
into which
IDL method parameters can be marshalled during method invocation.create_output_stream
in class ORB
org.omg.CORBA.portable.OutputStream
objectpublic TypeCode create_struct_tc(String id, String name, StructMember[] members)
ORB
TypeCode
object representing an IDL struct
.
The TypeCode
object is initialized with the given id,
name, and members.create_struct_tc
in class ORB
id
- the repository id for the struct
name
- the name of the struct
members
- an array describing the members of the struct
TypeCode
object describing
an IDL struct
public TypeCode create_union_tc(String id, String name, TypeCode discriminator_type, UnionMember[] members)
ORB
TypeCode
object representing an IDL union
.
The TypeCode
object is initialized with the given id,
name, discriminator type, and members.create_union_tc
in class ORB
id
- the repository id of the union
name
- the name of the union
discriminator_type
- the type of the union
discriminatormembers
- an array describing the members of the union
TypeCode
object describing
an IDL union
public TypeCode create_enum_tc(String id, String name, String[] members)
ORB
TypeCode
object representing an IDL enum
.
The TypeCode
object is initialized with the given id,
name, and members.create_enum_tc
in class ORB
id
- the repository id for the enum
name
- the name for the enum
members
- an array describing the members of the enum
TypeCode
object describing
an IDL enum
public TypeCode create_alias_tc(String id, String name, TypeCode original_type)
ORB
TypeCode
object representing an IDL alias
(typedef
).
The TypeCode
object is initialized with the given id,
name, and original type.create_alias_tc
in class ORB
id
- 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 alias
public TypeCode create_exception_tc(String id, String name, StructMember[] members)
ORB
TypeCode
object representing an IDL exception
.
The TypeCode
object is initialized with the given id,
name, and members.create_exception_tc
in class ORB
id
- the repository id for the exception
name
- the name for the exception
members
- an array describing the members of the exception
TypeCode
object describing
an IDL exception
public TypeCode create_interface_tc(String id, String name)
ORB
TypeCode
object representing an IDL interface
.
The TypeCode
object is initialized with the given id
and name.create_interface_tc
in class ORB
id
- the repository id for the interfacename
- the name for the interfaceTypeCode
object describing
an IDL interface
public TypeCode create_string_tc(int bound)
ORB
TypeCode
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 ORB
bound
- the bound for the string
; cannot be negativeTypeCode
object describing
a bounded IDL string
public TypeCode create_wstring_tc(int bound)
ORB
TypeCode
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 ORB
bound
- the bound for the wstring
; cannot be negativeTypeCode
object describing
a bounded IDL wstring
public TypeCode create_sequence_tc(int bound, TypeCode element_type)
ORB
TypeCode
object representing an IDL sequence
.
The TypeCode
object is initialized with the given bound and
element type.create_sequence_tc
in class ORB
bound
- the bound for the sequence
, 0 if unboundedelement_type
- the TypeCode
object describing the elements
contained in the sequence
TypeCode
object describing
an IDL sequence
public TypeCode create_recursive_sequence_tc(int bound, int offset)
ORB
TypeCode
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 ORB
bound
- 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_tc
public TypeCode create_array_tc(int length, TypeCode element_type)
ORB
TypeCode
object representing an IDL array
.
The TypeCode
object is initialized with the given length and
element type.create_array_tc
in class ORB
length
- the length of the array
element_type
- a TypeCode
object describing the type
of element contained in the array
TypeCode
object describing
an IDL array
public TypeCode create_native_tc(String id, String name)
ORB
TypeCode
object for an IDL native type.create_native_tc
in class ORB
id
- the logical id for the native type.name
- the name of the native type.public TypeCode create_abstract_interface_tc(String id, String name)
ORB
TypeCode
object for an IDL abstract interface.create_abstract_interface_tc
in class ORB
id
- 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)
ORB
TypeCode
object for an IDL fixed type.create_fixed_tc
in class ORB
digits
- 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)
ORB
TypeCode
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 ORB
id
- 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)
ORB
TypeCode
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 ORB
id
- the logical id of the referenced typepublic TypeCode create_value_box_tc(String id, String name, TypeCode boxed_type)
ORB
TypeCode
object for an IDL value box.create_value_box_tc
in class ORB
id
- 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)
ORB
TypeCode
object that represents
the given primitive IDL type.get_primitive_tc
in class ORB
tckind
- the TCKind
instance corresponding to the
desired primitive typeTypeCode
objectpublic Any create_any()
ORB
Any
object initialized to
contain a Typecode
object whose kind
field
is set to TCKind.tc_null
.create_any
in class ORB
Any
objectpublic NVList create_list(int count)
ORB
NVList
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 ORB
count
- suggested number of NamedValue
objects for
which to allocate spaceNVList
NVList
public NVList create_operation_list(Object oper)
ORB
NVList
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 ORB
oper
- the OperationDef
object to use to create the listNVList
object containing
descriptions of the arguments to the method described in the given
OperationDef
objectNVList
public NamedValue create_named_value(String s, Any any, int flags)
ORB
NamedValue
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 ORB
s
- 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
objectNamedValue
public ExceptionList create_exception_list()
ORB
ExceptionList
object.create_exception_list
in class ORB
ExceptionList
objectpublic ContextList create_context_list()
ORB
ContextList
object.create_context_list
in class ORB
ContextList
objectContextList
,
Context
public Context get_default_context()
ORB
Context
object.get_default_context
in class ORB
Context
objectContext
public Environment create_environment()
ORB
Environment
object.create_environment
in class ORB
Environment
objectEnvironment
public Current get_current()
ORB
Current
object.
The Current
interface is used to manage thread-specific
information for use by services such as transactions and security.get_current
in class ORB
Current
objectCORBA
package
comments for unimplemented featurespublic String[] list_initial_services()
ORB
list_initial_services
in class ORB
String
objects that represent
the object references for CORBA services
that are initially available with this ORBpublic Object resolve_initial_references(String identifier) throws InvalidName
ORB
resolve_initial_references
in class ORB
identifier
- 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 ORB
id
- 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)
ORB
send_multiple_requests_oneway
in class ORB
req
- an array of request objectspublic void send_multiple_requests_deferred(Request[] req)
ORB
send_multiple_requests_deferred
in class ORB
req
- an array of Request
objectspublic boolean poll_next_response()
ORB
poll_next_response
in class ORB
true
if there is a response available;
false
otherwisepublic Request get_next_response()
ORB
Request
instance for which a response
has been received.get_next_response
in class ORB
Request
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 ORB
obj
- the object reference to stringifypublic Object string_to_object(String s)
ORB
object_to_string
back to a CORBA object reference.string_to_object
in class ORB
s
- 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
RemoteException
public void connect(Object servant)
ORB
ImplBase
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)
ORB
org.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 ORB
obj
- The servant object to be disconnected from the ORBpublic void run()
ORB
shutdown
. It may be used by multiple threads which
get all notified when the ORB shuts down.public void shutdown(boolean wait_for_completion)
ORB
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.
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()
ORB
OBJECT_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()
ORB
true
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 ORB
true
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()
ORB
work_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 ORB
public ValueFactory register_value_factory(String repositoryID, ValueFactory factory)
register_value_factory
in class ORB
public void unregister_value_factory(String repositoryID)
unregister_value_factory
in class ORB
public ValueFactory lookup_value_factory(String repositoryID)
lookup_value_factory
in class ORB
public TransportManager getTransportManager()
public CorbaTransportManager getCorbaTransportManager()
getCorbaTransportManager
in class ORB
public LegacyServerSocketManager getLegacyServerSocketManager()
getLegacyServerSocketManager
in class ORB
public RequestDispatcherRegistry getRequestDispatcherRegistry()
getRequestDispatcherRegistry
in class ORB
public ServiceContextRegistry getServiceContextRegistry()
getServiceContextRegistry
in class ORB
public int getTransientServerId()
getTransientServerId
in class ORB
public int getORBInitialPort()
public String getORBInitialHost()
public String getORBServerHost()
public int getORBServerPort()
public CodeSetComponentInfo getCodeSetComponentInfo()
public boolean isLocalHost(String host)
isLocalHost
in class ORB
public boolean isLocalServerId(int subcontractId, int serverId)
isLocalServerId
in class ORB
public ORBVersion getORBVersion()
getORBVersion
in class ORB
public void setORBVersion(ORBVersion verObj)
setORBVersion
in class ORB
public 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 ORB
public Policy create_policy(int type, Any val) throws PolicyError
ORB
create_policy
in class ORB
type
- 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 createdPolicyError
public 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 ORB
public PIHandler getPIHandler()
getPIHandler
in class ORB
public void checkShutdownState()
checkShutdownState
in class ORB
public void startingDispatch()
startingDispatch
in class ORB
public void finishedDispatch()
finishedDispatch
in class ORB
public ORBData getORBData()
getORBData
in class ORB
public void setClientDelegateFactory(ClientDelegateFactory factory)
setClientDelegateFactory
in class ORB
public ClientDelegateFactory getClientDelegateFactory()
getClientDelegateFactory
in class ORB
public void setCorbaContactInfoListFactory(CorbaContactInfoListFactory factory)
setCorbaContactInfoListFactory
in class ORB
public CorbaContactInfoListFactory getCorbaContactInfoListFactory()
getCorbaContactInfoListFactory
in class ORB
public Operation getURLOperation()
ORB
getURLOperation
in class ORB
public void setINSDelegate(CorbaServerRequestDispatcher sdel)
ORB
setINSDelegate
in class ORB
public TaggedComponentFactoryFinder getTaggedComponentFactoryFinder()
ORB
getTaggedComponentFactoryFinder
in class ORB
public IdentifiableFactoryFinder getTaggedProfileFactoryFinder()
getTaggedProfileFactoryFinder
in class ORB
public IdentifiableFactoryFinder getTaggedProfileTemplateFactoryFinder()
getTaggedProfileTemplateFactoryFinder
in class ORB
public ObjectKeyFactory getObjectKeyFactory()
getObjectKeyFactory
in class ORB
public void setObjectKeyFactory(ObjectKeyFactory factory)
setObjectKeyFactory
in class ORB
public void handleBadServerId(ObjectKey okey)
ORB
handleBadServerId
in class ORB
public OAInvocationInfo peekInvocationInfo()
peekInvocationInfo
in class ORB
public void pushInvocationInfo(OAInvocationInfo info)
pushInvocationInfo
in class ORB
public OAInvocationInfo popInvocationInfo()
popInvocationInfo
in class ORB
public ClientInvocationInfo createOrIncrementInvocationInfo()
public void releaseOrDecrementInvocationInfo()
public ClientInvocationInfo getInvocationInfo()
public ConnectionCache getConnectionCache(ContactInfo contactInfo)
public void setResolver(Resolver resolver)
ORB
setResolver
in class ORB
public Resolver getResolver()
ORB
getResolver
in class ORB
public void setLocalResolver(LocalResolver resolver)
ORB
setLocalResolver
in class ORB
public LocalResolver getLocalResolver()
ORB
getLocalResolver
in class ORB
public void setURLOperation(Operation stringToObject)
ORB
setURLOperation
in class ORB
public void setBadServerIdHandler(BadServerIdHandler handler)
setBadServerIdHandler
in class ORB
public void initBadServerIdHandler()
initBadServerIdHandler
in class ORB
public Selector getSelector(int x)
public void setThreadPoolManager(ThreadPoolManager mgr)
setThreadPoolManager
in class ORB
public ThreadPoolManager getThreadPoolManager()
getThreadPoolManager
in class ORB
public CopierManager getCopierManager()
getCopierManager
in class ORB
Copyright © 2019 JBoss by Red Hat. All rights reserved.