GigaSpaces XAP 9.7.2 API

org.openspaces.grid.gsm.capacity
Class DriveCapacityRequirement

java.lang.Object
  extended by org.openspaces.grid.gsm.capacity.AbstractCapacityRequirement
      extended by org.openspaces.grid.gsm.capacity.DriveCapacityRequirement
All Implemented Interfaces:
Comparable<CapacityRequirement>, CapacityRequirement

public class DriveCapacityRequirement
extends AbstractCapacityRequirement


Field Summary
 
Fields inherited from class org.openspaces.grid.gsm.capacity.AbstractCapacityRequirement
value
 
Constructor Summary
DriveCapacityRequirement(String drive)
           
DriveCapacityRequirement(String drive, Long sizeInMB)
           
 
Method Summary
 String getDrive()
           
 long getDriveCapacityInMB()
           
 CapacityRequirementType<DriveCapacityRequirement> getType()
           
 String toString()
           
 
Methods inherited from class org.openspaces.grid.gsm.capacity.AbstractCapacityRequirement
add, compareTo, divide, divide, equals, equalsZero, max, min, multiply, subtract, subtractOrZero
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openspaces.grid.gsm.capacity.CapacityRequirement
hashCode
 

Constructor Detail

DriveCapacityRequirement

public DriveCapacityRequirement(String drive)

DriveCapacityRequirement

public DriveCapacityRequirement(String drive,
                                Long sizeInMB)
Method Detail

getType

public CapacityRequirementType<DriveCapacityRequirement> getType()
Specified by:
getType in interface CapacityRequirement
Overrides:
getType in class AbstractCapacityRequirement

getDriveCapacityInMB

public long getDriveCapacityInMB()

toString

public String toString()
Specified by:
toString in interface CapacityRequirement
Specified by:
toString in class AbstractCapacityRequirement

getDrive

public String getDrive()
Returns:
the root folder of this drive (Such as "/" on linux or "c:\" on windows)

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.