C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::TInitializeOptions Struct Reference

Options for NYT::Initialize() and NYT::JoblessInitialize() functions. More...

#include <init.h>

Public Types

using TSelf = TInitializeOptions

Public Member Functions

TSelf & WaitProxy (::TIntrusivePtr< IWaitProxy >)
 Override waiting functions for YT Wrapper.
TSelf & CleanupOnTermination (bool)
 Enable/disable cleanup when program execution terminates abnormally.
TSelf & JobOnExitFunction (std::function< void()>)
 Set callback to be called before exit() in job mode.

Detailed Description

Options for NYT::Initialize() and NYT::JoblessInitialize() functions.

Member Function Documentation

◆ CleanupOnTermination()

TSelf & NYT::TInitializeOptions::CleanupOnTermination ( bool )

Enable/disable cleanup when program execution terminates abnormally.

When set to true, library will abort all active transactions and running operations when program terminates on error or signal.

◆ JobOnExitFunction()

TSelf & NYT::TInitializeOptions::JobOnExitFunction ( std::function< void()> )

Set callback to be called before exit() in job mode.

Provided function will be called just before exit() when program is started in job mode. This might be useful for shutting down libraries that are used inside operations.

NOTE: Keep in mind that inside job execution environment differs from client execution environment. So JobOnExitFunction should not depend on argc/argv environment variables etc.

◆ WaitProxy()

TSelf & NYT::TInitializeOptions::WaitProxy ( ::TIntrusivePtr< IWaitProxy > )

Override waiting functions for YT Wrapper.

This options allows to override functions used by this library to wait something.


The documentation for this struct was generated from the following file:
  • yt/cpp/mapreduce/interface/init.h