Public Member Functions | Private Attributes | List of all members
Aws::DataFlow::BasicTask< T > Class Template Reference

#include <task.h>

Inheritance diagram for Aws::DataFlow::BasicTask< T >:
Inheritance graph
[legend]

Public Member Functions

 BasicTask (std::shared_ptr< T > batch_data)
 
T & getBatchData () override
 
void onComplete (const UploadStatus &status) override
 
void setOnCompleteFunction (const UploadStatusFunction< UploadStatus, T > upload_status_function)
 
virtual ~BasicTask ()=default
 
- Public Member Functions inherited from Aws::DataFlow::Task< T >
virtual void cancel ()
 
virtual void run (std::shared_ptr< IPublisher< T >> publisher)
 
virtual ~Task ()=default
 

Private Attributes

std::shared_ptr< T > batch_data_
 
UploadStatusFunction< UploadStatus, T > upload_status_function_
 

Detailed Description

template<typename T>
class Aws::DataFlow::BasicTask< T >

Definition at line 101 of file task.h.

Constructor & Destructor Documentation

template<typename T >
Aws::DataFlow::BasicTask< T >::BasicTask ( std::shared_ptr< T >  batch_data)
inlineexplicit

Definition at line 104 of file task.h.

template<typename T >
virtual Aws::DataFlow::BasicTask< T >::~BasicTask ( )
virtualdefault

Member Function Documentation

template<typename T >
T& Aws::DataFlow::BasicTask< T >::getBatchData ( )
inlineoverridevirtual

Get this task's data

Returns

Implements Aws::DataFlow::Task< T >.

Definition at line 127 of file task.h.

template<typename T >
void Aws::DataFlow::BasicTask< T >::onComplete ( const UploadStatus status)
inlineoverridevirtual

Override this method to handle completion status.

Parameters
status

Implements Aws::DataFlow::Task< T >.

Definition at line 114 of file task.h.

template<typename T >
void Aws::DataFlow::BasicTask< T >::setOnCompleteFunction ( const UploadStatusFunction< UploadStatus, T >  upload_status_function)
inline

Definition at line 120 of file task.h.

Member Data Documentation

template<typename T >
std::shared_ptr<T> Aws::DataFlow::BasicTask< T >::batch_data_
private

Definition at line 132 of file task.h.

template<typename T >
UploadStatusFunction<UploadStatus, T> Aws::DataFlow::BasicTask< T >::upload_status_function_
private

Definition at line 133 of file task.h.


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


dataflow_lite
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:22