Class MediumFillState

java.lang.Object
com.saperion.rmi.storage.MediumFillState
All Implemented Interfaces:
Serializable

public class MediumFillState extends Object implements Serializable
Holds information about the size of the data of a given medium.
Author:
jschwarz
See Also:
  • Constructor Details

  • Method Details

    • getObjectCount

      public long getObjectCount()
      Returns:
      The number of objects written to the medium
    • getBlockCount

      public long getBlockCount()
      Returns:
      The number blocks written to the medium
    • getBlockSize

      public long getBlockSize()
      Returns:
      The size of the blocks on the medium
    • getFilledInMB

      public long getFilledInMB()
      Returns:
      The number of Megabytes written to the medium
    • getSizeInMB

      public long getSizeInMB()
      Returns:
      The maximum number of Megabytes one can write to the medium
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromNative

      public static MediumFillState fromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)
      Constructs an instance of MediumFillState from a given wrapper of the corresponding native type.
      Parameters:
      mediumInfoType - An instance of MediumInfoType corresponding to the same medium.
      Returns:
      The instance of MediumFillState corresponding to the same medium a the given MediumInfoType does.