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

BrokerPolicies::StrictPolicy Interface Reference

Inheritance diagram for BrokerPolicies::StrictPolicy:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

A simple strict priority-based contention policy.

See also:
StrictPolicyImpl

Definition at line 23 of file StrictPolicy.idl.

Public Member Functions

void SetTaskPriority (in Broker::Task task, in short priority)
 Set the priority of a task.

short GetTaskPriority (in Broker::Task task)
 Get the priority of a task.

float GetMaxCPUAllocation ()
void SetMaxCPUAllocation (in float amount)

Public Attributes

const float CPU_ALLOCATION_MIN = 0.01
 The minimum value that can be passed to SetMaxCPUAllocation.

const float CPU_ALLOCATION_MAX = 0.99
 The maximum value that can be passed to SetMaxCPUAllocation.


Member Function Documentation

float BrokerPolicies::StrictPolicy::GetMaxCPUAllocation  ) 
 

Returns:
The maximum percentage of CPU that can be allocated to all of the tasks.

short BrokerPolicies::StrictPolicy::GetTaskPriority in Broker::Task  task  ) 
 

Get the priority of a task.

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

void BrokerPolicies::StrictPolicy::SetMaxCPUAllocation in float  amount  ) 
 

Parameters:
amount The maximum percentage of CPU that can be allocated to all of the tasks.

void BrokerPolicies::StrictPolicy::SetTaskPriority in Broker::Task  task,
in short  priority
 

Set the priority of a task.

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


Member Data Documentation

const float BrokerPolicies::StrictPolicy::CPU_ALLOCATION_MAX = 0.99
 

The maximum value that can be passed to SetMaxCPUAllocation.

Definition at line 67 of file StrictPolicy.idl.

Referenced by pfStrictPolicyHey(), and StrictPolicyImpl::SetMaxCPUAllocation().

const float BrokerPolicies::StrictPolicy::CPU_ALLOCATION_MIN = 0.01
 

The minimum value that can be passed to SetMaxCPUAllocation.

Definition at line 62 of file StrictPolicy.idl.

Referenced by pfStrictPolicyHey(), and StrictPolicyImpl::SetMaxCPUAllocation().


The documentation for this interface was generated from the following file:
Generated on Mon Dec 1 16:30:46 2003 for CPU Broker by doxygen 1.3.4