Class IORInfoImpl
java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.ee.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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ObjectAdapterprivate static final OMGSystemExceptionprivate ORBprivate static final ORBUtilSystemExceptionprivate intprivate static final intprivate static final intprivate static final intprivate static final InterceptorsSystemException -
Constructor Summary
Constructors -
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.private voidaddIORComponentToProfileInternal(TaggedComponent tagged_component, Iterator iterator) Internal utility method to add an IOR component to the set of profiles present in the iterator.private voidcheckState(int expectedState) private voidcheckState(int expectedState1, int expectedState2) 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) (package private) void(package private) voidintReturn the adapter manager id of the object adapter that was just created and is running IOR interceptors.private voidCalled when an invalid null parameter was passed.shortstate()Return the adapter state of the object adapter that was just created and is running IOR interceptors.Methods inherited from class 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
Field Details
-
STATE_INITIAL
private static final int STATE_INITIAL- See Also:
-
STATE_ESTABLISHED
private static final int STATE_ESTABLISHED- See Also:
-
STATE_DONE
private static final int STATE_DONE- See Also:
-
state
private int state -
adapter
-
orb
-
orbutilWrapper
-
wrapper
-
omgWrapper
-
-
Constructor Details
-
IORInfoImpl
IORInfoImpl(ObjectAdapter adapter) Creates a new IORInfo implementation. This info object will establish tagged components with the template for the provided IOR Template.
-
-
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 type 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- Returns:
- the manager ID
-
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- Returns:
- the state of the adapter
-
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- Returns:
- the template
-
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
-
addIORComponentToProfileInternal
Internal utility method to add an IOR component to the set of profiles present in the iterator. -
nullParam
private void nullParam()Called when an invalid null parameter was passed. Throws a BAD_PARAM with a minor code of 1 -
checkState
private void checkState(int expectedState) -
checkState
private void checkState(int expectedState1, int expectedState2) -
makeStateEstablished
void makeStateEstablished() -
makeStateDone
void makeStateDone()
-