In file shoresm.h:

class ShoreFileDeletionQueue

A queue of SHORE file identifiers which are deleted lazily

Inheritance:


Public Methods

XxxErrCode EnqueueFile (XxxShoreVolumeId VolId, XxxShoreObjectId FileId, long DeletionTime)
Enqueues a file for deletion
XxxErrCode ForceFlush ()
Deletes all files in the queue, regardless of when they should be deleted
XxxErrCode GarbageCollect ()
Deletes all files in the queue which have expired
static long GetTimeFromNow (long Delay)
Gets the time from now, adding the specified number of milliseconds
ShoreFileDeletionQueue ()
Constructor
long DeleteTime
The time after which the entry may be deleted (in milliseconds since Jan 1, 1970)
XxxShoreVolumeId VolId
The volume ID to be deleted
XxxShoreObjectId FileId
The file ID to be deleted
QueueEntry* NextEntry
The next queue entry (NULL if none)
QueueEntry* PrevEntry
The previous queue entry (NULL if none)
QueueEntry (XxxShoreVolumeId VolumeId, XxxShoreObjectId LocalId, long DeletionTime, QueueEntry *Next, QueueEntry *Prev)
Default Constructor

Protected Fields

QueueEntry* Entries
The queue of items
XxxBaseMutex Latch
A latch to protect access to the queue

Documentation

A queue of SHORE file identifiers which are deleted lazily
ShoreFileDeletionQueue()
Constructor

long DeleteTime
The time after which the entry may be deleted (in milliseconds since Jan 1, 1970)

XxxShoreVolumeId VolId
The volume ID to be deleted

XxxShoreObjectId FileId
The file ID to be deleted

QueueEntry* NextEntry
The next queue entry (NULL if none)

QueueEntry* PrevEntry
The previous queue entry (NULL if none)

QueueEntry(XxxShoreVolumeId VolumeId, XxxShoreObjectId LocalId, long DeletionTime, QueueEntry *Next, QueueEntry *Prev)
Default Constructor

static long GetTimeFromNow(long Delay)
Gets the time from now, adding the specified number of milliseconds

XxxErrCode EnqueueFile(XxxShoreVolumeId VolId, XxxShoreObjectId FileId, long DeletionTime)
Enqueues a file for deletion

XxxErrCode GarbageCollect()
Deletes all files in the queue which have expired

XxxErrCode ForceFlush()
Deletes all files in the queue, regardless of when they should be deleted

QueueEntry* Entries
The queue of items

XxxBaseMutex Latch
A latch to protect access to the queue


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de