Package com.saperion.rmi.storage
Class MediumFillState
java.lang.Object
com.saperion.rmi.storage.MediumFillState
- All Implemented Interfaces:
Serializable
Holds information about the size of the data of a given medium.
- Author:
- jschwarz
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMediumFillState(long objectCount, long blockCount, long blockSize, long filledInMB, long sizeInMB) Literal constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic MediumFillStatefromNative(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType) Constructs an instance ofMediumFillStatefrom a given wrapper of the corresponding native type.longlonglonglonglongtoString()
-
Constructor Details
-
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 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
-
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.
-