29.2.5. Quota and disk usage

This section gives an overview of quota system in BASE and how the disk usage is kept track of.

UML diagram

Figure 29.6. Quota and disk usage

Quota and disk usage

Quota

The QuotaData holds information about a single quota registration. The same quota may be used by many different users and groups. This object encapsulates allowed quota values for different types of quota types and locations. BASE defines several quota types (file, raw data and experiment), and locations (primary, secondary and offline).

The quotaValues property is a map from QuotaIndex to maximum byte values. This map must contain at least one entry for the total quota at the primary location.

Disk usage

A DiskConsumableData (for example a file) item is automatically linked to a DiskUsageData item. This holds information about the number of bytes, the location and quota type the item uses. It also holds information about which user and group (optional) that should be charged for the disk usage. The user is always the owner of the item.