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

#include <shell_task.h>

Inheritance diagram for google_dataflow_api::ShellTask:

Public Member Functions

 ShellTask (const Json::Value &storage)
 
 ShellTask (Json::Value *storage)
 
virtual ~ShellTask ()
 
const StringPiece GetTypeName () const
 
bool has_command () const
 
void clear_command ()
 
const StringPiece get_command () const
 
void set_command (const StringPiece &value)
 
bool has_exit_code () const
 
void clear_exit_code ()
 
int32 get_exit_code () const
 
void set_exit_code (int32 value)
 

Static Public Member Functions

static ShellTaskNew ()
 

Detailed Description

A task which consists of a shell command for the worker to execute.

Constructor & Destructor Documentation

◆ ShellTask() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ ShellTask() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~ShellTask()

google_dataflow_api::ShellTask::~ShellTask ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_command()

void google_dataflow_api::ShellTask::clear_command ( )
inline

Clears the 'command' attribute.

◆ clear_exit_code()

void google_dataflow_api::ShellTask::clear_exit_code ( )
inline

Clears the 'exitCode' attribute.

◆ get_command()

const StringPiece google_dataflow_api::ShellTask::get_command ( ) const
inline

Get the value of the 'command' attribute.

◆ get_exit_code()

int32 google_dataflow_api::ShellTask::get_exit_code ( ) const
inline

Get the value of the 'exitCode' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_dataflow_api::ShellTask

◆ has_command()

bool google_dataflow_api::ShellTask::has_command ( ) const
inline

Determine if the 'command' attribute was set.

Returns
true if the 'command' attribute was set.

◆ has_exit_code()

bool google_dataflow_api::ShellTask::has_exit_code ( ) const
inline

Determine if the 'exitCode' attribute was set.

Returns
true if the 'exitCode' attribute was set.

◆ New()

ShellTask * google_dataflow_api::ShellTask::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_command()

void google_dataflow_api::ShellTask::set_command ( const StringPiece &  value)
inline

Change the 'command' attribute.

The shell command to run.

Parameters
[in]valueThe new value.

◆ set_exit_code()

void google_dataflow_api::ShellTask::set_exit_code ( int32  value)
inline

Change the 'exitCode' attribute.

Exit code for the task.

Parameters
[in]valueThe new value.

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