C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
job_counters.h
1
#pragma once
2
3
#include "
fwd.h
"
4
5
#include <yt/cpp/mapreduce/interface/node.h>
6
7
namespace
NYT
{
8
9
class
TJobCounter
10
{
11
private
:
12
TNode Data_;
13
i64 Total_ = 0;
14
15
public
:
16
TJobCounter() =
default
;
17
18
TJobCounter(TNode data);
19
TJobCounter(i64 total);
20
21
i64 GetTotal()
const
;
22
23
i64 GetValue(
const
TStringBuf key)
const
;
24
};
25
27
class
TJobCounters
28
{
29
public
:
32
TJobCounters
() =
default
;
33
36
TJobCounters
(
const
TNode& counters);
37
38
const
TJobCounter
& GetAborted()
const
;
39
const
TJobCounter
& GetAbortedScheduled()
const
;
40
const
TJobCounter
& GetAbortedNonScheduled()
const
;
41
const
TJobCounter
& GetCompleted()
const
;
42
const
TJobCounter
& GetCompletedNonInterrupted()
const
;
43
const
TJobCounter
& GetCompletedInterrupted()
const
;
44
const
TJobCounter
& GetLost()
const
;
45
const
TJobCounter
& GetInvalidated()
const
;
46
const
TJobCounter
& GetFailed()
const
;
47
const
TJobCounter
& GetRunning()
const
;
48
const
TJobCounter
& GetSuspended()
const
;
49
const
TJobCounter
& GetPending()
const
;
50
const
TJobCounter
& GetBlocked()
const
;
51
52
i64 GetTotal()
const
;
53
54
private
:
55
i64 Total_ = 0;
56
57
TJobCounter
Aborted_;
58
TJobCounter
AbortedScheduled_;
59
TJobCounter
AbortedNonScheduled_;
60
TJobCounter
Completed_;
61
TJobCounter
CompletedNonInterrupted_;
62
TJobCounter
CompletedInterrupted_;
63
TJobCounter
Lost_;
64
TJobCounter
Invalidated_;
65
TJobCounter
Failed_;
66
TJobCounter
Running_;
67
TJobCounter
Suspended_;
68
TJobCounter
Pending_;
69
TJobCounter
Blocked_;
70
};
71
73
74
}
// namespace NYT
NYT::TJobCounter
Definition
job_counters.h:10
NYT::TJobCounters::TJobCounters
TJobCounters(const TNode &counters)
Construct counter from counters node.
NYT::TJobCounters::TJobCounters
TJobCounters()=default
Construct empty counter.
fwd.h
NYT
Main namespace of YT client.
Definition
abortable_stream.h:7
yt
cpp
mapreduce
interface
job_counters.h
Generated by
1.15.0