Class IORInfoImpl
java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.se.impl.interceptors.IORInfoImpl
- All Implemented Interfaces:
IORInfoExt,Serializable,Object,IDLEntity,IORInfo,IORInfoOperations
IORInfoImpl is the implementation of the IORInfo class, as described
in orbos/99-12-02, section 7.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn the object reference template of the object adapter that was just created and is running IOR interceptors.voidadd_ior_component(TaggedComponent tagged_component) A portable ORB service implementation calls this method from its implementation of establish_components to add a tagged component to the set which will be included when constructing IORs.voidadd_ior_component_to_profile(TaggedComponent tagged_component, int profile_id) A portable ORB service implementation calls this method from its implementation of establish_components to add a tagged component to the set which will be included when constructing IORs.On read, returns the current factory that will be used to create object references for the object adapter that was just created and is running IOR interceptors.voidcurrent_factory(ObjectReferenceFactory factory) On read, returns the current factory that will be used to create object references for the object adapter that was just created and is running IOR interceptors.get_effective_policy(int type) An ORB service implementation may determine what server side policy of a particular type is in effect for an IOR being constructed by calling the get_effective_policy operation.intgetServerPort(String type) intReturn the adapter manager id of the object adapter that was just created and is running IOR interceptors.shortstate()Return the adapter state of the object adapter that was just created and is running IOR interceptors.Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
-
Method Details
-
get_effective_policy
An ORB service implementation may determine what server side policy of a particular type is in effect for an IOR being constructed by calling the get_effective_policy operation. When the IOR being constructed is for an object implemented using a POA, all Policy objects passed to the PortableServer::POA::create_POA call that created that POA are accessible via get_effective_policy.If a policy for the given type is not known to the ORB, then this operation will raise INV_POLICY with a standard minor code of 2.
- Specified by:
get_effective_policyin interfaceIORInfoOperations- Parameters:
type- The CORBA::PolicyType specifying the type of policy to return.- Returns:
- The effective CORBA::Policy object of the requested type. If the given policy type is known, but no policy of that tpye is in effect, then this operation will return a nil object reference.
-
add_ior_component
A portable ORB service implementation calls this method from its implementation of establish_components to add a tagged component to the set which will be included when constructing IORs. The components in this set will be included in all profiles.Any number of components may exist with the same component ID.
- Specified by:
add_ior_componentin interfaceIORInfoOperations- Parameters:
tagged_component- The IOP::TaggedComponent to add
-
add_ior_component_to_profile
A portable ORB service implementation calls this method from its implementation of establish_components to add a tagged component to the set which will be included when constructing IORs. The components in this set will be included in the specified profile.Any number of components may exist with the same component ID.
If the given profile ID does not define a known profile or it is impossible to add components to thgat profile, BAD_PARAM is raised with a minor code of TBD_BP + 3.
- Specified by:
add_ior_component_to_profilein interfaceIORInfoOperations- Parameters:
tagged_component- The IOP::TaggedComponent to add.profile_id- The IOP::ProfileId tof the profile to which this component will be added.
-
getServerPort
- Specified by:
getServerPortin interfaceIORInfoExt- Parameters:
type- The type of the server port (see connection.ORBSocketFactory for discussion).- Returns:
- The listen port number for that type.
- Throws:
UnknownType- if no port of the given type is found.
-
getObjectAdapter
- Specified by:
getObjectAdapterin interfaceIORInfoExt
-
manager_id
public int manager_id()Description copied from interface:IORInfoOperationsReturn the adapter manager id of the object adapter that was just created and is running IOR interceptors.- Specified by:
manager_idin interfaceIORInfoOperations
-
state
public short state()Description copied from interface:IORInfoOperationsReturn the adapter state of the object adapter that was just created and is running IOR interceptors.- Specified by:
statein interfaceIORInfoOperations
-
adapter_template
Description copied from interface:IORInfoOperationsReturn the object reference template of the object adapter that was just created and is running IOR interceptors.- Specified by:
adapter_templatein interfaceIORInfoOperations
-
current_factory
Description copied from interface:IORInfoOperationsOn read, returns the current factory that will be used to create object references for the object adapter that was just created and is running IOR interceptors. By default, this factory is the same as the value of the adapter_template attribute. The current_factory may also be set to another object reference template inside an IORInterceptor_3_0.- Specified by:
current_factoryin interfaceIORInfoOperations
-
current_factory
Description copied from interface:IORInfoOperationsOn read, returns the current factory that will be used to create object references for the object adapter that was just created and is running IOR interceptors. By default, this factory is the same as the value of the adapter_template attribute. The current_factory may also be set to another object reference template inside an IORInterceptor_3_0.- Specified by:
current_factoryin interfaceIORInfoOperations
-