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

RKObserverAdvocate Class Reference

Inheritance diagram for RKObserverAdvocate:

Inheritance graph
[legend]
Collaboration diagram for RKObserverAdvocate:

Collaboration graph
[legend]
List of all members.

Detailed Description

An advocate that periodically polls an RK resource set and automatically sends a report with the usage observed over the last period.

Definition at line 29 of file RKObserverAdvocate.hh.

Public Member Functions

 RKObserverAdvocate (void) throw (CORBA::SystemException)
 Construct the advocate.
virtual ~RKObserverAdvocate (void)
 Deconstruct the advocate.
virtual void BeginCPUScheduling (const Broker::ScheduleParameters &sp) throw (CORBA::SystemException, Broker::DuplicateScheduleParameter, Broker::InvalidScheduleParameter, Broker::MissingScheduleParameter)
 
Parameters:
sp The high level scheduling parameters.
Exceptions:
DuplicateScheduleParameter if the given schedule has a duplicate parameter.
InvalidScheduleParameter if the given schedule has an invalid parameter.
MissingScheduleParameter if the given schedule is missing a required parameter.
CORBA::BAD_INV_ORDER if the method is called without intervening calls to EndCPUScheduling().

virtual void EndCPUScheduling (void) throw (CORBA::SystemException)
 
Exceptions:
CORBA::BAD_INV_ORDER if the method is called without BeginCPUScheduling() being called first.

virtual void run (void)
 The main polling loop.

Private Attributes

Broker::RealTimeTask_var rkoa_Advocate
 A cached reference to this CORBA object.
pthread_mutex_t rkoa_Mutex
 Mutex used to serialize access to this object.
pthread_cond_t rkoa_Cond
 Condition variable used to block/unblock the polling loop.
pthread_t rkoa_Thread
 Reference to the polling thread.
timespec rkoa_Period
 The task's period in a convenient form.
volatile rk_resource_set_t rkoa_ResourceSet
 The resource set being monitored.


The documentation for this class was generated from the following files:
Generated on Fri Oct 22 07:51:04 2004 for CPU Broker by  doxygen 1.3.9.1