statgrab_health.h

00001 
00002 #include <stdint.h>
00003 #include <libplayercore/playercore.h>
00004 
00005 extern "C"
00006 {
00007 #include <statgrab.h>
00008 }
00009         
00011 // The class for the driver
00012 class StatGrabDriver : public Driver
00013 {
00014   public:
00015 
00016     StatGrabDriver(ConfigFile* cf, int section);
00017     
00018     // Must implement the following methods.
00019     int Setup();
00020     int Shutdown();
00021  
00022   private:
00023     // Main function for device thread.
00024     virtual void Main();
00025     void RefreshData();
00026     
00027     // Structure for specific process data 
00028     
00029     // Structure holding Swap data 
00030     sg_swap_stats         *swap_stats;
00031     
00032     // Structure holding CPU data  
00033     sg_cpu_percents       *cpu_percent;
00034      
00035     // Structure holding memory stat  
00036     sg_mem_stats          *mem_data;
00037     double mem_percent;
00038    
00039     // Health Interface
00040     player_devaddr_t     mHealthId;
00041     player_health_data_t   mHealth;
00042    
00043     // For status checking priviledge
00044     int                   status;
00045     int32_t               mSleep;
00046 
00047 };

Last updated 12 September 2005 21:38:45