Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BrokerPolicies::WeightedPolicy Interface Reference

Inheritance diagram for BrokerPolicies::WeightedPolicy:

Inheritance graph
[legend]
Collaboration diagram for BrokerPolicies::WeightedPolicy:

Collaboration graph
[legend]
List of all members.

Detailed Description

A contention policy based on weights, where the weight is the task's proportional share.

See also:
WeightedPolicyImpl

Definition at line 57 of file StrictPolicy.idl.

Public Member Functions

void SetTaskWeight (in Broker::Task task, in unsigned short weight)
 Set the weight of a task.
unsigned short GetTaskWeight (in Broker::Task task)
 Get the weight of a task.


Member Function Documentation

unsigned short BrokerPolicies::WeightedPolicy::GetTaskWeight in Broker::Task  task  ) 
 

Get the weight of a task.

Parameters:
task The task whose weight should be retrieved.
Returns:
The task's weight.
Exceptions:
CORBA::BAD_PARAM if task is nil.
CORBA::BAD_PARAM if task is not managed by this policy.

void BrokerPolicies::WeightedPolicy::SetTaskWeight in Broker::Task  task,
in unsigned short  weight
 

Set the weight of a task.

Parameters:
task The task whose priority should be changed.
weight The new weight.
Exceptions:
CORBA::BAD_PARAM if task is nil.
CORBA::BAD_PARAM if task is not managed by this policy.


The documentation for this interface was generated from the following file:
Generated on Fri Oct 22 07:51:08 2004 for CPU Broker by  doxygen 1.3.9.1