Package com.saperion.rmi.storage
Class MediumFillState
- java.lang.Object
-
- com.saperion.rmi.storage.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
-
-
Constructor Summary
Constructors Constructor Description MediumFillState(long objectCount, long blockCount, long blockSize, long filledInMB, long sizeInMB)
Literal constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediumFillState
fromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)
Constructs an instance ofMediumFillState
from a given wrapper of the corresponding native type.long
getBlockCount()
long
getBlockSize()
long
getFilledInMB()
long
getObjectCount()
long
getSizeInMB()
java.lang.String
toString()
-
-
-
Constructor Detail
-
MediumFillState
public MediumFillState(long objectCount, long blockCount, long blockSize, long filledInMB, long sizeInMB)
Literal constructor- Parameters:
objectCount
-getObjectCount()
blockCount
-getBlockCount()
blockSize
-getBlockSize()
filledInMB
-getFilledInMB()
sizeInMB
-getSizeInMB()
-
-
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 classjava.lang.Object
-
fromNative
public static MediumFillState fromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)
Constructs an instance ofMediumFillState
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.
-
-