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

GlacialTaskAdvocate Class Reference

Inheritance diagram for GlacialTaskAdvocate:

Inheritance graph
[legend]
Collaboration diagram for GlacialTaskAdvocate:

Collaboration graph
[legend]
List of all members.

Detailed Description

An advocate that is slow to react to changes in the CPU usage.

This advocate is mostly useful for applications that have a relatively flat usage pattern with an infrequent spike in usage.

The current implementation increases or decreases its advice by a quarter of the difference between the last received advice and the current.

Definition at line 31 of file GlacialTaskAdvocate.hh.

Public Member Functions

 GlacialTaskAdvocate (void)
 Default constructor.

virtual ~GlacialTaskAdvocate (void)
 Destructor.

virtual Broker::CPUReserve PassCPU (Broker::RealTimeTask_ptr rtt, const Broker::CPUReserve &status, const Broker::CPUReserve &advice, const Broker::KeyedReportParameters &krp) throw (CORBA::SystemException)
 This method would then be used by adaptation proxies to change the advice parameter to their liking.

Parameters:
rtt The task object that was actually added to the manager.
status The CPU usage of the task in microseconds.
advice The amount of CPU time, in microseconds, that the application would like for the next period.
krp Non-standard report parameters that are indexed by key name.
Returns:
The actual CPU reserve given to the task.
See also:
ChangeTaskCPU



Private Attributes

CORBA::ULong gta_LastAdvice
 The last advice reported by this advocate.


The documentation for this class was generated from the following files:
Generated on Tue Jun 22 14:51:52 2004 for CPU Broker by doxygen 1.3.6