GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.elastic.config
Interface ScaleStrategyCapacityRequirementConfig

All Known Implementing Classes:
CapacityRequirementsConfig, ManualCapacityScaleConfig

public interface ScaleStrategyCapacityRequirementConfig

Defines a POJO that describes memory,cpu cores,drive capacity Can be converted into a CapacityRequirements with {#toCapacityRequirements()}.

Since:
9.0.0
Author:
itaif

Method Summary
 Map<String,Long> getDrivesCapacityInMB()
           
 long getMemoryCapacityInMB()
           
 double getNumberOfCpuCores()
           
 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.
 CapacityRequirements toCapacityRequirements()
           
 

Method Detail

setMemoryCapacityInMB

void setMemoryCapacityInMB(long memory)
Specifies the total memory capacity.


getMemoryCapacityInMB

long getMemoryCapacityInMB()
                           throws NumberFormatException
Throws:
NumberFormatException

setNumberOfCpuCores

void setNumberOfCpuCores(double cpuCores)
Specifies the total CPU cores.


getNumberOfCpuCores

double getNumberOfCpuCores()

setDrivesCapacityInMB

void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
Specifies the disk and network drive capacity.

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
Since:
8.0.3

getDrivesCapacityInMB

Map<String,Long> getDrivesCapacityInMB()
                                       throws NumberFormatException
Throws:
NumberFormatException

toCapacityRequirements

CapacityRequirements toCapacityRequirements()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.