class FsOperationTracker
Defined at line 111 of file ../../src/storage/lib/watchdog/operations.h
Abstract class to track generic filesystem operation.
This class is not thread safe.
Public Methods
void FsOperationTracker (const OperationBase * operation, WatchdogInterface * watchdog, bool track)
Creates a new tracker and tracks it using |watchdog|, when |track| is true.
Defined at line 114 of file ../../src/storage/lib/watchdog/operations.h
void FsOperationTracker (const FsOperationTracker & )
Defined at line 126 of file ../../src/storage/lib/watchdog/operations.h
void FsOperationTracker (FsOperationTracker && )
Defined at line 127 of file ../../src/storage/lib/watchdog/operations.h
FsOperationTracker & operator= (const FsOperationTracker & )
Defined at line 128 of file ../../src/storage/lib/watchdog/operations.h
FsOperationTracker & operator= (FsOperationTracker && )
Defined at line 129 of file ../../src/storage/lib/watchdog/operations.h
void ~FsOperationTracker ()
Defined at line 131 of file ../../src/storage/lib/watchdog/operations.h
OperationTrackerId GetId ()
Returns the operation's unique id across all tracked operations.
Defined at line 134 of file ../../src/storage/lib/watchdog/operations.h
std::string_view Name ()
Returns the name of the operation. Used to print messages/logs.
Defined at line 137 of file ../../src/storage/lib/watchdog/operations.h
std::chrono::nanoseconds Timeout ()
Returns operation specific timeout. This is useful when not all type
of operations take equal amount of time.
Defined at line 141 of file ../../src/storage/lib/watchdog/operations.h
TimePoint StartTime ()
Returns point in time when this operation was started.
Defined at line 144 of file ../../src/storage/lib/watchdog/operations.h
bool TimedOut ()
Returns true if the operation has timed out.
Defined at line 147 of file ../../src/storage/lib/watchdog/operations.h
void OnTimeOut (FILE * out_stream)
In addition to taking default action on operation timeout, OnTimeOut
gives an opportunity to the client to take custom action if needed.
OnTimeOut is called after default handler is called.
Defined at line 155 of file ../../src/storage/lib/watchdog/operations.h
zx::result<> Complete ()
Defined at line 157 of file ../../src/storage/lib/watchdog/operations.h