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

Broker::Manager Interface Reference

Collaboration diagram for Broker::Manager:

Collaboration graph
[legend]
List of all members.

Detailed Description

The Manager interface is a point of indirection for the Tasks that wish to be scheduled by a contention policy.

See also:
ManagerImpl

Definition at line 337 of file Broker.idl.

Public Member Functions

void AddTask (in Task new_task, in ScheduleParameters sp) raises (DuplicateScheduleParameter, InvalidScheduleParameter, MissingScheduleParameter)
 NOTE: This method will be called before the reservation is made, giving the policy a chance to adjust any values.

See also:
RemoveTask
Parameters:
new_task The newly created Task object.
sp The tasks's scheduling parameters.
Exceptions:
CORBA::BAD_PARAM if task is nil.
CORBA::BAD_PARAM if task has already been added.
CORBA::BAD_INV_ORDER if the method is called without Activate() being called first.


void RemoveTask (in Task added_task)
 NOTE: This method will be called after the reservation has been destroyed, so it can safely reallocate the newly freed CPU time.

See also:
AddTask
Parameters:
added_task The task to remove.
Exceptions:
CORBA::BAD_PARAM if task is nil.
CORBA::BAD_PARAM if task has already been removed.
CORBA::BAD_INV_ORDER if the method is called without Activate() being called first.


TaskList GetTaskList ()
 
Returns:
The list of task's managed by this policy.


void ChangeTaskCPU (in RealTimeTask task, in unsigned long ct, in unsigned long status, in unsigned long advice) raises (InvalidState)
 
Parameters:
task The Task object requesting a CPU time change.
ct The Task's current CPU time.
status The status value reported by Task.ReportCPU().
advice The CPU time advice from the Task object.



Public Attributes

attribute Policy CurrentPolicy
 The current policy to use when handling CPU time change requests.


Member Function Documentation

void Broker::Manager::ChangeTaskCPU in RealTimeTask  task,
in unsigned long  ct,
in unsigned long  status,
in unsigned long  advice
raises (InvalidState)
 

Parameters:
task The Task object requesting a CPU time change.
ct The Task's current CPU time.
status The status value reported by Task.ReportCPU().
advice The CPU time advice from the Task object.

Note: If there is no policy set, the manager will simply call SetComputeTime() on the given task with the given advice.


Member Data Documentation

attribute Policy Broker::Manager::CurrentPolicy
 

The current policy to use when handling CPU time change requests.

If this value is nil, the manager will implement a straightforward default policy.

Definition at line 344 of file Broker.idl.


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