dataflow  v1b3
Public Member Functions | Static Public Member Functions | List of all members
google_dataflow_api::CPUTime Class Reference

#include <cput_ime.h>

Inheritance diagram for google_dataflow_api::CPUTime:

Public Member Functions

 CPUTime (const Json::Value &storage)
 
 CPUTime (Json::Value *storage)
 
virtual ~CPUTime ()
 
const StringPiece GetTypeName () const
 
bool has_rate () const
 
void clear_rate ()
 
double get_rate () const
 
void set_rate (double value)
 
bool has_timestamp () const
 
void clear_timestamp ()
 
const StringPiece get_timestamp () const
 
void set_timestamp (const StringPiece &value)
 
bool has_total_ms () const
 
void clear_total_ms ()
 
uint64 get_total_ms () const
 
void set_total_ms (uint64 value)
 

Static Public Member Functions

static CPUTimeNew ()
 

Detailed Description

Modeled after information exposed by /proc/stat.

Constructor & Destructor Documentation

◆ CPUTime() [1/2]

google_dataflow_api::CPUTime::CPUTime ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ CPUTime() [2/2]

google_dataflow_api::CPUTime::CPUTime ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~CPUTime()

google_dataflow_api::CPUTime::~CPUTime ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_rate()

void google_dataflow_api::CPUTime::clear_rate ( )
inline

Clears the 'rate' attribute.

◆ clear_timestamp()

void google_dataflow_api::CPUTime::clear_timestamp ( )
inline

Clears the 'timestamp' attribute.

◆ clear_total_ms()

void google_dataflow_api::CPUTime::clear_total_ms ( )
inline

Clears the 'totalMs' attribute.

◆ get_rate()

double google_dataflow_api::CPUTime::get_rate ( ) const
inline

Get the value of the 'rate' attribute.

◆ get_timestamp()

const StringPiece google_dataflow_api::CPUTime::get_timestamp ( ) const
inline

Get the value of the 'timestamp' attribute.

◆ get_total_ms()

uint64 google_dataflow_api::CPUTime::get_total_ms ( ) const
inline

Get the value of the 'totalMs' attribute.

◆ GetTypeName()

const StringPiece google_dataflow_api::CPUTime::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_dataflow_api::CPUTime

◆ has_rate()

bool google_dataflow_api::CPUTime::has_rate ( ) const
inline

Determine if the 'rate' attribute was set.

Returns
true if the 'rate' attribute was set.

◆ has_timestamp()

bool google_dataflow_api::CPUTime::has_timestamp ( ) const
inline

Determine if the 'timestamp' attribute was set.

Returns
true if the 'timestamp' attribute was set.

◆ has_total_ms()

bool google_dataflow_api::CPUTime::has_total_ms ( ) const
inline

Determine if the 'totalMs' attribute was set.

Returns
true if the 'totalMs' attribute was set.

◆ New()

CPUTime * google_dataflow_api::CPUTime::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_rate()

void google_dataflow_api::CPUTime::set_rate ( double  value)
inline

Change the 'rate' attribute.

Average CPU utilization rate (% non-idle cpu / second) since previous sample.

Parameters
[in]valueThe new value.

◆ set_timestamp()

void google_dataflow_api::CPUTime::set_timestamp ( const StringPiece &  value)
inline

Change the 'timestamp' attribute.

Timestamp of the measurement.

Parameters
[in]valueThe new value.

◆ set_total_ms()

void google_dataflow_api::CPUTime::set_total_ms ( uint64  value)
inline

Change the 'totalMs' attribute.

Total active CPU time across all cores (ie., non-idle) in milliseconds since start-up.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: