Apache REEF  0.16.0
Retainable Evaluator Execution Framework
Public Member Functions | List of all members
Org.Apache.REEF.Common.Telemetry.ICounters Interface Reference

Inherited by Org.Apache.REEF.Common.Telemetry.Counters.

Public Member Functions

bool TryRegisterCounter (string name, string description)
 Register a new counter with a specified name. More...
 
bool TryGetValue (string name, out ICounter counter)
 Get counter value for a given counter name More...
 
void Increment (string name, int number)
 Increase the counter with the given number More...
 
IEnumerable< ICounterGetCounters ()
 Returns all the counters More...
 
string Serialize ()
 Serialize the counter into a string More...
 

Member Function Documentation

◆ GetCounters()

IEnumerable<ICounter> Org.Apache.REEF.Common.Telemetry.ICounters.GetCounters ( )

Returns all the counters

Returns

◆ Increment()

void Org.Apache.REEF.Common.Telemetry.ICounters.Increment ( string  name,
int  number 
)

Increase the counter with the given number

Parameters
nameName of the counter
numbernumber to increase

◆ Serialize()

string Org.Apache.REEF.Common.Telemetry.ICounters.Serialize ( )

Serialize the counter into a string

Returns
Returns serialized string of the counters.

◆ TryGetValue()

bool Org.Apache.REEF.Common.Telemetry.ICounters.TryGetValue ( string  name,
out ICounter  counter 
)

Get counter value for a given counter name

Parameters
nameName of the counter
counterThe counter object returned
Returns
Returns a boolean to indicate if the value is found.

◆ TryRegisterCounter()

bool Org.Apache.REEF.Common.Telemetry.ICounters.TryRegisterCounter ( string  name,
string  description 
)

Register a new counter with a specified name.

If name does not exist, the counter will be added and true will be returned Otherwise the counter will be not added and false will be returned.

Parameters
nameName of the counter to be registered.
descriptionDescription of the counter to be registered.
Returns
Returns a boolean to indicate if the counter is added.

The documentation for this interface was generated from the following file: