GigaSpaces XAP 9.5 API

org.openspaces.admin.pu.elastic.config
Class CapacityRequirementsConfig

java.lang.Object
  extended by org.openspaces.admin.pu.elastic.config.CapacityRequirementsConfig
All Implemented Interfaces:
ScaleStrategyCapacityRequirementConfig

public class CapacityRequirementsConfig
extends Object
implements ScaleStrategyCapacityRequirementConfig

A config object for configuring capacity requirements

Since:
9.0.0
Author:
itaif

Constructor Summary
CapacityRequirementsConfig()
          Default constructor
CapacityRequirementsConfig(CapacityRequirements newCapacity)
           
CapacityRequirementsConfig(Map<String,String> properties)
           
 
Method Summary
 boolean equals(Object obj)
           
 Map<String,Long> getDrivesCapacityInMB()
           
 long getMemoryCapacityInMB()
           
 double getNumberOfCpuCores()
           
 Map<String,String> getProperties()
           
 int hashCode()
           
 void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
          Specifies the disk and network drive capacity.
 void setMemoryCapacityInMB(long memory)
          Specifies the total memory capacity.
 void setNumberOfCpuCores(double cpuCores)
          Specifies the total CPU cores.
 void setProperties(Map<String,String> properties)
           
 CapacityRequirements toCapacityRequirements()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CapacityRequirementsConfig

public CapacityRequirementsConfig()
Default constructor


CapacityRequirementsConfig

public CapacityRequirementsConfig(Map<String,String> properties)

CapacityRequirementsConfig

public CapacityRequirementsConfig(CapacityRequirements newCapacity)
Parameters:
newCapacity -
Method Detail

setMemoryCapacityInMB

public void setMemoryCapacityInMB(long memory)
Description copied from interface: ScaleStrategyCapacityRequirementConfig
Specifies the total memory capacity.

Specified by:
setMemoryCapacityInMB in interface ScaleStrategyCapacityRequirementConfig

getMemoryCapacityInMB

public long getMemoryCapacityInMB()
                           throws NumberFormatException
Specified by:
getMemoryCapacityInMB in interface ScaleStrategyCapacityRequirementConfig
Throws:
NumberFormatException

setNumberOfCpuCores

public void setNumberOfCpuCores(double cpuCores)
Description copied from interface: ScaleStrategyCapacityRequirementConfig
Specifies the total CPU cores.

Specified by:
setNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfig

getNumberOfCpuCores

public double getNumberOfCpuCores()
Specified by:
getNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfig

getProperties

public Map<String,String> getProperties()

setProperties

public void setProperties(Map<String,String> properties)

toString

public String toString()
Overrides:
toString in class Object

setDrivesCapacityInMB

public void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
Description copied from interface: ScaleStrategyCapacityRequirementConfig
Specifies the disk and network drive capacity.

Specified by:
setDrivesCapacityInMB in interface ScaleStrategyCapacityRequirementConfig
Parameters:
megaBytesPerDrive - - a mapping between the file system directory representing the drive and its capacity (in mega-bytes) needed by the pu . For example the drive "/" (on linux) has the size of 50*1024MBs or the drive "c:\" (on windows) has the size of 50*1024MBs

getDrivesCapacityInMB

public Map<String,Long> getDrivesCapacityInMB()
                                       throws NumberFormatException
Specified by:
getDrivesCapacityInMB in interface ScaleStrategyCapacityRequirementConfig
Throws:
NumberFormatException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toCapacityRequirements

public CapacityRequirements toCapacityRequirements()
Specified by:
toCapacityRequirements in interface ScaleStrategyCapacityRequirementConfig

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.