public class ORBImpl extends ORB
ORB.DebugFlagResult, ORB.DummyServant| Modifier and Type | Field and Description |
|---|---|
protected LegacyServerSocketManager |
legacyServerSocketManager |
protected TransportManager |
transportManager |
cdrCacheDebugFlag, cdrDebugFlag, dynamicTypeDebugFlag, folbDebugFlag, giopDebugFlag, giopReadDebugFlag, giopSizeDebugFlag, interceptorDebugFlag, isLocalDebugFlag, mbeanDebugFlag, mbeanFineDebugFlag, mbeanRuntimeDebugFlag, mom, namingDebugFlag, omgWrapper, operationTraceDebugFlag, orbdDebugFlag, orbInitDebug, orbLifecycleDebugFlag, osgiDebugFlag, poaDebugFlag, poaFSMDebugFlag, serviceContextDebugFlag, shutdownDebugFlag, streamFormatVersionDebugFlag, subcontractDebugFlag, transientObjectManagerDebugFlag, transportDebugFlag, valueHandlerDebugFlag, wrapper| Constructor and Description |
|---|
ORBImpl()
Create a new ORB.
|
| Modifier and Type | Method and Description |
|---|---|
void |
check_set_parameters() |
void |
connect(Object servant) |
TypeCode |
create_abstract_interface_tc(String id,
String name) |
TypeCode |
create_alias_tc(String id,
String name,
TypeCode original_type)
Create a TypeCode for an alias.
|
Any |
create_any() |
TypeCode |
create_array_tc(int length,
TypeCode element_type) |
ContextList |
create_context_list()
Create a ContextList
|
TypeCode |
create_enum_tc(String id,
String name,
String[] members)
Create a TypeCode for an enum.
|
Environment |
create_environment()
Create an Environment
|
ExceptionList |
create_exception_list()
Create an ExceptionList
|
TypeCode |
create_exception_tc(String id,
String name,
StructMember[] members)
Create a TypeCode for an exception.
|
TypeCode |
create_fixed_tc(short digits,
short scale) |
TypeCode |
create_interface_tc(String id,
String name)
Create a TypeCode for an interface.
|
NVList |
create_list(int count)
Create an NVList
|
NamedValue |
create_named_value(String s,
Any any,
int flags)
Create a NamedValue
|
TypeCode |
create_native_tc(String id,
String name) |
NVList |
create_operation_list(Object oper)
Create an NVList corresponding to an OperationDef
|
OutputStream |
create_output_stream()
The following methods are standard public CORBA ORB APIs
|
Policy |
create_policy(int type,
Any val) |
TypeCode |
create_recursive_sequence_tc(int bound,
int offset) |
TypeCode |
create_recursive_tc(String id) |
TypeCode |
create_sequence_tc(int bound,
TypeCode element_type) |
TypeCode |
create_string_tc(int bound)
Create a TypeCode for a string.
|
TypeCode |
create_struct_tc(String id,
String name,
StructMember[] members)
Create a TypeCode for a structure.
|
TypeCode |
create_union_tc(String id,
String name,
TypeCode discriminator_type,
UnionMember[] members)
Create a TypeCode for a union.
|
TypeCode |
create_value_box_tc(String id,
String name,
TypeCode boxed_type) |
TypeCode |
create_value_tc(String id,
String name,
short type_modifier,
TypeCode concrete_base,
ValueMember[] members) |
TypeCode |
create_wstring_tc(int bound)
Create a TypeCode for a wide string.
|
ClientInvocationInfo |
createOrIncrementInvocationInfo() |
void |
createPIHandler() |
void |
destroy()
formal/99-10-07 p 159: "If destroy is called on an ORB that has
not been shut down, it will start the shutdown process and block until
the ORB has shut down before it destroys the ORB."
|
void |
disconnect(Object obj) |
ObjectKeyCacheEntry |
extractObjectKeyCacheEntry(byte[] objKey)
The singleton ORB does not need the cache, so just return null here.
|
void |
finishedDispatch() |
Current |
get_current()
Deprecated.
|
Context |
get_default_context()
Get the default Context object
|
Request |
get_next_response()
Get the next request that has gotten a response.
|
TypeCode |
get_primitive_tc(TCKind tcKind)
Get the TypeCode for a primitive type.
|
ClientDelegateFactory |
getClientDelegateFactory() |
CopierManager |
getCopierManager() |
ContactInfoListFactory |
getCorbaContactInfoListFactory() |
TransportManager |
getCorbaTransportManager() |
IOR |
getFVDCodeBaseIOR() |
ClientInvocationInfo |
getInvocationInfo() |
InvocationInterceptor |
getInvocationInterceptor()
Obtain the InvocationInterceptor for this ORB instance.
|
IOR |
getIOR(Object obj,
boolean connectIfNecessary)
Get the IOR for the CORBA object.
|
LegacyServerSocketManager |
getLegacyServerSocketManager() |
LocalResolver |
getLocalResolver()
Get the LocalResolver used in this ORB.
|
ObjectKeyFactory |
getObjectKeyFactory() |
ORBData |
getORBData() |
ORBVersion |
getORBVersion() |
PIHandler |
getPIHandler() |
RequestDispatcherRegistry |
getRequestDispatcherRegistry() |
Resolver |
getResolver()
Get the resolver used in this ORB.
|
ServiceContextFactoryRegistry |
getServiceContextFactoryRegistry() |
ServiceContextsCache |
getServiceContextsCache() |
TaggedComponentFactoryFinder |
getTaggedComponentFactoryFinder()
Factory finders for the various parts of the IOR: tagged components, tagged
profiles, and tagged profile templates.
|
IdentifiableFactoryFinder<TaggedProfile> |
getTaggedProfileFactoryFinder() |
IdentifiableFactoryFinder<TaggedProfileTemplate> |
getTaggedProfileTemplateFactoryFinder() |
ThreadPoolManager |
getThreadPoolManager() |
int |
getTransientServerId()
Return this ORB's transient server ID.
|
TransportManager |
getTransportManager() |
TypeCodeImpl |
getTypeCodeForClass(Class c) |
String |
getUniqueOrbId()
Returns a name for this ORB that is based on the ORB id (if any)
and guaranteed to be unique within the ClassLoader that loaded the
ORB class.
|
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 hostName) |
boolean |
isLocalServerId(int subcontractId,
int serverId) |
String[] |
list_initial_services()
The following methods deal with listing and resolving the initial
(bootstrap) object references such as "NameService".
|
ValueFactory |
lookup_value_factory(String repositoryID)
Finds and returns a value factory for the given repository ID.
|
void |
notifyORB()
Notify response to ORB for get_next_response
|
String |
object_to_string(Object obj)
Convert an object ref to a string.
|
boolean |
orbIsShutdown()
Return whether or not the ORB is shutdown.
|
OAInvocationInfo |
peekInvocationInfo() |
void |
perform_work()
This method does nothing.
|
boolean |
poll_next_response()
Find out if any of the deferred invocations have a response yet.
|
OAInvocationInfo |
popInvocationInfo() |
void |
pushInvocationInfo(OAInvocationInfo info) |
void |
register_initial_reference(String id,
Object obj) |
ValueFactory |
register_value_factory(String repositoryID,
ValueFactory factory)
Registers a value factory for a particular repository ID.
|
void |
releaseOrDecrementInvocationInfo() |
Object |
resolve_initial_references(String identifier) |
void |
run()
The following methods (introduced in POA / CORBA2.1) deal with
shutdown / single threading.
|
void |
send_multiple_requests_deferred(Request[] req)
Send multiple dynamic requests asynchronously.
|
void |
send_multiple_requests_oneway(Request[] req) |
void |
set_delegate(Object servant) |
protected void |
set_parameters(Applet app,
Properties props) |
void |
set_parameters(Properties props) |
protected void |
set_parameters(String[] params,
Properties props) |
void |
setBadServerIdHandler(BadServerIdHandler handler) |
void |
setClientDelegateFactory(ClientDelegateFactory factory) |
void |
setCorbaContactInfoListFactory(ContactInfoListFactory factory) |
void |
setINSDelegate(ServerRequestDispatcher sdel)
Set the ServerRequestDispatcher that should be used for handling INS requests.
|
void |
setInvocationInterceptor(InvocationInterceptor interceptor)
Set the InvocationInterceptor for this ORB instance.
|
void |
setLocalResolver(LocalResolver resolver)
Set the LocalResolver used in this ORB.
|
void |
setObjectKeyFactory(ObjectKeyFactory factory) |
void |
setORBVersion(ORBVersion verObj) |
void |
setParameters(String[] params,
Properties props) |
void |
setResolver(Resolver resolver)
Set the resolver used in this ORB.
|
void |
setThreadPoolManager(ThreadPoolManager mgr) |
void |
setTypeCodeForClass(Class c,
TypeCodeImpl tci) |
void |
setURLOperation(Operation stringToObject)
Set the operation used in string_to_object calls.
|
void |
shutdown(boolean wait_for_completion) |
protected void |
shutdownServants(boolean wait_for_completion) |
void |
startingDispatch() |
Object |
string_to_object(String str)
Convert a stringified object reference to the object it represents.
|
void |
unregister_value_factory(String repositoryID)
Unregisters a value factory for a particular repository ID.
|
boolean |
work_pending()
This method always returns false because the ORB never needs the
main thread to do work.
|
classCodeBaseHandler, classCodeBaseHandler, classNameResolver, classNameResolver, clearDebugFlag, clearDebugFlags, createORBManagedObjectManager, defaultClassNameResolver, get_primitive_tc, getByteBufferPool, getIOR, getLogger, getPresentationManager, getStubFactoryFactory, getTypeCode, getWireObjectKeyTemplate, initializePrimitiveTypeCodeConstants, makeCompositeClassNameResolver, mom, setDebugFlag, setDebugFlags, setRootParentObjectName, setTypeCodeget_value_defcreate_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, initprotected TransportManager transportManager
protected LegacyServerSocketManager legacyServerSocketManager
public ORBImpl()
public InvocationInterceptor getInvocationInterceptor()
ORBgetInvocationInterceptor in class ORBpublic void setInvocationInterceptor(InvocationInterceptor interceptor)
ORBsetInvocationInterceptor in class ORBinterceptor - The InvocationInterceptor to add.public ORBData getORBData()
getORBData in class ORBpublic PIHandler getPIHandler()
getPIHandler in class ORBpublic void createPIHandler()
createPIHandler in class ORBpublic ORBVersion getORBVersion()
getORBVersion in class ORBpublic void setORBVersion(ORBVersion verObj)
setORBVersion in class ORBpublic String getUniqueOrbId()
ORBgetUniqueOrbId in class ORBpublic void check_set_parameters()
public void set_parameters(Properties props)
set_parameters in class ORBprotected void set_parameters(Applet app, Properties props)
set_parameters in class ORBpublic void setParameters(String[] params, Properties props)
setParameters in class ORBprotected void set_parameters(String[] params, Properties props)
set_parameters in class ORBpublic OutputStream create_output_stream()
create_output_stream in class ORBpublic Current get_current()
get_current in class ORBpublic NVList create_list(int count)
create_list in class ORBcount - size of list to createNVListpublic NVList create_operation_list(Object oper)
create_operation_list in class ORBoper - operation def to use to create listNVListpublic NamedValue create_named_value(String s, Any any, int flags)
create_named_value in class ORBpublic ExceptionList create_exception_list()
create_exception_list in class ORBpublic ContextList create_context_list()
create_context_list in class ORBpublic Context get_default_context()
get_default_context in class ORBpublic Environment create_environment()
create_environment in class ORBpublic void send_multiple_requests_oneway(Request[] req)
send_multiple_requests_oneway in class ORBpublic void send_multiple_requests_deferred(Request[] req)
send_multiple_requests_deferred in class ORBreq - an array of request objects.public boolean poll_next_response()
poll_next_response in class ORBpublic Request get_next_response() throws WrongTransaction
get_next_response in class ORBWrongTransactionpublic void notifyORB()
public String object_to_string(Object obj)
object_to_string in class ORBobj - The object to stringify.public Object string_to_object(String str)
string_to_object in class ORBstr - The stringified object reference.public IOR getFVDCodeBaseIOR()
getFVDCodeBaseIOR in class ORBpublic TypeCode get_primitive_tc(TCKind tcKind)
get_primitive_tc in class ORBtcKind - the integer kind for the primitive typepublic TypeCode create_struct_tc(String id, String name, StructMember[] members)
create_struct_tc in class ORBid - the logical id for the typecode.name - the name for the typecode.members - an array describing the members of the TypeCode.public TypeCode create_union_tc(String id, String name, TypeCode discriminator_type, UnionMember[] members)
create_union_tc in class ORBid - the logical id for the typecode.name - the name for the typecode.discriminator_type - the type of the union discriminator.members - an array describing the members of the TypeCode.public TypeCode create_enum_tc(String id, String name, String[] members)
create_enum_tc in class ORBid - the logical id for the typecode.name - the name for the typecode.members - an array describing the members of the TypeCode.public TypeCode create_alias_tc(String id, String name, TypeCode original_type)
create_alias_tc in class ORBid - the logical id for the typecode.name - the name for the typecode.original_type - the type this is an alias for.public TypeCode create_exception_tc(String id, String name, StructMember[] members)
create_exception_tc in class ORBid - the logical id for the typecode.name - the name for the typecode.members - an array describing the members of the TypeCode.public TypeCode create_interface_tc(String id, String name)
create_interface_tc in class ORBid - the logical id for the typecode.name - the name for the typecode.public TypeCode create_string_tc(int bound)
create_string_tc in class ORBbound - the bound for the string.public TypeCode create_wstring_tc(int bound)
create_wstring_tc in class ORBbound - the bound for the string.public TypeCode create_sequence_tc(int bound, TypeCode element_type)
create_sequence_tc in class ORBpublic TypeCode create_recursive_sequence_tc(int bound, int offset)
create_recursive_sequence_tc in class ORBpublic TypeCode create_array_tc(int length, TypeCode element_type)
create_array_tc in class ORBpublic TypeCode create_native_tc(String id, String name)
create_native_tc in class ORBpublic TypeCode create_abstract_interface_tc(String id, String name)
create_abstract_interface_tc in class ORBpublic TypeCode create_fixed_tc(short digits, short scale)
create_fixed_tc in class ORBpublic TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members)
create_value_tc in class ORBpublic TypeCode create_recursive_tc(String id)
create_recursive_tc in class ORBpublic TypeCode create_value_box_tc(String id, String name, TypeCode boxed_type)
create_value_box_tc in class ORBpublic Any create_any()
create_any in class ORBpublic void setTypeCodeForClass(Class c, TypeCodeImpl tci)
public TypeCodeImpl getTypeCodeForClass(Class c)
public String[] list_initial_services()
list_initial_services in class ORBpublic Object resolve_initial_references(String identifier) throws InvalidName
resolve_initial_references in class ORBInvalidNamepublic void register_initial_reference(String id, Object obj) throws InvalidName
register_initial_reference in class ORBInvalidNamepublic void run()
protected void shutdownServants(boolean wait_for_completion)
public boolean isDuringDispatch()
isDuringDispatch in class ORBpublic void startingDispatch()
startingDispatch in class ORBpublic void finishedDispatch()
finishedDispatch in class ORBpublic void destroy()
public ValueFactory register_value_factory(String repositoryID, ValueFactory factory)
register_value_factory in class ORBrepositoryID - the repository ID.factory - the factory.BAD_PARAM - if the registration fails.public void unregister_value_factory(String repositoryID)
unregister_value_factory in class ORBrepositoryID - the repository ID.public ValueFactory lookup_value_factory(String repositoryID)
register_value_factory(java.lang.String, org.omg.CORBA.portable.ValueFactory) or is the default factory.lookup_value_factory in class ORBrepositoryID - the repository ID.BAD_PARAM - if unable to locate a factory.public OAInvocationInfo peekInvocationInfo()
peekInvocationInfo in class ORBpublic void pushInvocationInfo(OAInvocationInfo info)
pushInvocationInfo in class ORBpublic OAInvocationInfo popInvocationInfo()
popInvocationInfo in class ORBpublic void initBadServerIdHandler()
initBadServerIdHandler in class ORBpublic void setBadServerIdHandler(BadServerIdHandler handler)
setBadServerIdHandler in class ORBpublic void handleBadServerId(ObjectKey okey)
ORBhandleBadServerId in class ORBokey - The ObjectKey to check for a valid server id.public Policy create_policy(int type, Any val) throws PolicyError
create_policy in class ORBPolicyErrorpublic void disconnect(Object obj)
disconnect in class ORBpublic int getTransientServerId()
ORBgetTransientServerId in class ORBpublic RequestDispatcherRegistry getRequestDispatcherRegistry()
getRequestDispatcherRegistry in class ORBpublic ServiceContextFactoryRegistry getServiceContextFactoryRegistry()
getServiceContextFactoryRegistry in class ORBpublic ServiceContextsCache getServiceContextsCache()
getServiceContextsCache in class ORBpublic boolean isLocalHost(String hostName)
isLocalHost in class ORBpublic boolean isLocalServerId(int subcontractId,
int serverId)
isLocalServerId in class ORBpublic boolean work_pending()
work_pending in class ORBpublic void perform_work()
perform_work in class ORBpublic void set_delegate(Object servant)
set_delegate in class ORBpublic ClientInvocationInfo createOrIncrementInvocationInfo()
createOrIncrementInvocationInfo in class ORBpublic void releaseOrDecrementInvocationInfo()
releaseOrDecrementInvocationInfo in class ORBpublic ClientInvocationInfo getInvocationInfo()
getInvocationInfo in class ORBpublic void setClientDelegateFactory(ClientDelegateFactory factory)
setClientDelegateFactory in class ORBpublic ClientDelegateFactory getClientDelegateFactory()
getClientDelegateFactory in class ORBpublic void setCorbaContactInfoListFactory(ContactInfoListFactory factory)
setCorbaContactInfoListFactory in class ORBpublic ContactInfoListFactory getCorbaContactInfoListFactory()
getCorbaContactInfoListFactory in class ORBpublic 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 Operation getURLOperation()
ORBgetURLOperation in class ORBpublic void setINSDelegate(ServerRequestDispatcher sdel)
ORBsetINSDelegate in class ORBpublic TaggedComponentFactoryFinder getTaggedComponentFactoryFinder()
ORBgetTaggedComponentFactoryFinder in class ORBpublic IdentifiableFactoryFinder<TaggedProfile> getTaggedProfileFactoryFinder()
getTaggedProfileFactoryFinder in class ORBpublic IdentifiableFactoryFinder<TaggedProfileTemplate> getTaggedProfileTemplateFactoryFinder()
getTaggedProfileTemplateFactoryFinder in class ORBpublic ObjectKeyFactory getObjectKeyFactory()
getObjectKeyFactory in class ORBpublic void setObjectKeyFactory(ObjectKeyFactory factory)
setObjectKeyFactory in class ORBpublic TransportManager getTransportManager()
getTransportManager in class ORBpublic TransportManager getCorbaTransportManager()
getCorbaTransportManager in class ORBpublic LegacyServerSocketManager getLegacyServerSocketManager()
getLegacyServerSocketManager in class ORBpublic void setThreadPoolManager(ThreadPoolManager mgr)
setThreadPoolManager in class ORBpublic ThreadPoolManager getThreadPoolManager()
getThreadPoolManager in class ORBpublic CopierManager getCopierManager()
getCopierManager in class ORBpublic IOR getIOR(Object obj, boolean connectIfNecessary)
ORBpublic ObjectKeyCacheEntry extractObjectKeyCacheEntry(byte[] objKey)
ORBextractObjectKeyCacheEntry in class ORBpublic boolean orbIsShutdown()
ORBorbIsShutdown in class ORBCopyright © 2017–2019 Eclipse Foundation. All rights reserved.