Fennel: BackupRestorePage Class Reference (original) (raw)

Public Member Functions

virtual PBuffer

getBuffer () const

Returns:

memory address where transfer should start.

virtual uint

getBufferSize () const

Returns:

number of contiguous bytes from getBuffer() to be used for transfer.

virtual void

notifyTransferCompletion (bool bSuccess)

Receives notification when a transfer completes.

void

setParent (WeakSegPageBackupRestoreDevice pParentInit)

Sets the initiating backup/restore object.

void

setBuffer (PBuffer pBuffer)

Sets the buffer associated with this page.

void

setBufferSize (uint bufferSize)

Sets the size of the buffer.

BlockNum

getPageCounter ()

Returns:

the counter that determines the order in which pages are written to the backup file

void

setPageCounter (BlockNum counter)

Sets the counter that determines the order in which pages are written to the backup file.

void

setReadRequest (bool isRead)

Indicates whether the request is a read request.

Private Attributes

PBuffer

pBuffer

Pointer to the scratch buffer associated with this request.

BlockNum

pageCounter

The counter that determines the order in which pages are written to the backup file.

uint

bufferSize

Size of the scratch buffer.

bool

isRead

True if this is a read request.

WeakSegPageBackupRestoreDevice

pParent

A pointer to the parent object that initiated this I/O request.