Issue 5613: PriorityModelPolicy
Issue 5949: Minor syntax errors in spec
Issue 5613: PriorityModelPolicy (rt-corba-rtf)
Click here for this issue's archive.
Source: OOMWorks (Dr. Irfan Pyarali, irfan(at)oomworks.com)
Nature: Revision
Severity: Significant
Summary:
RTCORBA::PriorityModelPolicy cannot be created via ORB::create_policy() method because this policy has two attributes <priority_model> and <server_priority> and the Any that is passed to the ORB::create_policy() method can only hold one parameter. Here is the proposed fix:
struct PriorityModelParameter { PriorityModel priority_model; Priority server_priority; };
local interface PriorityModelPolicy : CORBA::Policy { readonly attribute PriorityModelParameter value; };
RTCORBA::create_priority_model_policy may also need to be changed (for consistency) to accept <PriorityModelParameter> rather than the two parameters separately.
An alternative method for creating the PritorityModelPolicy exists, create_priority_model_policy.
These should be editorial changes:
Section 2.7.4 Server Declared Priority Model
ObjectId activate_object_with_priority (
in PortableServer::Servant p_servant,
in RTCORBA::Priority priority )
raises ( ServantAlreadyActive, WrongPolicy );
Should be:
PortableServer::POA::ObjectId activate_object_with_priority (
in PortableServer::Servant p_servant,
in RTCORBA::Priority priority )
raises ( PortableServer::POA::ServantAlreadyActive,
PortableServer::POA::WrongPolicy );