Package fr.gouv.vitam.storage.driver.model

# Class StorageCapacityResult

java.lang.Object
fr.gouv.vitam.storage.driver.model.StorageResult
fr.gouv.vitam.storage.driver.model.StorageCapacityResult

public class StorageCapacityResult extends StorageResult
Data structure representing global result from a 'get storage container information / capacity' request

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StorageCapacityResult()`
  Empty constructor, needed for response parsing
  `StorageCapacityResult(Integer tenantId, long usableSpace)`
  Initialize the needed parameters for get capacity results

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getUsableSpace()`

  ### Methods inherited from class fr.gouv.vitam.storage.driver.model.StorageResult

  `getTenantId, getType`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### StorageCapacityResult

    public StorageCapacityResult()
    Empty constructor, needed for response parsing

  - ### StorageCapacityResult

    public StorageCapacityResult(Integer tenantId, long usableSpace)
    Initialize the needed parameters for get capacity results
    Parameters:
      `tenantId` - The request tenantId
      `usableSpace` - The usable space in offer

- ## Method Details

  - ### getUsableSpace

    public long getUsableSpace()
    Returns:
      The offer usable space