#include <RandomAccessRequest.h>
Inheritance diagram for RandomAccessRequestBinding:
Public Member Functions | |
RandomAccessRequestBinding () | |
virtual | ~RandomAccessRequestBinding () |
virtual PBuffer | getBuffer () const=0 |
| |
virtual uint | getBufferSize () const=0 |
| |
virtual void | notifyTransferCompletion (bool bSuccess)=0 |
Receives notification when a transfer completes. |
Definition at line 51 of file RandomAccessRequest.h.
RandomAccessRequestBinding::RandomAccessRequestBinding | ( | ) | [explicit] |
Definition at line 119 of file DeviceAccessScheduler.cpp.
00120 { 00121 #ifdef __MSVC__ 00122 // TODO: only create this when ThreadPoolScheduler is being used? 00123 hEvent = CreateEvent(NULL,1,0,NULL); 00124 if (!hEvent) { 00125 throw new SysCallExcn("CreateEvent failed"); 00126 } 00127 #endif 00128 }
RandomAccessRequestBinding::~RandomAccessRequestBinding | ( | ) | [virtual] |
virtual PBuffer RandomAccessRequestBinding::getBuffer | ( | ) | const [pure virtual] |
Implemented in CachePage, BackupRestorePage, and RandomAccessFileDeviceTest::Binding.
Referenced by RandomAccessFileDevice::prepareTransfer(), and IoCompletionPortScheduler::schedule().
virtual uint RandomAccessRequestBinding::getBufferSize | ( | ) | const [pure virtual] |
Implemented in CachePage, BackupRestorePage, and RandomAccessFileDeviceTest::Binding.
Referenced by RandomAccessFileDevice::prepareTransfer(), IoCompletionPortThread::run(), AioLinuxScheduler::run(), ThreadPoolScheduler::schedule(), and IoCompletionPortScheduler::schedule().
virtual void RandomAccessRequestBinding::notifyTransferCompletion | ( | bool | bSuccess | ) | [pure virtual] |
Receives notification when a transfer completes.
bSuccess | true if the full buffer size was successfully transferred for this binding |
Implemented in CachePage, BackupRestorePage, and RandomAccessFileDeviceTest::Binding.
Referenced by aio_handler(), IoCompletionPortThread::run(), AioPollingScheduler::run(), AioLinuxScheduler::run(), and IoCompletionPortScheduler::schedule().