GigaSpaces XAP 9.1 API

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

All Known Implementing Classes:
CapacityRequirementsConfigurer, ManualCapacityScaleConfigurer

public interface ScaleStrategyCapacityRequirementConfigurer

An interface that defines fluent API methods required to define scale strategy capacity

Since:
9.0.0
Author:
itaif
See Also:
CapacityRequirement, CapacityRequirementsConfig, CapacityRequirementsConfigurer

Method Summary
 ScaleStrategyCapacityRequirementConfigurer driveCapacity(String drive, int size, MemoryUnit unit)
          Specifies the disk and network drive capacity.
 ScaleStrategyCapacityRequirementConfigurer driveCapacity(String drive, String size)
          Specifies the disk and network drive capacity.
 ScaleStrategyCapacityRequirementConfigurer memoryCapacity(int memory, MemoryUnit unit)
          Specifies the memory capacity (RAM).
 ScaleStrategyCapacityRequirementConfigurer memoryCapacity(String memory)
          Specifies the memory capacity (RAM).
 ScaleStrategyCapacityRequirementConfigurer numberOfCpuCores(double cpuCores)
          Specifies the number of CPU cores (as reported by the operating system) This includes both real cores and hyper-threaded cores.
 

Method Detail

memoryCapacity

ScaleStrategyCapacityRequirementConfigurer memoryCapacity(String memory)
Specifies the memory capacity (RAM).

Parameters:
memory - - the RAM size as a string (For example :50m" or "50g" or "50t") See also MemoryUnit.getPostfix()

memoryCapacity

ScaleStrategyCapacityRequirementConfigurer memoryCapacity(int memory,
                                                          MemoryUnit unit)
Specifies the memory capacity (RAM).


numberOfCpuCores

ScaleStrategyCapacityRequirementConfigurer numberOfCpuCores(double cpuCores)
Specifies the number of CPU cores (as reported by the operating system) This includes both real cores and hyper-threaded cores.


driveCapacity

ScaleStrategyCapacityRequirementConfigurer driveCapacity(String drive,
                                                         int size,
                                                         MemoryUnit unit)
Specifies the disk and network drive capacity.

Parameters:
drive - - the file system directory representing the drive
size - - the drive size
unit - - the drive size memory unit. For example: driveCapacity("/",50,MemoryUnit.MEGABYTES) - the drive "/" (on linux) has the size of 50*1024MBs driveCapacity("c:\\",50,MemoryUnit.MEGABYTES) - the drive "c:\" (on windows) has the size of 50*1024MBs

driveCapacity

ScaleStrategyCapacityRequirementConfigurer driveCapacity(String drive,
                                                         String size)
Specifies the disk and network drive capacity.

Parameters:
drive - - the file system directory representing the drive
size - - the drive size as a string (For example :50m" or "50g" or "50t") See also MemoryUnit.getPostfix() For example: driveCapacity("/","50m") - the drive "/" (on linux) has the size of 50*1024MBs driveCapacity("c:\\","50m") - the drive "c:\" (on windows) has the size of 50*1024MBs

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.