UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FStorageServerIoDispatcherBackend Class Referencefinal

#include <StorageServerIoDispatcherBackend.h>

+ Inheritance diagram for FStorageServerIoDispatcherBackend:

Public Member Functions

 FStorageServerIoDispatcherBackend (FStorageServerConnection &Connection)
 
 ~FStorageServerIoDispatcherBackend ()
 
void Initialize (TSharedRef< const FIoDispatcherBackendContext > Context) override
 
void Shutdown () override
 
void ResolveIoRequests (FIoRequestList Requests, FIoRequestList &OutUnresolved) override
 
void CancelIoRequest (FIoRequestImpl *Request) override
 
void UpdatePriorityForIoRequest (FIoRequestImpl *Request) override
 
bool DoesChunkExist (const FIoChunkId &ChunkId) const override
 
TIoStatusOr< uint64GetSizeForChunk (const FIoChunkId &ChunkId) const override
 
FIoRequestImplGetCompletedIoRequests () override
 
TIoStatusOr< FIoMappedRegionOpenMapped (const FIoChunkId &ChunkId, const FIoReadOptions &Options) override
 
const TCHARGetName () const override
 
virtual bool Init () override
 
virtual uint32 Run () override
 
virtual void Stop () override
 
- Public Member Functions inherited from FRunnable
virtual void Exit ()
 
virtual class FSingleThreadRunnableGetSingleThreadInterface ()
 
virtual ~FRunnable ()
 
- Public Member Functions inherited from IIoDispatcherBackend
virtual bool DoesChunkExist (const FIoChunkId &ChunkId, const FIoOffsetAndLength &ChunkRange) const
 
virtual TIoStatusOr< uint64GetSizeForChunk (const FIoChunkId &ChunkId, const FIoOffsetAndLength &ChunkRange, uint64 &OutAvailable) const
 

Constructor & Destructor Documentation

◆ FStorageServerIoDispatcherBackend()

FStorageServerIoDispatcherBackend::FStorageServerIoDispatcherBackend ( FStorageServerConnection Connection)

◆ ~FStorageServerIoDispatcherBackend()

FStorageServerIoDispatcherBackend::~FStorageServerIoDispatcherBackend ( )

Member Function Documentation

◆ CancelIoRequest()

void FStorageServerIoDispatcherBackend::CancelIoRequest ( FIoRequestImpl Request)
inlineoverridevirtual

Cancel the I/O request.

Implements IIoDispatcherBackend.

◆ DoesChunkExist()

bool FStorageServerIoDispatcherBackend::DoesChunkExist ( const FIoChunkId ChunkId) const
overridevirtual

Returns whether the chunk exists.

Implements IIoDispatcherBackend.

◆ GetCompletedIoRequests()

FIoRequestImpl * FStorageServerIoDispatcherBackend::GetCompletedIoRequests ( )
overridevirtual

Returns all completed request(s) to the I/O dispatcher. Triggered by invoking the wake-up callback on the backend context object.

Implements IIoDispatcherBackend.

◆ GetName()

const TCHAR * FStorageServerIoDispatcherBackend::GetName ( ) const
overridevirtual

Returns the name of this backend, for logging purposes

Implements IIoDispatcherBackend.

◆ GetSizeForChunk()

TIoStatusOr< uint64 > FStorageServerIoDispatcherBackend::GetSizeForChunk ( const FIoChunkId ChunkId) const
overridevirtual

Returns the size of the chunk.

Implements IIoDispatcherBackend.

◆ Init()

virtual bool FStorageServerIoDispatcherBackend::Init ( void  )
inlineoverridevirtual

Initializes the runnable object.

This method is called in the context of the thread object that aggregates this, not the thread that passes this runnable to a new thread.

Returns
True if initialization was successful, false otherwise
See also
Run, Stop, Exit

Reimplemented from FRunnable.

◆ Initialize()

void FStorageServerIoDispatcherBackend::Initialize ( TSharedRef< const FIoDispatcherBackendContext Context)
overridevirtual

Called by the I/O dispatcher once initialized.

Parameters
ContextContext object used for signalling the I/O dispatcher.

Implements IIoDispatcherBackend.

◆ OpenMapped()

TIoStatusOr< FIoMappedRegion > FStorageServerIoDispatcherBackend::OpenMapped ( const FIoChunkId ChunkId,
const FIoReadOptions Options 
)
inlineoverridevirtual

Read the chunk as a memory mapped file.

Implements IIoDispatcherBackend.

◆ ResolveIoRequests()

void FStorageServerIoDispatcherBackend::ResolveIoRequests ( FIoRequestList  Requests,
FIoRequestList OutUnresolved 
)
overridevirtual

Create asynchronous read requests for the list of I/O request(s). The request(s) can span multiple chunks.

Parameters
RequestsRequest(s) to resolve.
OutUnresolvedUnresolved request(s) returned to the I/O dispatcher.

Implements IIoDispatcherBackend.

◆ Run()

uint32 FStorageServerIoDispatcherBackend::Run ( )
overridevirtual

Runs the runnable object.

This is where all per object thread work is done. This is only called if the initialization was successful.

Returns
The exit code of the runnable object
See also
Init, Stop, Exit

Implements FRunnable.

◆ Shutdown()

void FStorageServerIoDispatcherBackend::Shutdown ( )
overridevirtual

Called by the I/O dispatcher when shutting down.

Reimplemented from IIoDispatcherBackend.

◆ Stop()

void FStorageServerIoDispatcherBackend::Stop ( void  )
overridevirtual

Stops the runnable object.

This is called if a thread is requested to terminate early.

See also
Init, Run, Exit

Reimplemented from FRunnable.

◆ UpdatePriorityForIoRequest()

void FStorageServerIoDispatcherBackend::UpdatePriorityForIoRequest ( FIoRequestImpl Request)
inlineoverridevirtual

Update the priority of the I/O request.

Implements IIoDispatcherBackend.


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