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

LoggingAdvocate Class Reference

Inheritance diagram for LoggingAdvocate:

Inheritance graph
[legend]
Collaboration diagram for LoggingAdvocate:

Collaboration graph
[legend]
List of all members.

Detailed Description

A Broker::RealTimeAdvocate that suggests the task gets the exact amount of compute time as needed by the last period.

Definition at line 29 of file LoggingAdvocate.hh.

Public Member Functions

virtual void SetDelegateAttribute (const char *id, const CORBA::Any &value) throw (CORBA::SystemException)
 
Parameters:
id The attribute identifier.
value The new attribute value.


virtual void ReportCPU (Broker::RealTimeTask_ptr rtt, CORBA::ULong status, CORBA::ULong advice) 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.
See also:
ChangeTaskCPU



Protected Attributes

timeval eta_StartTime
 The time that this object was constructed.

timeval eta_LastCPULog
 The last time that the CPU usage was logged.

ofstream * eta_CPULog
 The output stream for the CPU usage log.

timeval eta_LastAdviceLog
 The last time the advice was logged.

ofstream * eta_AdviceLog
 The output stream for the advice log.

ofstream * eta_CompleteLog
 The output stream for the completion log.


The documentation for this class was generated from the following files:
Generated on Mon Dec 1 16:30:36 2003 for CPU Broker by doxygen 1.3.4