diff options
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/Machine_Properties.h')
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/Machine_Properties.h | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/Machine_Properties.h b/TAO/orbsvcs/tests/AVStreams/Machine_Properties.h deleted file mode 100644 index 76cbaeb4862..00000000000 --- a/TAO/orbsvcs/tests/AVStreams/Machine_Properties.h +++ /dev/null @@ -1,84 +0,0 @@ -/* -*- C++ -*- */ - -// ============================================================================ -// $Id$ -// - -// = FILENAME -// Machine_Properties.h -// -// = DESCRIPTION -// As a trading service dynamic property, retrieves machine -// statistics from the rstatd using Sun RPC. -// -// = AUTHORS -// Seth Widoff <sbw1@cs.wustl.edu> -// -// ============================================================================ - -#if (! defined TAO_MACHINE_PROPERTIES) -#define TAO_MACHINE_PROPERTIES - -#include "orbsvcs/Trader/Dynamic_Property.h" - -//RPC related includes -#include <rpc/rpc.h> -#include <rpcsvc/rstat.h> - -class TAO_Machine_Properties : public TAO_DP_Evaluation_Handler -{ -public: - - enum PROP_TYPES - { - CPU, - DISK, - PAGES, - SWAPS, - PACKETS, - ERRORS, - CONTEXT_SWITCHES, - COLLISIONS, - INTERRUPTS, - LOAD - }; - - static const char* PROP_NAMES[]; - static const CORBA::TypeCode_ptr PROP_TYPE; - - TAO_Machine_Properties (void); - TAO_Machine_Properties (const ACE_Time_Value& timeout); - - virtual CORBA::Any* evalDP(const CORBA::Any& extra_info, - CORBA::TypeCode_ptr returned_type, - CORBA::Environment& _env) - TAO_THROW_SPEC ((CosTradingDynamic::DPEvalFailure)); - -private: - - void init (void); - - int retrieve_stats (void); - - void compute_cpu (CORBA::Any& value, int elapsed_time); - void compute_disk (CORBA::Any& value, int elapsed_time); - void compute_pages (CORBA::Any& value, int elapsed_time); - void compute_swaps (CORBA::Any& value, int elapsed_time); - void compute_packets (CORBA::Any& value, int elapsed_time); - void compute_errors (CORBA::Any& value, int elapsed_time); - void compute_context (CORBA::Any& value, int elapsed_time); - void compute_collisions (CORBA::Any& value, int elapsed_time); - void compute_interrupts (CORBA::Any& value, int elapsed_time); - void compute_load (CORBA::Any& value, int elapsed_time); - - const ACE_Time_Value timeout_; - ACE_Time_Value timestamp_; - ACE_Time_Value sample_time_; - - statstime stats_; - statstime old_stats_; - CLIENT* rstat_client_; - -}; - -#endif /* TAO_MACHINE_PROPERTIES */ |