org.ocap.dvr.storage
Interface SpaceAllocationHandler


public interface SpaceAllocationHandler

A class implementing this interface decides whether requests to allocate storage space should be allowed or not.


Method Summary
 long allowReservation(LogicalStorageVolume volume, AppID app, long spaceRequested)
          This method should be used by the implementation to allow the SpaceAllocationHandler to grant a request to reserve space.
 

Method Detail

allowReservation

long allowReservation(LogicalStorageVolume volume,
                      AppID app,
                      long spaceRequested)
This method should be used by the implementation to allow the SpaceAllocationHandler to grant a request to reserve space.

Parameters:
volume - The LogicalStorageVolume on which the reserved space is requested.
app - The requesting application.
spaceRequested - The new value of the reservation if the request is granted.
Returns:
the space granted.