Class MediumFillState

  • All Implemented Interfaces:
    java.io.Serializable

    public class MediumFillState
    extends java.lang.Object
    implements java.io.Serializable
    Holds information about the size of the data of a given medium.
    Author:
    jschwarz
    See Also:
    Serialized Form
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.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.