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.SerializableHolds 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 MediumFillStatefromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)Constructs an instance ofMediumFillStatefrom a given wrapper of the corresponding native type.longgetBlockCount()longgetBlockSize()longgetFilledInMB()longgetObjectCount()longgetSizeInMB()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
fromNative
public static MediumFillState fromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)
Constructs an instance ofMediumFillStatefrom a given wrapper of the corresponding native type.- Parameters:
mediumInfoType- An instance of MediumInfoType corresponding to the same medium.- Returns:
- The instance of
MediumFillStatecorresponding to the same medium a the given MediumInfoType does.
-
-