dataflow
v1b3
|
#include <worker_shutdown_notice.h>
Public Member Functions | |
WorkerShutdownNotice (const Json::Value &storage) | |
WorkerShutdownNotice (Json::Value *storage) | |
virtual | ~WorkerShutdownNotice () |
const StringPiece | GetTypeName () const |
bool | has_reason () const |
void | clear_reason () |
const StringPiece | get_reason () const |
void | set_reason (const StringPiece &value) |
Static Public Member Functions | |
static WorkerShutdownNotice * | New () |
Shutdown notification from workers. This is to be sent by the shutdown script of the worker VM so that the backend knows that the VM is being shut down.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'reason
' attribute.
|
inline |
Get the value of the 'reason
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'reason
' attribute was set.
reason
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'reason
' attribute.
The reason for the worker shutdown. Current possible values are:
Other possible reasons may be added in the future.
[in] | value | The new value. |