Package com.aoindustries.aoserv.cluster
Class PhysicalVolumeConfigurationShort
java.lang.Object
com.aoindustries.aoserv.cluster.PhysicalVolumeConfiguration
com.aoindustries.aoserv.cluster.PhysicalVolumeConfigurationShort
- All Implemented Interfaces:
Serializable,Comparable<PhysicalVolumeConfiguration>
public class PhysicalVolumeConfigurationShort
extends PhysicalVolumeConfiguration
implements Serializable
A 16-bit implementation of PhysicalVolumeConfiguration to be used
when all three extents fields fit into 16 bits. This will be the case
until the logical or phyiscal volumes reach 1 TB.
In JDK 1.6 (i586) on Linux, this takes 24 bytes of heap per instance.
- Author:
- AO Industries, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlongGets the number of extents.longGets the first logical extent.longGets the first physical extent.Methods inherited from class com.aoindustries.aoserv.cluster.PhysicalVolumeConfiguration
compareTo, equals, equals, getPhysicalVolume, hashCode, newInstance, overlaps, toString
-
Method Details
-
getFirstLogicalExtent
public long getFirstLogicalExtent()Description copied from class:PhysicalVolumeConfigurationGets the first logical extent.- Specified by:
getFirstLogicalExtentin classPhysicalVolumeConfiguration
-
getFirstPhysicalExtent
public long getFirstPhysicalExtent()Description copied from class:PhysicalVolumeConfigurationGets the first physical extent.- Specified by:
getFirstPhysicalExtentin classPhysicalVolumeConfiguration
-
getExtents
public long getExtents()Description copied from class:PhysicalVolumeConfigurationGets the number of extents.- Specified by:
getExtentsin classPhysicalVolumeConfiguration
-
