#include <worker_message.h>
WorkerMessage provides information to the backend about a worker.
◆ WorkerMessage() [1/2]
| google_dataflow_api::WorkerMessage::WorkerMessage |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ WorkerMessage() [2/2]
| google_dataflow_api::WorkerMessage::WorkerMessage |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~WorkerMessage()
| google_dataflow_api::WorkerMessage::~WorkerMessage |
( |
| ) |
|
|
virtual |
◆ clear_labels()
| void google_dataflow_api::WorkerMessage::clear_labels |
( |
| ) |
|
|
inline |
Clears the 'labels' attribute.
◆ clear_time()
| void google_dataflow_api::WorkerMessage::clear_time |
( |
| ) |
|
|
inline |
Clears the 'time' attribute.
◆ clear_worker_health_report()
| void google_dataflow_api::WorkerMessage::clear_worker_health_report |
( |
| ) |
|
|
inline |
Clears the 'workerHealthReport' attribute.
◆ clear_worker_lifecycle_event()
| void google_dataflow_api::WorkerMessage::clear_worker_lifecycle_event |
( |
| ) |
|
|
inline |
Clears the 'workerLifecycleEvent' attribute.
◆ clear_worker_message_code()
| void google_dataflow_api::WorkerMessage::clear_worker_message_code |
( |
| ) |
|
|
inline |
Clears the 'workerMessageCode' attribute.
◆ clear_worker_metrics()
| void google_dataflow_api::WorkerMessage::clear_worker_metrics |
( |
| ) |
|
|
inline |
Clears the 'workerMetrics' attribute.
◆ clear_worker_shutdown_notice()
| void google_dataflow_api::WorkerMessage::clear_worker_shutdown_notice |
( |
| ) |
|
|
inline |
Clears the 'workerShutdownNotice' attribute.
◆ get_labels()
| const client::JsonCppAssociativeArray<string > google_dataflow_api::WorkerMessage::get_labels |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'labels' attribute.
◆ get_time()
| const StringPiece google_dataflow_api::WorkerMessage::get_time |
( |
| ) |
const |
|
inline |
Get the value of the 'time' attribute.
◆ get_worker_health_report()
| const WorkerHealthReport google_dataflow_api::WorkerMessage::get_worker_health_report |
( |
| ) |
const |
Get a reference to the value of the 'workerHealthReport' attribute.
◆ get_worker_lifecycle_event()
Get a reference to the value of the 'workerLifecycleEvent' attribute.
◆ get_worker_message_code()
| const WorkerMessageCode google_dataflow_api::WorkerMessage::get_worker_message_code |
( |
| ) |
const |
Get a reference to the value of the 'workerMessageCode' attribute.
◆ get_worker_metrics()
Get a reference to the value of the 'workerMetrics' attribute.
◆ get_worker_shutdown_notice()
Get a reference to the value of the 'workerShutdownNotice' attribute.
◆ GetTypeName()
| const StringPiece google_dataflow_api::WorkerMessage::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_labels()
| bool google_dataflow_api::WorkerMessage::has_labels |
( |
| ) |
const |
|
inline |
Determine if the 'labels' attribute was set.
- Returns
- true if the '
labels' attribute was set.
◆ has_time()
| bool google_dataflow_api::WorkerMessage::has_time |
( |
| ) |
const |
|
inline |
Determine if the 'time' attribute was set.
- Returns
- true if the '
time' attribute was set.
◆ has_worker_health_report()
| bool google_dataflow_api::WorkerMessage::has_worker_health_report |
( |
| ) |
const |
|
inline |
Determine if the 'workerHealthReport' attribute was set.
- Returns
- true if the '
workerHealthReport' attribute was set.
◆ has_worker_lifecycle_event()
| bool google_dataflow_api::WorkerMessage::has_worker_lifecycle_event |
( |
| ) |
const |
|
inline |
Determine if the 'workerLifecycleEvent' attribute was set.
- Returns
- true if the '
workerLifecycleEvent' attribute was set.
◆ has_worker_message_code()
| bool google_dataflow_api::WorkerMessage::has_worker_message_code |
( |
| ) |
const |
|
inline |
Determine if the 'workerMessageCode' attribute was set.
- Returns
- true if the '
workerMessageCode' attribute was set.
◆ has_worker_metrics()
| bool google_dataflow_api::WorkerMessage::has_worker_metrics |
( |
| ) |
const |
|
inline |
Determine if the 'workerMetrics' attribute was set.
- Returns
- true if the '
workerMetrics' attribute was set.
◆ has_worker_shutdown_notice()
| bool google_dataflow_api::WorkerMessage::has_worker_shutdown_notice |
( |
| ) |
const |
|
inline |
Determine if the 'workerShutdownNotice' attribute was set.
- Returns
- true if the '
workerShutdownNotice' attribute was set.
◆ mutable_labels()
| client::JsonCppAssociativeArray<string > google_dataflow_api::WorkerMessage::mutable_labels |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'labels' property.
Labels are used to group WorkerMessages. For example, a worker_message about a particular container might have the labels: { "JOB_ID": "2015-04-22",
- "WORKER_ID"
- "wordcount-vm-2015…".
- "CONTAINER_TYPE"
- "worker",.
- "CONTAINER_ID"
- "ac1234def"}.
Label tags typically correspond to Label enum values. However, for ease of development other strings can be used as tags. LABEL_UNSPECIFIED should not be used here.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_workerHealthReport()
Gets a reference to a mutable value of the 'workerHealthReport' property.
The health of a worker.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_workerLifecycleEvent()
Gets a reference to a mutable value of the 'workerLifecycleEvent' property.
Record of worker lifecycle events.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_workerMessageCode()
Gets a reference to a mutable value of the 'workerMessageCode' property.
A worker message code.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_workerMetrics()
Gets a reference to a mutable value of the 'workerMetrics' property.
Resource metrics reported by workers.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_workerShutdownNotice()
Gets a reference to a mutable value of the 'workerShutdownNotice' property.
Shutdown notice by workers.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_time()
| void google_dataflow_api::WorkerMessage::set_time |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'time' attribute.
The timestamp of the worker_message.
- Parameters
-
The documentation for this class was generated from the following files: