Class ORBSingleton
- java.lang.Object
-
- org.omg.CORBA.ORB
-
- org.omg.CORBA_2_3.ORB
-
- com.sun.corba.ee.org.omg.CORBA.ORB
-
- com.sun.corba.ee.spi.orb.ORB
-
- com.sun.corba.ee.impl.orb.ORBSingleton
-
- All Implemented Interfaces:
TypeCodeFactory
public class ORBSingleton extends ORB
The restricted singleton ORB implementation. For now, this class must implement just enough functionality to be used as a factory for immutable TypeCode instances. See ORBImpl.java for the real ORB implementation.- See Also:
ORBImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.corba.ee.spi.orb.ORB
ORB.DebugFlagResult, ORB.DummyServant
-
-
Field Summary
Fields Modifier and Type Field Description private static ORBfullORBprivate static PresentationManager.StubFactoryFactorystaticStubFactoryFactory-
Fields inherited from class com.sun.corba.ee.spi.orb.ORB
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 Summary
Constructors Constructor Description ORBSingleton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanalwaysSendCodeSetServiceContext()voidcheckShutdownState()voidconnect(Object servant)Connects the given servant object (a Java object that is an instance of the server implementation class) to the ORB.TypeCodecreate_abstract_interface_tc(java.lang.String id, java.lang.String name)Create aTypeCodeobject for an IDL abstract interface.TypeCodecreate_alias_tc(java.lang.String id, java.lang.String name, TypeCode original_type)Creates aTypeCodeobject representing an IDLalias(typedef).Anycreate_any()Creates an IDLAnyobject initialized to contain aTypecodeobject whosekindfield is set toTCKind.tc_null.TypeCodecreate_array_tc(int length, TypeCode element_type)Creates aTypeCodeobject representing an IDLarray.ContextListcreate_context_list()Creates an emptyContextListobject.TypeCodecreate_enum_tc(java.lang.String id, java.lang.String name, java.lang.String[] members)Creates aTypeCodeobject representing an IDLenum.Environmentcreate_environment()Creates anEnvironmentobject.ExceptionListcreate_exception_list()Creates an emptyExceptionListobject.TypeCodecreate_exception_tc(java.lang.String id, java.lang.String name, StructMember[] members)Creates aTypeCodeobject representing an IDLexception.TypeCodecreate_fixed_tc(short digits, short scale)Create aTypeCodeobject for an IDL fixed type.TypeCodecreate_interface_tc(java.lang.String id, java.lang.String name)Creates aTypeCodeobject representing an IDLinterface.NVListcreate_list(int count)Allocates anNVListwith (probably) enough space for the specified number ofNamedValueobjects.NamedValuecreate_named_value(java.lang.String s, Any any, int flags)Creates aNamedValueobject using the given name, value, and argument mode flags.TypeCodecreate_native_tc(java.lang.String id, java.lang.String name)Create aTypeCodeobject for an IDL native type.NVListcreate_operation_list(Object oper)Creates anNVListinitialized with argument descriptions for the operation described in the givenOperationDefobject.OutputStreamcreate_output_stream()Creates a neworg.omg.CORBA.portable.OutputStreaminto which IDL method parameters can be marshalled during method invocation.Policycreate_policy(int type, Any val)Can be invoked to create new instances of policy objects of a specific type with specified initial state.TypeCodecreate_recursive_sequence_tc(int bound, int offset)Creates aTypeCodeobject representing a a recursive IDLsequence.TypeCodecreate_recursive_tc(java.lang.String id)Create a recursiveTypeCodeobject which serves as a placeholder for a concrete TypeCode during the process of creating TypeCodes which contain recursion.TypeCodecreate_sequence_tc(int bound, TypeCode element_type)Creates aTypeCodeobject representing an IDLsequence.TypeCodecreate_string_tc(int bound)Creates aTypeCodeobject representing a bounded IDLstring.TypeCodecreate_struct_tc(java.lang.String id, java.lang.String name, StructMember[] members)Creates aTypeCodeobject representing an IDLstruct.TypeCodecreate_union_tc(java.lang.String id, java.lang.String name, TypeCode discriminator_type, UnionMember[] members)Creates aTypeCodeobject representing an IDLunion.TypeCodecreate_value_box_tc(java.lang.String id, java.lang.String name, TypeCode boxed_type)Creates aTypeCodeobject for an IDL value box.TypeCodecreate_value_tc(java.lang.String id, java.lang.String name, short type_modifier, TypeCode concrete_base, ValueMember[] members)Create aTypeCodeobject for an IDL value type.TypeCodecreate_wstring_tc(int bound)Creates aTypeCodeobject representing a bounded IDLwstring(wide string).ClientInvocationInfocreateOrIncrementInvocationInfo()voidcreatePIHandler()voiddestroy()Destroys the ORB so that its resources can be reclaimed.protected voiddestroyConnections()voiddisconnect(Object obj)Disconnects the given servant object from the ORB.voidfinishedDispatch()Currentget_current()Retrieves aCurrentobject.Contextget_default_context()Gets the defaultContextobject.Requestget_next_response()Gets the nextRequestinstance for which a response has been received.TypeCodeget_primitive_tc(TCKind tckind)Retrieves theTypeCodeobject that represents the given primitive IDL type.java.net.URLgetAppletCodeBase()java.lang.StringgetAppletHost()ClientDelegateFactorygetClientDelegateFactory()Returns the ClientDelegateFactory, which is used to create the ClientDelegate that represents an IORCodeSetComponentInfogetCodeSetComponentInfo()ConnectionCachegetConnectionCache(ContactInfo contactInfo)CopierManagergetCopierManager()ContactInfoListFactorygetCorbaContactInfoListFactory()Returns the CorbaContactInfoListFactory, which creates the contact info list that represents possible endpoints in an IOR.TransportManagergetCorbaTransportManager()private ORBgetFullORB()These are methods from com.sun.corba.ee.impl.se.core.ORBIORgetFVDCodeBaseIOR()Returns the IOR used for the Full Value DescriptionintgetGIOPBuffMgrStrategy(GIOPVersion gv)intgetGIOPFragmentSize()intgetHighWaterMark()ClientInvocationInfogetInvocationInfo()InvocationInterceptorgetInvocationInterceptor()Obtain the InvocationInterceptor for this ORB instance.LegacyServerSocketManagergetLegacyServerSocketManager()LocalResolvergetLocalResolver()Get the LocalResolver used in this ORB.intgetLowWaterMark()intgetNumberToReclaim()ObjectKeyFactorygetObjectKeyFactory()ORBDatagetORBData()The ORB configuration datajava.lang.StringgetORBInitialHost()Return the bootstrap naming host specified in the ORBInitialHost param.intgetORBInitialPort()Return the bootstrap naming port specified in the ORBInitialPort param.java.lang.StringgetORBServerHost()intgetORBServerPort()ORBVersiongetORBVersion()Returns the implementation version of the ORBPIHandlergetPIHandler()RequestDispatcherRegistrygetRequestDispatcherRegistry()The RequestDispatcher registry, which contains the request handling codeResolvergetResolver()Get the resolver used in this ORB.SelectorgetSelector(int x)LegacyServerSocketEndPointInfogetServerEndpoint()ServiceContextFactoryRegistrygetServiceContextFactoryRegistry()Returns the registry for all ServerContext factories of this server.ServiceContextsCachegetServiceContextsCache()Return the service context cache as nullTaggedComponentFactoryFindergetTaggedComponentFactoryFinder()Factory finders for the various parts of the IOR: tagged components, tagged profiles, and tagged profile templates.IdentifiableFactoryFindergetTaggedProfileFactoryFinder()Factory finders for the various parts of the IOR: tagged profilesIdentifiableFactoryFindergetTaggedProfileTemplateFactoryFinder()Factory finders for the various parts of the IOR: tagged profile templatesThreadPoolManagergetThreadPoolManager()intgetTransientServerId()Get the transient server IDTransportManagergetTransportManager()TypeCodeImplgetTypeCodeForClass(java.lang.Class c)OperationgetURLOperation()Get the operation used in string_to_object calls.voidhandleBadServerId(ObjectKey okey)Handle a bad server id for the given object key.voidinitBadServerIdHandler()booleanisDuringDispatch()booleanisLocalHost(java.lang.String host)booleanisLocalServerId(int subcontractId, int serverId)java.lang.String[]list_initial_services()Returns a list of the initially available CORBA object references, such as "NameService" and "InterfaceRepository".ValueFactorylookup_value_factory(java.lang.String repositoryID)voidnotifyORB()java.lang.Stringobject_to_string(Object obj)Converts the given CORBA object reference to a string.OAInvocationInfopeekInvocationInfo()voidperform_work()Performs an implementation-dependent unit of work if called by the main thread.booleanpoll_next_response()Finds out if any of the deferred (asynchronous) invocations have a response yet.OAInvocationInfopopInvocationInfo()voidpushInvocationInfo(OAInvocationInfo info)voidregister_initial_reference(java.lang.String id, Object obj)If this operation is called with an id,"Y", and an object,YY, then a subsequent call toORB.resolve_initial_references( "Y" )will return objectYY.ValueFactoryregister_value_factory(java.lang.String repositoryID, ValueFactory factory)Unimplemented methodvoidregisterInitialReference(java.lang.String id, org.glassfish.pfl.basic.func.NullaryFunction<Object> closure)voidreleaseOrDecrementInvocationInfo()Objectresolve_initial_references(java.lang.String identifier)Resolves a specific object reference from the set of available initial service names.voidrun()This operation blocks the current thread until the ORB has completed the shutdown process, initiated when some thread callsshutdown.voidsend_multiple_requests_deferred(Request[] req)Sends multiple dynamic (DII) requests asynchronously.voidsend_multiple_requests_oneway(Request[] req)Sends multiple dynamic (DII) requests asynchronously without expecting any responses.protected voidset_parameters(java.applet.Applet app, java.util.Properties props)Allows the ORB implementation to be initialized with the given applet and parameters.protected voidset_parameters(java.lang.String[] params, java.util.Properties props)Allows the ORB implementation to be initialized with the given parameters and properties.voidset_parameters(java.util.Properties props)voidsetBadServerIdHandler(BadServerIdHandler handler)voidsetClientDelegateFactory(ClientDelegateFactory factory)voidsetCorbaContactInfoListFactory(ContactInfoListFactory factory)voidsetINSDelegate(ServerRequestDispatcher sdel)Set the ServerRequestDispatcher that should be used for handling INS requests.voidsetInvocationInterceptor(InvocationInterceptor interceptor)Set the InvocationInterceptor for this ORB instance.voidsetLocalResolver(LocalResolver resolver)Set the LocalResolver used in this ORB.voidsetObjectKeyFactory(ObjectKeyFactory factory)voidsetORBVersion(ORBVersion verObj)voidsetParameters(java.lang.String[] params, java.util.Properties props)voidsetPersistentServerId(int id)voidsetResolver(Resolver resolver)Set the resolver used in this ORB.voidsetThreadPoolManager(ThreadPoolManager mgr)voidsetTypeCodeForClass(java.lang.Class c, TypeCodeImpl tcimpl)voidsetURLOperation(Operation stringToObject)Set the operation used in string_to_object calls.voidshutdown(boolean wait_for_completion)Instructs the ORB to shut down, which causes all object adapters to shut down, in preparation for destruction.
If thewait_for_completionparameter 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 voidshutdownServants(boolean wait_for_completion)voidstartingDispatch()Objectstring_to_object(java.lang.String s)Converts a string produced by the methodobject_to_stringback to a CORBA object reference.java.rmi.Remotestring_to_remote(java.lang.String s)voidunregister_value_factory(java.lang.String repositoryID)Unimplemented methodbooleanwork_pending()Returnstrueif the ORB needs the main thread to perform some work, andfalseif the ORB does not need the main thread.-
Methods inherited from class com.sun.corba.ee.spi.orb.ORB
classCodeBaseHandler, classCodeBaseHandler, classNameResolver, classNameResolver, clearDebugFlag, clearDebugFlags, createORBManagedObjectManager, defaultClassNameResolver, extractObjectKeyCacheEntry, get_primitive_tc, getByteBufferPool, getIOR, getIOR, getLogger, getPresentationManager, getStubFactoryFactory, getTypeCode, getUniqueOrbId, getWireObjectKeyTemplate, initializePrimitiveTypeCodeConstants, makeCompositeClassNameResolver, mom, orbIsShutdown, setDebugFlag, setDebugFlags, setRootParentObjectName, setTypeCode
-
Methods inherited from class org.omg.CORBA_2_3.ORB
get_value_def, set_delegate
-
Methods inherited from class org.omg.CORBA.ORB
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
-
-
-
-
Field Detail
-
fullORB
private static ORB fullORB
-
staticStubFactoryFactory
private static PresentationManager.StubFactoryFactory staticStubFactoryFactory
-
-
Method Detail
-
setParameters
public void setParameters(java.lang.String[] params, java.util.Properties props)- Specified by:
setParametersin classORB
-
set_parameters
public void set_parameters(java.util.Properties props)
- Specified by:
set_parametersin classORB
-
set_parameters
protected void set_parameters(java.applet.Applet app, java.util.Properties props)Description copied from class:ORBAllows the ORB implementation to be initialized with the given applet and parameters. This method, used in applets only, is implemented by subclass ORB implementations and called by the appropriateinitmethod to pass in its parameters.- Specified by:
set_parametersin classORB- Parameters:
app- the applet; may benullprops- applet-specific properties; may benull
-
set_parameters
protected void set_parameters(java.lang.String[] params, java.util.Properties props)Description copied from class:ORBAllows the ORB implementation to be initialized with the given parameters and properties. This method, used in applications only, is implemented by subclass ORB implementations and called by the appropriateinitmethod to pass in its parameters.- Specified by:
set_parametersin classORB- Parameters:
params- command-line arguments for the application'smainmethod; may benullprops- application-specific properties; may benull
-
create_output_stream
public OutputStream create_output_stream()
Description copied from class:ORBCreates a neworg.omg.CORBA.portable.OutputStreaminto which IDL method parameters can be marshalled during method invocation.- Specified by:
create_output_streamin classORB- Returns:
- the newly-created
org.omg.CORBA.portable.OutputStreamobject
-
create_struct_tc
public TypeCode create_struct_tc(java.lang.String id, java.lang.String name, StructMember[] members)
Description copied from class:ORBCreates aTypeCodeobject representing an IDLstruct. TheTypeCodeobject is initialized with the given id, name, and members.- Specified by:
create_struct_tcin classORB- Parameters:
id- the repository id for thestructname- the name of thestructmembers- an array describing the members of thestruct- Returns:
- a newly-created
TypeCodeobject describing an IDLstruct
-
create_union_tc
public TypeCode create_union_tc(java.lang.String id, java.lang.String name, TypeCode discriminator_type, UnionMember[] members)
Description copied from class:ORBCreates aTypeCodeobject representing an IDLunion. TheTypeCodeobject is initialized with the given id, name, discriminator type, and members.- Specified by:
create_union_tcin classORB- Parameters:
id- the repository id of theunionname- the name of theuniondiscriminator_type- the type of theuniondiscriminatormembers- an array describing the members of theunion- Returns:
- a newly-created
TypeCodeobject describing an IDLunion
-
create_enum_tc
public TypeCode create_enum_tc(java.lang.String id, java.lang.String name, java.lang.String[] members)
Description copied from class:ORBCreates aTypeCodeobject representing an IDLenum. TheTypeCodeobject is initialized with the given id, name, and members.- Specified by:
create_enum_tcin classORB- Parameters:
id- the repository id for theenumname- the name for theenummembers- an array describing the members of theenum- Returns:
- a newly-created
TypeCodeobject describing an IDLenum
-
create_alias_tc
public TypeCode create_alias_tc(java.lang.String id, java.lang.String name, TypeCode original_type)
Description copied from class:ORBCreates aTypeCodeobject representing an IDLalias(typedef). TheTypeCodeobject is initialized with the given id, name, and original type.- Specified by:
create_alias_tcin classORB- Parameters:
id- the repository id for the aliasname- the name for the aliasoriginal_type- theTypeCodeobject describing the original type for which this is an alias- Returns:
- a newly-created
TypeCodeobject describing an IDLalias
-
create_exception_tc
public TypeCode create_exception_tc(java.lang.String id, java.lang.String name, StructMember[] members)
Description copied from class:ORBCreates aTypeCodeobject representing an IDLexception. TheTypeCodeobject is initialized with the given id, name, and members.- Specified by:
create_exception_tcin classORB- Parameters:
id- the repository id for theexceptionname- the name for theexceptionmembers- an array describing the members of theexception- Returns:
- a newly-created
TypeCodeobject describing an IDLexception
-
create_interface_tc
public TypeCode create_interface_tc(java.lang.String id, java.lang.String name)
Description copied from class:ORBCreates aTypeCodeobject representing an IDLinterface. TheTypeCodeobject is initialized with the given id and name.- Specified by:
create_interface_tcin classORB- Parameters:
id- the repository id for the interfacename- the name for the interface- Returns:
- a newly-created
TypeCodeobject describing an IDLinterface
-
create_string_tc
public TypeCode create_string_tc(int bound)
Description copied from class:ORBCreates aTypeCodeobject representing a bounded IDLstring. TheTypeCodeobject 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.- Specified by:
create_string_tcin classORB- Parameters:
bound- the bound for thestring; cannot be negative- Returns:
- a newly-created
TypeCodeobject describing a bounded IDLstring
-
create_wstring_tc
public TypeCode create_wstring_tc(int bound)
Description copied from class:ORBCreates aTypeCodeobject representing a bounded IDLwstring(wide string). TheTypeCodeobject 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.- Specified by:
create_wstring_tcin classORB- Parameters:
bound- the bound for thewstring; cannot be negative- Returns:
- a newly-created
TypeCodeobject describing a bounded IDLwstring
-
create_sequence_tc
public TypeCode create_sequence_tc(int bound, TypeCode element_type)
Description copied from class:ORBCreates aTypeCodeobject representing an IDLsequence. TheTypeCodeobject is initialized with the given bound and element type.- Specified by:
create_sequence_tcin classORB- Parameters:
bound- the bound for thesequence, 0 if unboundedelement_type- theTypeCodeobject describing the elements contained in thesequence- Returns:
- a newly-created
TypeCodeobject describing an IDLsequence
-
create_recursive_sequence_tc
public TypeCode create_recursive_sequence_tc(int bound, int offset)
Description copied from class:ORBCreates aTypeCodeobject representing a a recursive IDLsequence.For the IDL
structNode in following code fragment, the offset parameter for creating its sequence would be 1:Struct Node { long value; Sequence <Node> subnodes; };- Specified by:
create_recursive_sequence_tcin classORB- Parameters:
bound- the bound for the sequence, 0 if unboundedoffset- the index to the enclosingTypeCodeobject that describes the elements of this sequence- Returns:
- a newly-created
TypeCodeobject describing a recursive sequence - See Also:
create_recursive_tc,create_sequence_tc
-
create_array_tc
public TypeCode create_array_tc(int length, TypeCode element_type)
Description copied from class:ORBCreates aTypeCodeobject representing an IDLarray. TheTypeCodeobject is initialized with the given length and element type.- Specified by:
create_array_tcin classORB- Parameters:
length- the length of thearrayelement_type- aTypeCodeobject describing the type of element contained in thearray- Returns:
- a newly-created
TypeCodeobject describing an IDLarray
-
create_native_tc
public TypeCode create_native_tc(java.lang.String id, java.lang.String name)
Description copied from class:ORBCreate aTypeCodeobject for an IDL native type.- Overrides:
create_native_tcin classORB- Parameters:
id- the logical id for the native type.name- the name of the native type.- Returns:
- the requested TypeCode.
-
create_abstract_interface_tc
public TypeCode create_abstract_interface_tc(java.lang.String id, java.lang.String name)
Description copied from class:ORBCreate aTypeCodeobject for an IDL abstract interface.- Overrides:
create_abstract_interface_tcin classORB- Parameters:
id- the logical id for the abstract interface type.name- the name of the abstract interface type.- Returns:
- the requested TypeCode.
-
create_fixed_tc
public TypeCode create_fixed_tc(short digits, short scale)
Description copied from class:ORBCreate aTypeCodeobject for an IDL fixed type.- Overrides:
create_fixed_tcin classORB- Parameters:
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.- Returns:
- the requested TypeCode.
-
create_value_tc
public TypeCode create_value_tc(java.lang.String id, java.lang.String name, short type_modifier, TypeCode concrete_base, ValueMember[] members)
Description copied from class:ORBCreate aTypeCodeobject 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.- Overrides:
create_value_tcin classORB- Parameters:
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- aTypeCodeobject describing the concrete valuetype basemembers- an array containing the members of the value type- Returns:
- the requested TypeCode
-
create_recursive_tc
public TypeCode create_recursive_tc(java.lang.String id)
Description copied from class:ORBCreate a recursiveTypeCodeobject 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 aBAD_TYPECODEexception.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.
- Overrides:
create_recursive_tcin classORB- Parameters:
id- the logical id of the referenced type- Returns:
- the requested TypeCode
-
create_value_box_tc
public TypeCode create_value_box_tc(java.lang.String id, java.lang.String name, TypeCode boxed_type)
Description copied from class:ORBCreates aTypeCodeobject for an IDL value box.- Overrides:
create_value_box_tcin classORB- Parameters:
id- the logical id for the value typename- the name of the value typeboxed_type- the TypeCode for the type- Returns:
- the requested TypeCode
-
get_primitive_tc
public TypeCode get_primitive_tc(TCKind tckind)
Description copied from class:ORBRetrieves theTypeCodeobject that represents the given primitive IDL type.- Specified by:
get_primitive_tcin classORB- Parameters:
tckind- theTCKindinstance corresponding to the desired primitive type- Returns:
- the requested
TypeCodeobject
-
create_any
public Any create_any()
Description copied from class:ORBCreates an IDLAnyobject initialized to contain aTypecodeobject whosekindfield is set toTCKind.tc_null.- Specified by:
create_anyin classORB- Returns:
- a newly-created
Anyobject
-
create_list
public NVList create_list(int count)
Description copied from class:ORBAllocates anNVListwith (probably) enough space for the specified number ofNamedValueobjects. Note that the specified size is only a hint to help with storage allocation and does not imply the maximum size of the list.- Specified by:
create_listin classORB- Parameters:
count- suggested number ofNamedValueobjects for which to allocate space- Returns:
- the newly-created
NVList - See Also:
NVList
-
create_operation_list
public NVList create_operation_list(Object oper)
Description copied from class:ORBCreates anNVListinitialized with argument descriptions for the operation described in the givenOperationDefobject. ThisOperationDefobject is obtained from an Interface Repository. The arguments in the returnedNVListobject 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.- Overrides:
create_operation_listin classORB- Parameters:
oper- theOperationDefobject to use to create the list- Returns:
- a newly-created
NVListobject containing descriptions of the arguments to the method described in the givenOperationDefobject - See Also:
NVList
-
create_named_value
public NamedValue create_named_value(java.lang.String s, Any any, int flags)
Description copied from class:ORBCreates aNamedValueobject using the given name, value, and argument mode flags.A
NamedValueobject serves as (1) a parameter or return value or (2) a context property. It may be used by itself or as an element in anNVListobject.- Specified by:
create_named_valuein classORB- Parameters:
s- the name of theNamedValueobjectany- theAnyvalue to be inserted into theNamedValueobjectflags- the argument mode flags for theNamedValue: one ofARG_IN.value,ARG_OUT.value, orARG_INOUT.value.- Returns:
- the newly-created
NamedValueobject - See Also:
NamedValue
-
create_exception_list
public ExceptionList create_exception_list()
Description copied from class:ORBCreates an emptyExceptionListobject.- Specified by:
create_exception_listin classORB- Returns:
- the newly-created
ExceptionListobject
-
create_context_list
public ContextList create_context_list()
Description copied from class:ORBCreates an emptyContextListobject.- Specified by:
create_context_listin classORB- Returns:
- the newly-created
ContextListobject - See Also:
ContextList,Context
-
get_default_context
public Context get_default_context()
Description copied from class:ORBGets the defaultContextobject.- Specified by:
get_default_contextin classORB- Returns:
- the default
Contextobject - See Also:
Context
-
create_environment
public Environment create_environment()
Description copied from class:ORBCreates anEnvironmentobject.- Specified by:
create_environmentin classORB- Returns:
- the newly-created
Environmentobject - See Also:
Environment
-
get_current
public Current get_current()
Description copied from class:ORBRetrieves aCurrentobject. TheCurrentinterface is used to manage thread-specific information for use by services such as transactions and security.- Overrides:
get_currentin classORB- Returns:
- a newly-created
Currentobject - See Also:
CORBApackage comments for unimplemented features
-
list_initial_services
public java.lang.String[] list_initial_services()
Description copied from class:ORBReturns a list of the initially available CORBA object references, such as "NameService" and "InterfaceRepository".- Specified by:
list_initial_servicesin classORB- Returns:
- an array of
Stringobjects that represent the object references for CORBA services that are initially available with this ORB
-
resolve_initial_references
public Object resolve_initial_references(java.lang.String identifier) throws InvalidName
Description copied from class:ORBResolves a specific object reference from the set of available initial service names.- Specified by:
resolve_initial_referencesin classORB- Parameters:
identifier- the name of the initial service as a string- Returns:
- the object reference associated with the given name
- Throws:
InvalidName- if the given name is not associated with a known service
-
register_initial_reference
public void register_initial_reference(java.lang.String id, Object obj) throws InvalidNameDescription copied from class:ORBIf this operation is called with an id,"Y", and an object,YY, then a subsequent call toORB.resolve_initial_references( "Y" )will return objectYY.- Overrides:
register_initial_referencein classORB- Parameters:
id- The ID by which the initial reference will be known.obj- The initial reference itself.- Throws:
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.
-
send_multiple_requests_oneway
public void send_multiple_requests_oneway(Request[] req)
Description copied from class:ORBSends multiple dynamic (DII) requests asynchronously without expecting any responses. Note that oneway invocations are not guaranteed to reach the server.- Specified by:
send_multiple_requests_onewayin classORB- Parameters:
req- an array of request objects
-
send_multiple_requests_deferred
public void send_multiple_requests_deferred(Request[] req)
Description copied from class:ORBSends multiple dynamic (DII) requests asynchronously.- Specified by:
send_multiple_requests_deferredin classORB- Parameters:
req- an array ofRequestobjects
-
poll_next_response
public boolean poll_next_response()
Description copied from class:ORBFinds out if any of the deferred (asynchronous) invocations have a response yet.- Specified by:
poll_next_responsein classORB- Returns:
trueif there is a response available;falseotherwise
-
get_next_response
public Request get_next_response()
Description copied from class:ORBGets the nextRequestinstance for which a response has been received.- Specified by:
get_next_responsein classORB- Returns:
- the next
Requestobject ready with a response
-
object_to_string
public java.lang.String object_to_string(Object obj)
Description copied from class:ORBConverts the given CORBA object reference to a string. Note that the format of this string is predefined by IIOP, allowing strings generated by a different ORB to be converted back into an object reference.The resulting
Stringobject may be stored or communicated in any way that aStringobject can be manipulated.- Specified by:
object_to_stringin classORB- Parameters:
obj- the object reference to stringify- Returns:
- the string representing the object reference
-
string_to_object
public Object string_to_object(java.lang.String s)
Description copied from class:ORBConverts a string produced by the methodobject_to_stringback to a CORBA object reference.- Specified by:
string_to_objectin classORB- Parameters:
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 methodobject_to_string.- Returns:
- the object reference
-
string_to_remote
public java.rmi.Remote string_to_remote(java.lang.String s) throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException
-
connect
public void connect(Object servant)
Description copied from class:ORBConnects the given servant object (a Java object that is an instance of the server implementation class) to the ORB. The servant class must extend theImplBaseclass corresponding to the interface that is supported by the server. The servant must thus be a CORBA object reference, and inherit fromorg.omg.CORBA.Object. Servants created by the user can start receiving remote invocations after the methodconnecthas 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
connecthas no effect when the servant object is already connected to the ORB.Deprecated by the OMG in favor of the Portable Object Adapter APIs.
-
disconnect
public void disconnect(Object obj)
Description copied from class:ORBDisconnects the given servant object from the ORB. After this method returns, the ORB will reject incoming remote requests for the disconnected servant and will send the exceptionorg.omg.CORBA.OBJECT_NOT_EXISTback 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
disconnecthas no effect if the servant is not connected to the ORB.Deprecated by the OMG in favor of the Portable Object Adapter APIs.
- Overrides:
disconnectin classORB- Parameters:
obj- The servant object to be disconnected from the ORB
-
run
public void run()
Description copied from class:ORBThis operation blocks the current thread until the ORB has completed the shutdown process, initiated when some thread callsshutdown. It may be used by multiple threads which get all notified when the ORB shuts down.
-
shutdown
public void shutdown(boolean wait_for_completion)
Description copied from class:ORBInstructs the ORB to shut down, which causes all object adapters to shut down, in preparation for destruction.
If thewait_for_completionparameter 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, theBAD_INV_ORDERsystem exception will be thrown with the OMG minor code 3, since blocking would result in a deadlock.
If thewait_for_completionparameter isFALSE, 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
destroyoperation on the ORB itself. Invoking any other operation will throw theBAD_INV_ORDERsystem exception with the OMG minor code 4.The
ORB.runmethod will return aftershutdownhas been called.
-
shutdownServants
protected void shutdownServants(boolean wait_for_completion)
-
destroyConnections
protected void destroyConnections()
-
destroy
public void destroy()
Description copied from class:ORBDestroys the ORB so that its resources can be reclaimed. Any operation invoked on a destroyed ORB reference will throw theOBJECT_NOT_EXISTexception. Once an ORB has been destroyed, another call toinitwith the same ORBid will return a reference to a newly constructed ORB.If
destroyis 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 callsdestroyin a thread that is currently servicing an invocation, theBAD_INV_ORDERsystem 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
shutdownanddestroyon all ORB instances before exiting.
-
work_pending
public boolean work_pending()
Description copied from class:ORBReturnstrueif the ORB needs the main thread to perform some work, andfalseif the ORB does not need the main thread.- Overrides:
work_pendingin classORB- Returns:
trueif there is work pending, meaning that the ORB needs the main thread to perform some work;falseif there is no work pending and thus the ORB does not need the main thread
-
perform_work
public void perform_work()
Description copied from class:ORBPerforms an implementation-dependent unit of work if called by the main thread. Otherwise it does nothing. The methodswork_pendingandperform_workcan be used in conjunction to implement a simple polling loop that multiplexes the main thread among the ORB and other activities.- Overrides:
perform_workin classORB
-
register_value_factory
public ValueFactory register_value_factory(java.lang.String repositoryID, ValueFactory factory)
Description copied from class:ORBUnimplemented method- Overrides:
register_value_factoryin classORB- Parameters:
repositoryID- the repository ID.factory- the factory.- Returns:
- the previously registered factory for the given repository ID, or null if no such factory was previously registered.
- See Also:
CORBA_2_3package comments for unimplemented features
-
unregister_value_factory
public void unregister_value_factory(java.lang.String repositoryID)
Description copied from class:ORBUnimplemented method- Overrides:
unregister_value_factoryin classORB- Parameters:
repositoryID- the repository id- See Also:
CORBA_2_3package comments for unimplemented features
-
lookup_value_factory
public ValueFactory lookup_value_factory(java.lang.String repositoryID)
- Overrides:
lookup_value_factoryin classORB- Parameters:
repositoryID- the repository id to lookup- Returns:
- the value factory.
- See Also:
CORBA_2_3package comments for unimplemented features
-
getTransportManager
public TransportManager getTransportManager()
- Specified by:
getTransportManagerin classORB
-
getCorbaTransportManager
public TransportManager getCorbaTransportManager()
- Specified by:
getCorbaTransportManagerin classORB
-
getLegacyServerSocketManager
public LegacyServerSocketManager getLegacyServerSocketManager()
- Specified by:
getLegacyServerSocketManagerin classORB
-
getFullORB
private ORB getFullORB()
These are methods from com.sun.corba.ee.impl.se.core.ORB
-
getInvocationInterceptor
public InvocationInterceptor getInvocationInterceptor()
Description copied from class:ORBObtain the InvocationInterceptor for this ORB instance. By default this does nothing.- Specified by:
getInvocationInterceptorin classORB- Returns:
- The InvocationInterceptor.
-
setInvocationInterceptor
public void setInvocationInterceptor(InvocationInterceptor interceptor)
Description copied from class:ORBSet the InvocationInterceptor for this ORB instance. This will be used around all dynamic RMI-IIOP calls that are mediated by this ORB instance.- Specified by:
setInvocationInterceptorin classORB- Parameters:
interceptor- The InvocationInterceptor to add.
-
getRequestDispatcherRegistry
public RequestDispatcherRegistry getRequestDispatcherRegistry()
Description copied from class:ORBThe RequestDispatcher registry, which contains the request handling code- Specified by:
getRequestDispatcherRegistryin classORB- Returns:
- The RequestDispatcher registry
-
getServiceContextFactoryRegistry
public ServiceContextFactoryRegistry getServiceContextFactoryRegistry()
Description copied from class:ORBReturns the registry for all ServerContext factories of this server.- Specified by:
getServiceContextFactoryRegistryin classORB- Returns:
- the registry.
-
getServiceContextsCache
public ServiceContextsCache getServiceContextsCache()
Return the service context cache as null- Specified by:
getServiceContextsCachein classORB- Returns:
null
-
getTransientServerId
public int getTransientServerId()
Get the transient server ID- Specified by:
getTransientServerIdin classORB- Returns:
- throws
SecurityException
-
getORBInitialPort
public int getORBInitialPort()
Return the bootstrap naming port specified in the ORBInitialPort param.- Returns:
- throws
SecurityException
-
getORBInitialHost
public java.lang.String getORBInitialHost()
Return the bootstrap naming host specified in the ORBInitialHost param.- Returns:
- throws
SecurityException
-
getORBServerHost
public java.lang.String getORBServerHost()
-
getORBServerPort
public int getORBServerPort()
-
getCodeSetComponentInfo
public CodeSetComponentInfo getCodeSetComponentInfo()
-
isLocalHost
public boolean isLocalHost(java.lang.String host)
- Specified by:
isLocalHostin classORB
-
isLocalServerId
public boolean isLocalServerId(int subcontractId, int serverId)- Specified by:
isLocalServerIdin classORB
-
getORBVersion
public ORBVersion getORBVersion()
Description copied from class:ORBReturns the implementation version of the ORB- Specified by:
getORBVersionin classORB- Returns:
- the ORB version.
-
setORBVersion
public void setORBVersion(ORBVersion verObj)
- Specified by:
setORBVersionin classORB
-
getAppletHost
public java.lang.String getAppletHost()
-
getAppletCodeBase
public java.net.URL getAppletCodeBase()
-
getHighWaterMark
public int getHighWaterMark()
-
getLowWaterMark
public int getLowWaterMark()
-
getNumberToReclaim
public int getNumberToReclaim()
-
getGIOPFragmentSize
public int getGIOPFragmentSize()
-
getGIOPBuffMgrStrategy
public int getGIOPBuffMgrStrategy(GIOPVersion gv)
-
getFVDCodeBaseIOR
public IOR getFVDCodeBaseIOR()
Description copied from class:ORBReturns the IOR used for the Full Value Description- Specified by:
getFVDCodeBaseIORin classORB- Returns:
- The IOR used for the Full Value Description
-
create_policy
public Policy create_policy(int type, Any val) throws PolicyError
Description copied from class:ORBCan be invoked to create new instances of policy objects of a specific type with specified initial state. If create_policy fails to instantiate a new Policy object due to its inability to interpret the requested type and content of the policy, it raises the PolicyError exception with the appropriate reason.- Overrides:
create_policyin classORB- Parameters:
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 created- Returns:
- Reference to a newly created Policy object of type specified by the type parameter and initialized to a state specified by the val parameter
- Throws:
PolicyError- when the requested policy is not supported or a requested initial state for the policy is not supported.
-
getServerEndpoint
public LegacyServerSocketEndPointInfo getServerEndpoint()
-
setPersistentServerId
public void setPersistentServerId(int id)
-
getTypeCodeForClass
public TypeCodeImpl getTypeCodeForClass(java.lang.Class c)
-
setTypeCodeForClass
public void setTypeCodeForClass(java.lang.Class c, TypeCodeImpl tcimpl)
-
alwaysSendCodeSetServiceContext
public boolean alwaysSendCodeSetServiceContext()
-
isDuringDispatch
public boolean isDuringDispatch()
- Specified by:
isDuringDispatchin classORB
-
getPIHandler
public PIHandler getPIHandler()
- Specified by:
getPIHandlerin classORB
-
createPIHandler
public void createPIHandler()
- Specified by:
createPIHandlerin classORB
-
checkShutdownState
public void checkShutdownState()
-
startingDispatch
public void startingDispatch()
- Specified by:
startingDispatchin classORB
-
finishedDispatch
public void finishedDispatch()
- Specified by:
finishedDispatchin classORB
-
registerInitialReference
public void registerInitialReference(java.lang.String id, org.glassfish.pfl.basic.func.NullaryFunction<Object> closure)
-
getORBData
public ORBData getORBData()
Description copied from class:ORBThe ORB configuration data- Specified by:
getORBDatain classORB- Returns:
- Config data
-
setClientDelegateFactory
public void setClientDelegateFactory(ClientDelegateFactory factory)
- Specified by:
setClientDelegateFactoryin classORB
-
getClientDelegateFactory
public ClientDelegateFactory getClientDelegateFactory()
Description copied from class:ORBReturns the ClientDelegateFactory, which is used to create the ClientDelegate that represents an IOR- Specified by:
getClientDelegateFactoryin classORB- Returns:
- The ClientDelegateFactory
-
setCorbaContactInfoListFactory
public void setCorbaContactInfoListFactory(ContactInfoListFactory factory)
- Specified by:
setCorbaContactInfoListFactoryin classORB
-
getCorbaContactInfoListFactory
public ContactInfoListFactory getCorbaContactInfoListFactory()
Description copied from class:ORBReturns the CorbaContactInfoListFactory, which creates the contact info list that represents possible endpoints in an IOR.- Specified by:
getCorbaContactInfoListFactoryin classORB- Returns:
- CorbaContactInfoListFactory used
-
getURLOperation
public Operation getURLOperation()
Description copied from class:ORBGet the operation used in string_to_object calls. The Operation must expect a String and return an org.omg.CORBA.Object.- Specified by:
getURLOperationin classORB- Returns:
- operation used
-
setINSDelegate
public void setINSDelegate(ServerRequestDispatcher sdel)
Description copied from class:ORBSet the ServerRequestDispatcher that should be used for handling INS requests.- Specified by:
setINSDelegatein classORB- Parameters:
sdel- dispatcher to be used
-
getTaggedComponentFactoryFinder
public TaggedComponentFactoryFinder getTaggedComponentFactoryFinder()
Description copied from class:ORBFactory finders for the various parts of the IOR: tagged components, tagged profiles, and tagged profile templates.- Specified by:
getTaggedComponentFactoryFinderin classORB- Returns:
- Finder of Factories for TaggedComponents of IORs
-
getTaggedProfileFactoryFinder
public IdentifiableFactoryFinder getTaggedProfileFactoryFinder()
Description copied from class:ORBFactory finders for the various parts of the IOR: tagged profiles- Specified by:
getTaggedProfileFactoryFinderin classORB- Returns:
- Finder of Factories for TaggedProfiles of IORs
-
getTaggedProfileTemplateFactoryFinder
public IdentifiableFactoryFinder getTaggedProfileTemplateFactoryFinder()
Description copied from class:ORBFactory finders for the various parts of the IOR: tagged profile templates- Specified by:
getTaggedProfileTemplateFactoryFinderin classORB- Returns:
- Finder of Factories for TaggedProfileTemplates of IORs
-
getObjectKeyFactory
public ObjectKeyFactory getObjectKeyFactory()
- Specified by:
getObjectKeyFactoryin classORB
-
setObjectKeyFactory
public void setObjectKeyFactory(ObjectKeyFactory factory)
- Specified by:
setObjectKeyFactoryin classORB
-
handleBadServerId
public void handleBadServerId(ObjectKey okey)
Description copied from class:ORBHandle a bad server id for the given object key. This should always through an exception: either a ForwardException to allow another server to handle the request, or else an error indication.- Specified by:
handleBadServerIdin classORB- Parameters:
okey- The ObjectKey to check for a valid server id.
-
peekInvocationInfo
public OAInvocationInfo peekInvocationInfo()
- Specified by:
peekInvocationInfoin classORB
-
pushInvocationInfo
public void pushInvocationInfo(OAInvocationInfo info)
- Specified by:
pushInvocationInfoin classORB
-
popInvocationInfo
public OAInvocationInfo popInvocationInfo()
- Specified by:
popInvocationInfoin classORB
-
createOrIncrementInvocationInfo
public ClientInvocationInfo createOrIncrementInvocationInfo()
- Specified by:
createOrIncrementInvocationInfoin classORB
-
releaseOrDecrementInvocationInfo
public void releaseOrDecrementInvocationInfo()
- Specified by:
releaseOrDecrementInvocationInfoin classORB
-
getInvocationInfo
public ClientInvocationInfo getInvocationInfo()
- Specified by:
getInvocationInfoin classORB
-
getConnectionCache
public ConnectionCache getConnectionCache(ContactInfo contactInfo)
-
setResolver
public void setResolver(Resolver resolver)
Description copied from class:ORBSet the resolver used in this ORB. This resolver will be used for list_initial_services and resolve_initial_references.- Specified by:
setResolverin classORB- Parameters:
resolver- resolver to be used
-
getResolver
public Resolver getResolver()
Description copied from class:ORBGet the resolver used in this ORB. This resolver will be used for list_initial_services and resolve_initial_references.- Specified by:
getResolverin classORB- Returns:
- ORB Name resolver
-
setLocalResolver
public void setLocalResolver(LocalResolver resolver)
Description copied from class:ORBSet the LocalResolver used in this ORB. This LocalResolver is used for register_initial_reference only.- Specified by:
setLocalResolverin classORB- Parameters:
resolver- ORB Local Name resolver
-
getLocalResolver
public LocalResolver getLocalResolver()
Description copied from class:ORBGet the LocalResolver used in this ORB. This LocalResolver is used for register_initial_reference only.- Specified by:
getLocalResolverin classORB- Returns:
- ORB Local Name resolver
-
setURLOperation
public void setURLOperation(Operation stringToObject)
Description copied from class:ORBSet the operation used in string_to_object calls. The Operation must expect a String and return an org.omg.CORBA.Object.- Specified by:
setURLOperationin classORB- Parameters:
stringToObject- operation to be used
-
setBadServerIdHandler
public void setBadServerIdHandler(BadServerIdHandler handler)
- Specified by:
setBadServerIdHandlerin classORB
-
initBadServerIdHandler
public void initBadServerIdHandler()
- Specified by:
initBadServerIdHandlerin classORB
-
getSelector
public Selector getSelector(int x)
-
setThreadPoolManager
public void setThreadPoolManager(ThreadPoolManager mgr)
- Specified by:
setThreadPoolManagerin classORB
-
getThreadPoolManager
public ThreadPoolManager getThreadPoolManager()
- Specified by:
getThreadPoolManagerin classORB
-
getCopierManager
public CopierManager getCopierManager()
- Specified by:
getCopierManagerin classORB
-
-